This repository has been archived by the owner on Jun 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx
97 lines (71 loc) · 1.91 KB
/
nginx
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
server {
listen 80;
server_name www.transientbug.net transientbug.net;
return 301 https://transientbug.com$request_uri;
}
server {
listen 80;
server_name www.transientbug.com transientbug.com;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name www.transientbug.com transientbug.com;
ssl on;
ssl_certificate /etc/nginx/transientbug/ssl-unified.crt;
ssl_certificate_key /etc/nginx/transientbug/private.key;
access_log /var/log/nginx/transientbug.access.log;
error_log /var/log/nginx/transientbug.error.log;
root /var/www;
index index.html;
error_page 502 503 /static/502.html;
client_max_body_size 10M;
server_tokens off;
proxy_pass_header Server;
proxy_pass_header Connection;
proxy_set_header Host $http_host;
proxy_set_header Connection close;
proxy_set_header X-Real-IP $remote_addr;
location / {
try_files $uri $uri/ @proxy;
}
location = / {
proxy_pass http://127.0.0.1:8000;
}
location ~ /static {
}
location ~ /zohoverify {
}
location @proxy {
proxy_pass http://127.0.0.1:8000;
}
}
server {
listen 80;
server_name localhost 127.0.0.1;
access_log /var/log/nginx/transientbug.access.log;
error_log /var/log/nginx/transientbug.error.log;
root /var/www;
index index.html;
error_page 502 503 /static/502.html;
client_max_body_size 10M;
server_tokens off;
proxy_pass_header Server;
proxy_pass_header Connection;
proxy_set_header Host $http_host;
proxy_set_header Connection close;
proxy_set_header X-Real-IP $remote_addr;
location / {
try_files $uri $uri/ @proxy;
}
location = / {
proxy_pass http://127.0.0.1:8000;
}
location ~ /static {
}
location ~ /zohoverify {
}
location @proxy {
proxy_pass http://127.0.0.1:8000;
}
}