diff --git a/conf/nginx.conf b/conf/nginx.conf index 2a9a08b..3747ff0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,16 @@ location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__; - proxy_set_header Host $host; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; more_set_headers "X-Frame-Options: ALLOWALL"; # Include SSOWAT user panel. diff --git a/scripts/install b/scripts/install index d95ba7a..5eb1128 100755 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,6 @@ pushd $install_dir ynh_exec_as $app python3 -m venv $install_dir/venv ynh_exec_as $app "$install_dir/venv/bin/pip" install --upgrade pip ynh_exec_as $app "$install_dir/venv/bin/pip" install -r requirements.txt - ynh_exec_as $app "$install_dir/venv/bin/pip" install requests popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f52ec0b..d246afd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,7 +63,6 @@ pushd $install_dir ynh_exec_as $app python3 -m venv $final_path/venv ynh_exec_as $app "$install_dir/venv/bin/pip" install --upgrade pip ynh_exec_as $app "$install_dir/venv/bin/pip" install -r requirements.txt - ynh_exec_as $app "$install_dir/venv/bin/pip" install requests popd #=================================================