-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathnginx.conf
149 lines (115 loc) · 3.25 KB
/
nginx.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
server {
listen 0.0.0.0:80;
root /usr/share/nginx/html;
index index.html;
error_page 404 /404.html;
# Needed so the redirects still work when running in a container locally.
# Otherwise it strips off the scheme & port number.
absolute_redirect off;
location ~* ^\/assets\/(css|js)\/.+\.(css|less|js)$ {
add_header Last-Modified $date_gmt;
add_header Cache-Control 'public, max-age=86400';
add_header X-Frame-Options "SAMEORIGIN" always;
if_modified_since before;
etag on;
}
location ~* \.(jpg|jpeg|png|svg|gif|ico|swf|eot|ttf|woff|woff2|ot) {
add_header Last-Modified $date_gmt;
add_header Cache-Control 'public, max-age=86400';
add_header X-Frame-Options "SAMEORIGIN" always;
if_modified_since before;
etag on;
}
location ~* \.(html)$ {
etag on;
add_header Cache-Control "no-cache";
add_header X-Frame-Options "SAMEORIGIN" always;
}
location ~ ^/zerotier/microsegmentation(/?)$ {
return 301 /microsegmentation;
}
location ~ ^/zerotier/ztintro(/?)$ {
return 301 /zerotier;
}
location ~ ^/getting-started/getting-started(/?)$ {
return 301 /;
}
location ~ ^/zerotier/manual(/?)$ {
return 301 /protocol;
}
location ~ ^/zerotier/moons(/?)$ {
return 301 /roots;
}
location ~ ^/zerotier/multipath(/?)$ {
return 301 /multipath;
}
location ~ ^/zerotier/rules(/?)$ {
return 301 /rules;
}
location ~ ^/zerotier/troubleshooting(/?)$ {
return 301 /faq;
}
location ~ ^/zerotier/zerotier.conf(/?)$ {
return 301 /config;
}
location ~ ^/central/sso(/?)$ {
return 301 /sso;
}
location ~ ^/central/v1(/?)$ {
return 301 /api/central/ref-v1;
}
location ~ ^/service/v1(/?)$ {
return 301 /api/service/ref-v1;
}
location ~ ^/sockets/tutorial.html$ {
return 301 /sockets;
}
location ~ ^/self-hosting/introduction(/?)$ {
return 301 /selfhost;
}
location ~ ^/self-hosting/network-controllers(/?)$ {
return 301 /controller;
}
location ~ ^/devices/asustor(/?)$ {
return 301 /asustor;
}
location ~ ^/devices/freenas(/?)$ {
return 301 /freenas;
}
location ~ ^/devices/mikrotik(/?)$ {
return 301 /mikrotik;
}
location ~ ^/devices/openwrt(/?)$ {
return 301 /openwrt;
}
location ~ ^/devices/opnsense(/?)$ {
return 301 /opnsense;
}
location ~ ^/devices/qnap(/?)$ {
return 301 /qnap;
}
location ~ ^/devices/synology(/?)$ {
return 301 /synology;
}
location ~ ^/devices/teltonika(/?)$ {
return 301 /teltonika-networks;
}
location ~ ^/devices/ubiquiti(/?)$ {
return 301 /ubiquiti;
}
location ~ ^/devices/western-digital(/?)$ {
return 301 /wd;
}
location ~ ^/terraform/multicloud-quickstart(/?)$ {
return 301 /terraform-multicloud;
}
location ~ ^/terraform/quickstart(/?)$ {
return 301 /terraform;
}
location ~ ^/packages/snap(/?)$ {
return 301 /snap;
}
location ~ ^/zeronsd/quickstart(/?)$ {
return 301 /dns;
}
}