update nginx conf
This commit is contained in:
parent
4dd497267f
commit
def503643b
1 changed files with 10 additions and 16 deletions
|
@ -9,24 +9,18 @@ location __PATH__/ {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
### Example PHP configuration (remove it if not used)
|
proxy_pass http://localhost:__PORT__;
|
||||||
# index index.php;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass localhost:3001
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
# 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;
|
#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 SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue