diff --git a/Caddyfile b/Caddyfile index f163d6a..3f24e0d 100644 --- a/Caddyfile +++ b/Caddyfile @@ -128,14 +128,26 @@ roms.ginnoir.com { reverse_proxy romm:8080 } +romhacks.ginnoir.com { + import internal_only + root * /srv/romhacks-wiki + file_server +} + # Pokémon ROM-hack library files (box art, guides, spreadsheets) for the # Obsidian catalog notes. Internal-only — these downloads are private. # Root is the read-only /storage1/labdata/romhacks/library bind from the proxy # stack; notes embed art via https://romhacks-files.ginnoir.com//. romhacks-files.ginnoir.com { import internal_only - root * /srv/romhacks - file_server browse + handle_path /_roms/* { + root * /srv/roms + file_server + } + handle { + root * /srv/romhacks + file_server browse + } } # ============================================================= @@ -293,4 +305,4 @@ plane.ginnoir.com { # ============================================================= obsidian.ginnoir.com { reverse_proxy couchdb:5984 -} \ No newline at end of file +} diff --git a/bookmarks-domains.html b/bookmarks-domains.html index 6742c93..c03040c 100644 --- a/bookmarks-domains.html +++ b/bookmarks-domains.html @@ -50,6 +50,7 @@
whisparr
stash
roms +
romhacks
romhacks-files

diff --git a/stacks/proxy/docker-compose.yml b/stacks/proxy/docker-compose.yml index 865c0a4..6189a17 100644 --- a/stacks/proxy/docker-compose.yml +++ b/stacks/proxy/docker-compose.yml @@ -36,6 +36,9 @@ services: # read-only and LAN-only by the romhacks-files.ginnoir.com site so the # Obsidian catalog notes can embed art and link guides. - /storage1/labdata/romhacks/library:/srv/romhacks:ro + # ROM files are exposed only through romhacks-files.ginnoir.com/_roms/* + # and that site imports internal_only in the Caddyfile. + - /storage1/Emulation/roms:/srv/roms:ro networks: edge: