mirror of
https://github.com/YunoHost-Apps/pufferpanel_ynh.git
synced 2024-09-03 20:16:03 +02:00
Update nginx.conf
This commit is contained in:
parent
8fa652eefd
commit
e85f16826c
1 changed files with 15 additions and 13 deletions
|
@ -1,13 +1,15 @@
|
|||
location ^~ __PATH__/ {
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
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";
|
||||
}
|
||||
root /arv/pufferpanel/public/;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files /public/router.php =404;
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass ${phpSocket};
|
||||
fastcgi_index router.php;
|
||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
|
||||
location /assets {
|
||||
try_files /app/\$uri =404;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue