diff --git a/conf/nginx.conf b/conf/nginx.conf index be321d2..2475322 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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;