mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Use a hostname
This commit is contained in:
parent
6533f41f48
commit
9803c51d55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user