Created
June 16, 2023 12:19
-
-
Save hUwUtao/a4622323bd51fd7526d5b6a34c9fa859 to your computer and use it in GitHub Desktop.
Experimental Bluemap configuration for caddy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root * /var/www/bluemap/web | |
@gzip { | |
header_regexp Accept-Encoding (x-)?gzip | |
file { | |
try_files {path}.gz | |
} | |
} | |
route @gzip { | |
header Content-Encoding gzip | |
rewrite {path}.gz | |
} | |
respond /maps/*/tiles/*.png 204 | |
@maps { | |
path /maps/*.json | |
not file | |
} | |
rewrite @maps /assets/emptyTile.json | |
reverse_proxy /maps/*/live/* 172.32.0.1:8100 | |
file_server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment