mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
27 lines
968 B
Plaintext
27 lines
968 B
Plaintext
log_format netalertx '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
access_log /var/log/nginx/access.log netalertx flush=1s;
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
server {
|
|
listen 20211 default_server;
|
|
root /app/front;
|
|
index index.php;
|
|
|
|
add_header X-Forwarded-Prefix "/netalertx" always;
|
|
proxy_set_header X-Forwarded-Prefix "/netalertx";
|
|
|
|
location ~* \.php$ {
|
|
add_header Cache-Control "no-store";
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
fastcgi_param PHP_VALUE "xdebug.remote_enable=1";
|
|
fastcgi_connect_timeout 75;
|
|
fastcgi_send_timeout 600;
|
|
fastcgi_read_timeout 600;
|
|
}
|
|
}
|