pngs.conf
· 901 B · Text
Raw
map $http_user_agent $myindex {
default /index.html;
~curl /ascii.txt;
}
server {
listen 443 quic;
listen [::]:443 quic;
listen 443 ssl;
listen [::]:443 ssl;
listen 80;
listen [::]:80;
server_name eatfish.png.swee.codes;
root /var/www/eatfish.png.swee.codes;
index $myindex;
if ($do_upgrade) {
return 302 https://$host$request_uri;
}
location / {
try_files $uri $uri/ =404;
}
location /.git { return 403; }
ssl_certificate /etc/letsencrypt/live/swee.codes/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/swee.codes/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
| 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 | } |
| 28 |