-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.default.conf
43 lines (33 loc) · 1.01 KB
/
nginx.default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
types {
text/plain pub asc;
}
server {
server_name www.jhauschildt.com;
return 301 https://$server_name$request_uri;
}
server {
listen 5000;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types application/javascript text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
server_tokens off;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
proxy_set_header X-Forwarded-Proto https;
}
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 404 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}