Skip to content

Commit be20c48

Browse files
committed
update this config, even though we're not using it
1 parent e14d708 commit be20c48

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

conf/wikimon.nginx.conf

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
server {
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+
}

0 commit comments

Comments
 (0)