That page is not in the cluster.
+The requested resource may have moved, been renamed, or never existed.
+diff --git a/apps/portfolio/kustomization.yaml b/apps/portfolio/kustomization.yaml index 980a964..70c306a 100644 --- a/apps/portfolio/kustomization.yaml +++ b/apps/portfolio/kustomization.yaml @@ -26,6 +26,8 @@ configMapGenerator: - architecture.svg=site/architecture.svg - favicon.svg=site/favicon.svg - robots.txt=site/robots.txt + - security.txt=site/security.txt + - 404.html=site/404.html - sitemap.xml=site/sitemap.xml - Jay-Phillips-Infrastructure-Resume.pdf=site/Jay-Phillips-Infrastructure-Resume.pdf - social-card.png=site/social-card.png diff --git a/apps/portfolio/nginx/default.conf b/apps/portfolio/nginx/default.conf index 2d524e3..7df227d 100644 --- a/apps/portfolio/nginx/default.conf +++ b/apps/portfolio/nginx/default.conf @@ -6,6 +6,7 @@ server { root /usr/share/nginx/html; index index.html; server_tokens off; + error_page 404 /404.html; charset utf-8; access_log /dev/stdout; @@ -17,9 +18,18 @@ server { add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()" always; add_header Cross-Origin-Opener-Policy "same-origin" always; add_header Cross-Origin-Resource-Policy "same-origin" always; - add_header X-Robots-Tag "noindex, nofollow" always; add_header Content-Security-Policy "default-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; script-src 'none'; connect-src 'none'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests" always; + + location = /.well-known/security.txt { + default_type text/plain; + try_files /security.txt =404; + } + + location = /404.html { + internal; + } + location = /healthz { access_log off; default_type text/plain; diff --git a/apps/portfolio/site/404.html b/apps/portfolio/site/404.html new file mode 100644 index 0000000..864aac7 --- /dev/null +++ b/apps/portfolio/site/404.html @@ -0,0 +1,43 @@ + + +
+ + + + + +The requested resource may have moved, been renamed, or never existed.
+