11server {
2- server_name wikimon.hatnote.com;
3- root /home/hatnote/wikimon/static/;
4- access_log /home/hatnote/wikimon/logs/access.log combined buffer=128k flush=10s;
5- error_log /home/hatnote/wikimon/logs/error.log;
6-
7- expires 1d;
8-
9- proxy_http_version 1.1;
10- proxy_set_header Upgrade $http_upgrade;
11- proxy_set_header Connection "Upgrade";
12- proxy_set_header Host "${host}:${proxy_port}";
13-
14- location / {
15- proxy_pass http://127.0.0.1:9000;
16- }
17-
18- location /en/ {
19- proxy_pass http://127.0.0.1:9000;
20- }
21-
22- location /de/ {
23- proxy_pass http://127.0.0.1:9010;
24- }
25-
26- location /ru/ {
27- proxy_pass http://127.0.0.1:9020;
28- }
29-
30- location /ja/ {
31- proxy_pass http://127.0.0.1:9030;
32- }
33-
34- location /test/ {
35- proxy_pass http://127.0.0.1:9999;
36- proxy_buffering off;
37- }
38-
39- listen 443 ssl; # managed by Certbot
40- ssl_certificate /etc/letsencrypt/live/hatnote.com/fullchain.pem; # managed by Certbot
41- ssl_certificate_key /etc/letsencrypt/live/hatnote.com/privkey.pem; # managed by Certbot
42- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
43- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
44-
45-
46-
47-
48-
49-
2+ server_name wikimon.hatnote.com;
3+ listen 443 ssl;
4+
5+ ssl_certificate /etc/letsencrypt/live/hatnote.com/fullchain.pem;
6+ ssl_certificate_key /etc/letsencrypt/live/hatnote.com/privkey.pem;
7+ include /etc/letsencrypt/options-ssl-nginx.conf;
8+ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
9+
10+ access_log /home/hatnote/wikimon/logs/access.log combined buffer=128k flush=10s;
11+ error_log /home/hatnote/wikimon/logs/error.log;
12+
13+ proxy_http_version 1.1;
14+ proxy_set_header Upgrade $http_upgrade;
15+ proxy_set_header Connection "Upgrade";
16+ proxy_set_header Host $host;
17+ proxy_set_header X-Real-IP $remote_addr;
18+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19+ proxy_set_header X-Forwarded-Proto $scheme;
20+ proxy_read_timeout 86400s;
21+ proxy_send_timeout 86400s;
22+
23+ location / { proxy_pass http://127.0.0.1:9000; }
24+ location /en/ { proxy_pass http://127.0.0.1:9000; }
25+ location /de/ { proxy_pass http://127.0.0.1:9010; }
26+ location /ru/ { proxy_pass http://127.0.0.1:9020; }
27+ location /ja/ { proxy_pass http://127.0.0.1:9030; }
28+ location /es/ { proxy_pass http://127.0.0.1:9040; }
29+ location /fr/ { proxy_pass http://127.0.0.1:9050; }
30+ location /nl/ { proxy_pass http://127.0.0.1:9060; }
31+ location /it/ { proxy_pass http://127.0.0.1:9070; }
32+ location /sv/ { proxy_pass http://127.0.0.1:9080; }
33+ location /ar/ { proxy_pass http://127.0.0.1:9090; }
34+ location /id/ { proxy_pass http://127.0.0.1:9100; }
35+ location /ta/ { proxy_pass http://127.0.0.1:9110; }
36+ location /pa/ { proxy_pass http://127.0.0.1:9120; }
37+ location /mr/ { proxy_pass http://127.0.0.1:9130; }
38+ location /hi/ { proxy_pass http://127.0.0.1:9140; }
39+ location /as/ { proxy_pass http://127.0.0.1:9150; }
40+ location /bn/ { proxy_pass http://127.0.0.1:9160; }
41+ location /te/ { proxy_pass http://127.0.0.1:9165; }
42+ location /kn/ { proxy_pass http://127.0.0.1:9170; }
43+ location /or/ { proxy_pass http://127.0.0.1:9180; }
44+ location /sa/ { proxy_pass http://127.0.0.1:9190; }
45+ location /gu/ { proxy_pass http://127.0.0.1:9200; }
46+ location /fa/ { proxy_pass http://127.0.0.1:9210; }
47+ location /wikidata/ { proxy_pass http://127.0.0.1:9220; }
48+ location /he/ { proxy_pass http://127.0.0.1:9230; }
49+ location /zh/ { proxy_pass http://127.0.0.1:9240; }
50+ location /ml/ { proxy_pass http://127.0.0.1:9250; }
51+ location /pl/ { proxy_pass http://127.0.0.1:9260; }
52+ location /mk/ { proxy_pass http://127.0.0.1:9270; }
53+ location /be/ { proxy_pass http://127.0.0.1:9280; }
54+ location /sr/ { proxy_pass http://127.0.0.1:9290; }
55+ location /bg/ { proxy_pass http://127.0.0.1:9300; }
56+ location /uk/ { proxy_pass http://127.0.0.1:9310; }
57+ location /hu/ { proxy_pass http://127.0.0.1:9320; }
58+ location /fi/ { proxy_pass http://127.0.0.1:9330; }
59+ location /no/ { proxy_pass http://127.0.0.1:9340; }
60+ location /el/ { proxy_pass http://127.0.0.1:9350; }
61+ location /eo/ { proxy_pass http://127.0.0.1:9360; }
62+ location /pt/ { proxy_pass http://127.0.0.1:9370; }
63+ location /et/ { proxy_pass http://127.0.0.1:9380; }
64+ location /ur/ { proxy_pass http://127.0.0.1:9390; }
65+ location /ro/ { proxy_pass http://127.0.0.1:9400; }
66+ location /hy/ { proxy_pass http://127.0.0.1:9410; }
5067}
5168
5269server {
53- if ($host = wikimon.hatnote.com) {
54- return 301 https://$host$request_uri;
55- } # managed by Certbot
56-
57-
58- server_name wikimon.hatnote.com;
59- listen 80;
60- return 404; # managed by Certbot
61-
62-
63- }
70+ server_name wikimon.hatnote.com;
71+ listen 80;
72+ return 301 https://$host$request_uri;
73+ }
0 commit comments