From 53788d97cee6b4bfa5fc0278b03244a26e9c6ca6 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 3 Sep 2025 23:12:35 -0500 Subject: [PATCH] update --- .old/etc/caddy/sites-enabled/synth.download | 41 ++++++++++++++++----- phosphorus/srv/docker/sharkey/default.yml | 2 +- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/.old/etc/caddy/sites-enabled/synth.download b/.old/etc/caddy/sites-enabled/synth.download index 1bb15b0..e00455b 100644 --- a/.old/etc/caddy/sites-enabled/synth.download +++ b/.old/etc/caddy/sites-enabled/synth.download @@ -4,21 +4,17 @@ synth.download { try_files {path} {path}.html {path}/ =404 # kill - redir /.git https://nbg1-speed.hetzner.com/10GB.bin - redir /.git/ /.git + redir /.git* https://nbg1-speed.hetzner.com/10GB.bin + + # redirects + redir /home / + redir /~sneexy* https://sneexy.synth.download # iceshrimp.net split domain redir /.well-known/webfinger https://beeping.synth.download{uri} 301 redir /.well-known/host-meta https://beeping.synth.download{uri} 301 redir /.well-known/nodeinfo https://beeping.synth.download{uri} 301 - # redirect pub to public directory - redir /pub /pub/ - handle_path /pub/* { - root * /var/www/pub - file_server browse - } - # xmpp xep-0156 handle /.well-known/host-meta { @options method OPTIONS @@ -38,4 +34,31 @@ synth.download { import common-settings import log website import robots-txt +} + +# sneexy +sneexy.synth.download { + handle { + root * /var/www/website/_site/subdomain/sneexy + file_server + try_files {path} {path}.html {path}/ =404 + } + + # assets + handle_path /assets/* { + root * /var/www/website/_site/assets + file_server browse + } + + # redirect synth.download links back to original site + redir /home https://synth.download + redir /services https://synth.download/services + redir /admins https://synth.download/admins + redir /donate https://synth.download/donate + redir /privacy https://synth.download/privacy + redir /tos https://synth.download/tos + + import common-settings + import log sneexy + import robots-txt } \ No newline at end of file diff --git a/phosphorus/srv/docker/sharkey/default.yml b/phosphorus/srv/docker/sharkey/default.yml index dc29b2e..9204e65 100644 --- a/phosphorus/srv/docker/sharkey/default.yml +++ b/phosphorus/srv/docker/sharkey/default.yml @@ -544,4 +544,4 @@ customHtml: head: | - \ No newline at end of file + \ No newline at end of file