|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
server {
|
|
|
|
|
listen 80 default_server;
|
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
resolver {{ RESOLVER }} valid=30s;
|
|
|
|
|
|
|
|
|
|
{% if WEBMAIL == 'roundcube' %}
|
|
|
|
|
root /var/www/{{ WEBMAIL }}/public_html;
|
|
|
|
@ -27,12 +28,7 @@ server {
|
|
|
|
|
add_header Referrer-Policy "no-referrer" always;
|
|
|
|
|
|
|
|
|
|
real_ip_header X-Real-IP;
|
|
|
|
|
{% for from_ip in SUBNET.split(',') %}
|
|
|
|
|
set_real_ip_from {{ from_ip }};
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if SUBNET6 %}{% for from_ip in SUBNET6.split(',') %}
|
|
|
|
|
set_real_ip_from {{ from_ip }};
|
|
|
|
|
{% endfor %}{% endif %}
|
|
|
|
|
set_real_ip_from {{ FRONT_ADDRESS or "front" }};
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.php$args;
|
|
|
|
|