1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/psitransfer_ynh.git synced 2024-09-03 20:16:06 +02:00
psitransfer_ynh/conf/nginx.conf
2023-09-20 19:55:51 +02:00

17 lines
504 B
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__;
more_set_headers "X-Frame-Options: SAMEORIGIN";
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
# Must be at least as large as the chunk size of PsiTransfer.
client_max_body_size 5M;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}