update nginx conf

This commit is contained in:
Hadrien 2021-11-01 22:43:27 +03:00
parent 4dd497267f
commit def503643b

View file

@ -9,24 +9,18 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
### Example PHP configuration (remove it if not used)
# index index.php;
proxy_pass localhost:3001
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
proxy_pass http://localhost:__PORT__;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_pass http://localhost:3001/;
proxy_http_version 1.1;
# https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Common parameter to increase upload size limit
#client_max_body_size 50M;
# try_files $uri $uri/ index.php;
# location ~ [^/]\.php(/|$) {
# fastcgi_split_path_info ^(.+?\.php)(/.*)$;
# fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
# fastcgi_index index.php;
# include fastcgi_params;
# fastcgi_param REMOTE_USER $remote_user;
# fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param SCRIPT_FILENAME $request_filename;
# }
### End of PHP configuration part
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;