Skip to content
Snippets Groups Projects
Verified Commit 614036df authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Change URL to shivering-isles.com

Since it's more and more odd to type www in front, let's just remove it.
There is no real benefit by adding www in front.

This patch adds redirect configuration and CSP for the blog. The JS from
some articles should get to tighten CSPs swapped out soon.
parent 36aa4c86
No related branches found
No related tags found
No related merge requests found
FROM nginx:alpine
COPY ./_docker/default.conf /etc/nginx/conf.d/
COPY ./_site/ /usr/share/nginx/html/
COPY ./_docker/default.conf ./_docker/redirect.conf /etc/nginx/conf.d/
server {
listen 80;
server_name localhost;
server_name shivering-isles.com;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
add_header X-Frame-Options "DENY";
add_header Referrer-Policy "no-referrer";
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; img-src data: 'self'; style-src 'self' 'unsafe-inline'; font-src data: 'self'; object-src data:";
location /rss {
rewrite ^/rss /feed.xml redirect;
......
server {
listen 80;
server_name www.shivering-isles.com;
return 301 https://shivering-isles.com$request_uri;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment