Commit 1481cd5cdc
Verified · cmc
Layout: unified · split
linux/nginx/etc/nginx/conf.d/cleberg.net.conf +5 −4
| @@ -1,13 +1,13 @@ | |||
| 1 | server { | 1 | server { |
| 2 | listen 10011; | 2 | listen 10011; |
| 3 | server_name cleberg.net paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion; | 3 | server_name cleberg.net paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion; |
| 4 | error_log /var/log/nginx/cleberg.net.error.log; | 4 | error_log /var/log/nginx/cleberg.net.error.log; |
| 5 | include custom.d/basic.conf; | 5 | include custom.d/basic.conf; |
| 6 | include custom.d/security/strict-transport-security.conf; | 6 | include custom.d/security/strict-transport-security.conf; |
| 7 | include custom.d/security/content-security-policy.conf; | 7 | include custom.d/security/content-security-policy.conf; |
| 8 | include custom.d/security/permissions-policy.conf; | 8 | include custom.d/security/permissions-policy.conf; |
| 9 | root /var/www/cleberg.net/; | 9 | root /var/www/cleberg.net/; |
| 10 | port_in_redirect off; | 10 | port_in_redirect off; |
| 11 | 11 | ||
| 12 | add_header Onion-Location "http://paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion$request_uri" always; | 12 | add_header Onion-Location "http://paske4urhs6nttrtlkuwa5cowum3fjkc6yv6kl4ncx3mjxcd77764nqd.onion$request_uri" always; |
| 13 | 13 | ||
| @@ -47,8 +47,9 @@ server { | |||
| 47 | try_files $uri =404; | 47 | try_files $uri =404; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | location /atom.xml { return 301 $scheme://$host/feed.xml; } | 50 | location /atom.xml { return 301 $scheme://$host/feed.xml; } |
| 51 | location /blog/salary-transparency.html { return 301 $scheme://$host/salary/; } | 51 | location /blog/salary-transparency.html { return 301 $scheme://$host/salary/; } |
| 52 | location = /.well-known/ { return 404; } | ||
| 52 | } | 53 | } |
| 53 | 54 | ||
| 54 | server { | 55 | server { |