cmc/dotfiles
Using GNU Stow to manage my dotfiles.
clone: git clone https://gitbay.org/cmc/dotfiles.git
654bc7b1887db3287c2b91e368fb2aacc5baf330
verified · cmc
author: Christian Cleberg <hello@cleberg.net> · 2026-05-01T15:40:54Z
.../sites/cleberg_net_static_locations.conf | 38 ---------------------- 1 file changed, 38 deletions(-) deleted file mode 100644 @@ -1,38 +0,0 @@ -location /org/ { - internal; - alias /var/www/cleberg.net/org/; - default_type text/markdown; - add_header Content-Type "text/markdown; charset=utf-8" always; - add_header Vary "Accept" always; -} - -location = / { - if ($http_accept ~* "text/markdown") { - rewrite ^/$ /org/index.org last; - } - - add_header Vary "Accept" always; - try_files /index.html =404; -} - -location / { - try_files $uri $uri/ =404; -} - -location /blog/ { - rewrite ^/blog/((?!index)[^/]+)/(.*)$ /blog/$1.html permanent; - if ($http_accept ~* "text/markdown") { - rewrite ^/blog/([^/]+)\.html$ /org/blog/$1.org last; - } -} - -location ~ ^/(.+)\.html$ { - if ($http_accept ~* "text/markdown") { - rewrite ^/(.+)\.html$ /org/$1.org last; - } - add_header Vary "Accept" always; - try_files $uri =404; -} - -location /atom.xml { return 301 $scheme://$host/feed.xml; } -location /blog/salary-transparency.html { return 301 $scheme://$host/salary/; }