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