-
1
server {
-
2
listen 80;
-
3
listen 443 ssl http2;
-
4
-
5
listen [::]:80;
-
6
listen [::]:443 ssl http2;
-
7
-
8
root /www/flashii.net/public;
-
9
server_name flashii.net i.flashii.net;
-
10
index index.php index.html;
-
11
-
12
error_page 400 /error-400.html;
-
13
error_page 401 /error-401.html;
-
14
error_page 402 /error-402.html;
-
15
error_page 403 /error-403.html;
-
16
error_page 404 /error-404.html;
-
17
error_page 405 /error-405.html;
-
18
error_page 410 /error-410.html;
-
19
error_page 451 /error-451.html;
-
20
error_page 500 /error-500.html;
-
21
error_page 502 /error-502.html;
-
22
error_page 503 /error-503.html;
-
23
-
24
access_log /var/log/nginx/access-flashii.net.log;
-
25
error_log /var/log/nginx/error-flashii.net.log;
-
26
-
27
location / {
-
28
try_files $uri $uri/ /index.php?$query_string;
-
29
}
-
30
-
31
location ~* \.(eot|otf|ttf|woff|woff2)$ {
-
32
add_header Access-Control-Allow-Origin *;
-
33
}
-
34
-
35
location = /.well-known/did.json {
-
36
add_header Access-Control-Allow-Origin *;
-
37
}
-
38
-
39
location /images {
-
40
add_header Access-Control-Allow-Origin *;
-
41
}
-
42
-
43
location /msz-storage {
-
44
add_header Access-Control-Allow-Origin *;
-
45
alias /www/flashii.net/store;
-
46
internal;
-
47
}
-
48
-
49
location /_storage {
-
50
alias /www/flashii.net/storage;
-
51
internal;
-
52
}
-
53
-
54
set $switch_https "$scheme$http_upgrade_insecure_requests";
-
55
if ($switch_https = "http1") {
-
56
return 301 https://$host$request_uri;
-
57
}
-
58
-
59
include global.conf;
-
60
include ssl/flashii.net.conf;
-
61
include php/flashii.net.conf;
-
62
}
-
63
-
64
server {
-
65
listen 443 ssl http2;
-
66
listen [::]:443 ssl http2;
-
67
-
68
root /www/flashii.net/public;
-
69
server_name api.flashii.net;
-
70
index index.php index.html;
-
71
-
72
error_page 400 /error-400.html;
-
73
error_page 401 /error-401.html;
-
74
error_page 402 /error-402.html;
-
75
error_page 403 /error-403.html;
-
76
error_page 404 /error-404.html;
-
77
error_page 405 /error-405.html;
-
78
error_page 410 /error-410.html;
-
79
error_page 451 /error-451.html;
-
80
error_page 500 /error-500.html;
-
81
error_page 502 /error-502.html;
-
82
error_page 503 /error-503.html;
-
83
-
84
access_log /var/log/nginx/access-api.flashii.net.log;
-
85
error_log /var/log/nginx/error-api.flashii.net.log;
-
86
-
87
location / {
-
88
try_files $uri $uri/ /index.php?$query_string;
-
89
}
-
90
-
91
include global.conf;
-
92
include ssl/flashii.net.conf;
-
93
include php/flashii.net.conf;
-
94
}
-
95
-
96
server {
-
97
listen 80;
-
98
listen [::]:80;
-
99
server_name api.flashii.net;
-
100
include global.conf;
-
101
return 301 https://$host$request_uri;
-
102
}
-
103
-
104
server {
-
105
listen 80;
-
106
listen 443 ssl http2;
-
107
-
108
listen [::]:80;
-
109
listen [::]:443 ssl http2;
-
110
-
111
root /www/flashii.net/public;
-
112
server_name i.fii.moe;
-
113
index index.php index.html;
-
114
-
115
error_page 400 /error-400.html;
-
116
error_page 401 /error-401.html;
-
117
error_page 402 /error-402.html;
-
118
error_page 403 /error-403.html;
-
119
error_page 404 /error-404.html;
-
120
error_page 405 /error-405.html;
-
121
error_page 410 /error-410.html;
-
122
error_page 451 /error-451.html;
-
123
error_page 500 /error-500.html;
-
124
error_page 502 /error-502.html;
-
125
error_page 503 /error-503.html;
-
126
-
127
access_log /var/log/nginx/access-i.fii.moe.log;
-
128
error_log /var/log/nginx/error-i.fii.moe.log;
-
129
-
130
location / {
-
131
try_files $uri $uri/ /index.php?$query_string;
-
132
}
-
133
-
134
location /_storage {
-
135
alias /www/flashii.net/storage;
-
136
internal;
-
137
}
-
138
-
139
set $switch_https "$scheme$http_upgrade_insecure_requests";
-
140
if ($switch_https = "http1") {
-
141
return 301 https://$host$request_uri;
-
142
}
-
143
-
144
include global.conf;
-
145
include ssl/fii.moe.conf;
-
146
include php/flashii.net.conf;
-
147
}
-
148
-
149
server {
-
150
listen 80;
-
151
listen 443 ssl http2;
-
152
-
153
listen [::]:80;
-
154
listen [::]:443 ssl http2;
-
155
-
156
server_name www.flashii.net test.flashii.net id.flashii.net eeprom.flashii.net;
-
157
-
158
include global.conf;
-
159
include ssl/flashii.net.conf;
-
160
-
161
return 301 $scheme://flashii.net$request_uri;
-
162
}
-
163
-
164
server {
-
165
listen 80;
-
166
listen 443 ssl http2;
-
167
-
168
listen [::]:80;
-
169
listen [::]:443 ssl http2;
-
170
-
171
server_name forum.flashii.net;
-
172
-
173
include global.conf;
-
174
include ssl/flashii.net.conf;
-
175
-
176
return 302 $scheme://flashii.net/forum$request_uri;
-
177
}