diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 629b476..4fcc25e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -7,19 +7,19 @@ events { http { server { listen 80 default_server; - server_name localhost example.org www.example.org; + server_name example.org www.example.org; location / { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; proxy_pass http://app; } location /matomo.php { - proxy_set_header Host $host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://app$request_uri; } } -} \ No newline at end of file +} diff --git a/ssl/nginx.conf b/ssl/nginx.conf index 9322dcf..d8c1bf2 100644 --- a/ssl/nginx.conf +++ b/ssl/nginx.conf @@ -20,15 +20,15 @@ http { ssl_ciphers HIGH:!aNULL:!MD5; location / { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; proxy_pass http://app; } location /matomo.php { - proxy_set_header Host $host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://app$request_uri; } }