From f99ad56e1ddc89991b02ad56b7fc593ed6526271 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sun, 29 Jan 2023 14:25:39 -0600 Subject: [PATCH] bug squashing --- flask.conf | 12 +++++++++--- src/static/css/App.css | 2 +- .../fonts/{Neon Future.ttf => NeonFuture.ttf} | Bin src/static/json/projects.json | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) rename src/static/fonts/{Neon Future.ttf => NeonFuture.ttf} (100%) diff --git a/flask.conf b/flask.conf index 58fa085..ea4d07c 100644 --- a/flask.conf +++ b/flask.conf @@ -1,9 +1,16 @@ server { listen 8080; - + server_name www.asimonson.com; + return 301 https://asimonson.com$request_uri; +} +server { + listen 8080; server_name asimonson.com; + add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' *.chesscomfiles.com *.chess.com *.googletagmanager.com cdn.jsdelivr.net www.google-analytics.com ajax.googleapis.com;"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + add_header X-Content-Type-Options 'nosniff'; + add_header X-Frame-Options 'SAMEORIGIN'; location / { proxy_pass http://localhost:5000/; @@ -11,5 +18,4 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } - return 301 https://$server_name$request_uri; -} +} \ No newline at end of file diff --git a/src/static/css/App.css b/src/static/css/App.css index 77710ff..dc5fdf4 100644 --- a/src/static/css/App.css +++ b/src/static/css/App.css @@ -1,6 +1,6 @@ @font-face { font-family: "neon-future"; - src: url("../fonts/Neon Future.ttf") + src: url("../fonts/NeonFuture.ttf") } @font-face { diff --git a/src/static/fonts/Neon Future.ttf b/src/static/fonts/NeonFuture.ttf similarity index 100% rename from src/static/fonts/Neon Future.ttf rename to src/static/fonts/NeonFuture.ttf diff --git a/src/static/json/projects.json b/src/static/json/projects.json index 46eb7c9..2ac76b8 100644 --- a/src/static/json/projects.json +++ b/src/static/json/projects.json @@ -37,7 +37,7 @@ "content": "My Resume, made in LaTeX with a custom design derived by the AltaCV template on OverLeaf", "links": [ ["github", "https://github.com/asimonson1125/Resume", "git repo"], - ["globe", "https://asimonson.com/Resume.pdf/", "Resume"] + ["globe", "https://asimonson.com/Resume.pdf", "Resume"] ] }, "Digital Portfolio": {