File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11server {
22 server_name wikimon.hatnote.com;
3- listen 80;
43 root /home/hatnote/wikimon/static/;
54 access_log /home/hatnote/wikimon/logs/access.log combined buffer=128k flush=10s;
65 error_log /home/hatnote/wikimon/logs/error.log;
@@ -36,5 +35,29 @@ server {
3635 proxy_pass http://127.0.0.1:9999;
3736 proxy_buffering off;
3837 }
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+
3950}
4051
52+ server {
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+ }
You can’t perform that action at this time.
0 commit comments