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