reset default-type so default action is download
added real-ip addresses and sed-replace tag
This commit is contained in:
parent
1dda4c7727
commit
a39f8f8507
@ -19,7 +19,7 @@ events {
|
|||||||
|
|
||||||
http {
|
http {
|
||||||
server_names_hash_bucket_size 64;
|
server_names_hash_bucket_size 64;
|
||||||
default_type text/plain;
|
default_type application/octet-stream;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
@ -49,6 +49,10 @@ http {
|
|||||||
access_log off;
|
access_log off;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
set_real_ip_from 127.0.0.1;
|
||||||
|
set_real_ip_from <lanCIDR>;
|
||||||
|
real_ip_header X-Forwarded-For;
|
||||||
|
real_ip_recursive on;
|
||||||
|
|
||||||
# include enabled server blocks from /etc/nginx/enabledSites/*.conf
|
# include enabled server blocks from /etc/nginx/enabledSites/*.conf
|
||||||
include /etc/nginx/enabledSites/*.conf;
|
include /etc/nginx/enabledSites/*.conf;
|
||||||
|
Loading…
Reference in New Issue
Block a user