mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
@@ -36,11 +36,15 @@ http {
|
||||
gzip_comp_level 9;
|
||||
|
||||
resolver localhost;
|
||||
index index.html Index.html;
|
||||
fastcgi_index index.php;
|
||||
index index.php index.html;
|
||||
|
||||
error_page 404 =307 $scheme://$host:$server_port;
|
||||
error_page 497 =301 https://$host:$server_port$request_uri;
|
||||
|
||||
proxy_headers_hash_max_size 1024;
|
||||
proxy_headers_hash_bucket_size 128;
|
||||
|
||||
# Default upstream scheme
|
||||
map $host $forward_scheme {
|
||||
default http;
|
||||
@@ -52,6 +56,22 @@ http {
|
||||
'' close;
|
||||
}
|
||||
|
||||
upstream php7 {
|
||||
server unix:/dev/php7.sock;
|
||||
}
|
||||
|
||||
upstream php8 {
|
||||
server unix:/dev/php8.sock;
|
||||
}
|
||||
|
||||
upstream php81 {
|
||||
server unix:/dev/php81.sock;
|
||||
}
|
||||
|
||||
upstream php82 {
|
||||
server unix:/dev/php82.sock;
|
||||
}
|
||||
|
||||
# Fancy Index
|
||||
fancyindex on;
|
||||
fancyindex_localtime on;
|
||||
@@ -75,7 +95,10 @@ http {
|
||||
set_real_ip_from 169.254.0.0/16;
|
||||
set_real_ip_from fc00::/7;
|
||||
set_real_ip_from fec0::/10;
|
||||
|
||||
|
||||
include fastcgi.conf;
|
||||
fastcgi_param HTTP_PROXY "";
|
||||
|
||||
include conf.d/include/ip_ranges.conf;
|
||||
|
||||
include /data/nginx/default.conf;
|
||||
|
Reference in New Issue
Block a user