Update nginx.conf

This commit is contained in:
Bozhidar Slaveykov 2024-04-05 11:38:33 +03:00
parent 2dfc5157f6
commit 7b1a9ea1ef

View file

@ -88,7 +88,7 @@ http {
"~Firefox/((58|59)|([6-9]\d)|([1-9]\d{2,}))\.\d+" 1;
}
# Vhost
# Admin Panel
server {
listen 8443;
listen [::]:8443;
@ -133,4 +133,34 @@ http {
deny all;
}
}
# File manager
server {
listen 8446;
listen [::]:8446;
server_name file_manager;
root /usr/local/phyre/web/thirdparty/filegator/dist;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
error_page 404 /index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ \.php$ {
fastcgi_pass unix:/run/phyre-php.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
}
}