From 642da0ed846b106298f9d95d620fcc15a8c71077 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 10 Jan 2026 12:58:06 -0500 Subject: [PATCH] resume paths --- etc/nginx/conf.d/default.conf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index 7da95dc..b9f2570 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -116,17 +116,15 @@ server { allow all; } - # resumes + # CV paths location ~ ^/cv/(~?swe|swe~/resume\.pdf)$ { alias /var/www/cv/swe/resume.pdf; default_type application/pdf; } -# location = /cv/dataeng~/resume.pdf { -# alias /var/www/cv/de/resume.pdf; -# } -# location = /cv/datasci~/resume.pdf { -# alias /var/www/cv/ds/resume.pdf; -# } + location ~ ^/resume(\.pdf|/swe\.pdf)$ { + alias /var/www/cv/swe/resume.pdf; + default_type application/pdf; + } # public folder location /public { @@ -143,6 +141,7 @@ server { ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Redirect www.dev.nutra.tk -> dev.nutra.tk server { listen 443 ssl; @@ -160,7 +159,9 @@ server { return 301 https://dev.nutra.tk$request_uri; } +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Listen on 443 with matrix / synapse +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server { listen 443 ssl; listen 443 quic; -- 2.52.0