diff --git a/conf/app.ini b/conf/app.ini index 061c412..1a37330 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -6,7 +6,7 @@ RUN_MODE = prod [server] DOMAIN = __DOMAIN__ HTTP_PORT = __PORT__ -ROOT_URL = https://__URL__/ +EXTERNAL_URL = https://__URL__/ HTTP_ADDR = 127.0.0.1 OFFLINE_MODE = false DISABLE_SSH = false diff --git a/conf/nginx.conf b/conf/nginx.conf index 066093b..6d21f56 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,11 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - - proxy_pass http://127.0.0.1:__PORT__/; - proxy_set_header Host $host; - proxy_buffering off; - fastcgi_param REMOTE_USER $remote_user; - client_max_body_size 200M; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://localhost:__PORT__/; + proxy_set_header Host $host; + proxy_buffering off; + fastcgi_param REMOTE_USER $remote_user; + client_max_body_size 200M; + proxy_set_header X-Real-IP $remote_addr; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;