Last active 2 days ago

swee revised this gist 2 days ago. Go to revision

1 file changed, 27 insertions

pngs.conf(file created)

@@ -0,0 +1,27 @@
1 + map $http_user_agent $myindex {
2 + default /index.html;
3 + ~curl /ascii.txt;
4 + }
5 +
6 + server {
7 + listen 443 quic;
8 + listen [::]:443 quic;
9 + listen 443 ssl;
10 + listen [::]:443 ssl;
11 + listen 80;
12 + listen [::]:80;
13 + server_name eatfish.png.swee.codes;
14 + root /var/www/eatfish.png.swee.codes;
15 + index $myindex;
16 + if ($do_upgrade) {
17 + return 302 https://$host$request_uri;
18 + }
19 + location / {
20 + try_files $uri $uri/ =404;
21 + }
22 + location /.git { return 403; }
23 + ssl_certificate /etc/letsencrypt/live/swee.codes/fullchain.pem; # managed by Certbot
24 + ssl_certificate_key /etc/letsencrypt/live/swee.codes/privkey.pem; # managed by Certbot
25 + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
26 + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
27 + }
Newer Older