remove implied comments
This commit is contained in:
parent
02b41dae0b
commit
4444367d67
|
@ -9,7 +9,6 @@ events {
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
# Basic settings
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
@ -24,7 +23,6 @@ http {
|
||||||
send_timeout 300s;
|
send_timeout 300s;
|
||||||
large_client_header_buffers 4 8k;
|
large_client_header_buffers 4 8k;
|
||||||
|
|
||||||
# Mime type handling
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
@ -33,12 +31,10 @@ http {
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
|
||||||
# Logging
|
|
||||||
log_format host '$remote_addr - $remote_user [$time_local] "[$host] $request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
|
log_format host '$remote_addr - $remote_user [$time_local] "[$host] $request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
error_log stderr;
|
error_log stderr;
|
||||||
|
|
||||||
# GZIP
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
@ -48,24 +44,18 @@ http {
|
||||||
gzip_http_version 1.1;
|
gzip_http_version 1.1;
|
||||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
# Site
|
|
||||||
server {
|
server {
|
||||||
# Ports
|
|
||||||
listen 4848;
|
listen 4848;
|
||||||
listen [::]:4848;
|
listen [::]:4848;
|
||||||
|
|
||||||
# Web root
|
|
||||||
root /docs;
|
root /docs;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# Proxy
|
|
||||||
proxy_buffers 32 4k;
|
proxy_buffers 32 4k;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
|
|
||||||
# Server domain name
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# Authentication and proxying
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8080;
|
proxy_pass http://127.0.0.1:8080;
|
||||||
proxy_set_header Host localhost;
|
proxy_set_header Host localhost;
|
||||||
|
|
Loading…
Reference in New Issue