~gpanders/gpanders.com

140e90084fe53d1bfefbe552c6fa5f4a691d565a — Gregory Anders a month ago 325dc7b
Add nginx.conf
1 files changed, 17 insertions(+), 0 deletions(-)

A nginx.conf
A nginx.conf => nginx.conf +17 -0
@@ 0,0 1,17 @@
server {
	listen 80 default_server;
	listen [::]:80 default_server;
	server_name gpanders.com;

	add_header Content-Security-Policy "default-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; img-src 'self' https://asciinema.org";
	add_header X-Content-Type-Options "nosniff";
	add_header X-Frame-Options "SAMEORIGIN";

	location ~ /posts/(.*)$ {
		return 301 $scheme://$server_name/blog/$1;
	}

	location / {
		root /var/www/gpanders.com;
	}
}