shoebottom.ca-nginx/homepage.conf

67 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-10-07 00:40:05 -03:00
server {
server_name shoebottom.ca; # managed by Certbot
root /home/isaac/www/shoebottom.ca;
index index.html;
listen [::]:443 ssl ipv6only=on default_server; # managed by Certbot
listen 443 ssl default_server; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/shoebottom.ca/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/shoebottom.ca/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
add_header Strict-Transport-Security "max-age=31536000" always; # managed by Certbot
# Security / XSS Mitigation Headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1";
add_header X-Content-Type-Options "nosniff";
# add_header Content-Security-Policy "default-src 'self' https://i.imgur.com;" always;
ssl_trusted_certificate /etc/letsencrypt/live/shoebottom.ca/chain.pem; # managed by Certbot
ssl_stapling on; # managed by Certbot
ssl_stapling_verify on; # managed by Certbot
location /music {
autoindex on;
sendfile on;
alias /home/isaac/Media/Music;
}
location /movies {
autoindex on;
sendfile on;
alias /home/isaac/Media/Movies;
}
location /tv {
autoindex on;
sendfile on;
alias /home/isaac/Media/TV;
}
location /anime {
autoindex on;
sendfile on;
alias /home/isaac/Media/Anime;
}
location /host {
autoindex off;
sendfile on;
alias /home/isaac/Media/Host;
}
}
server {
if ($host = shoebottom.ca) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name shoebottom.ca; # managed by Certbot
root /home/isaac/www/shoebottom.ca;
index index.html;
}