Something went wrong. Try again.
A lightweight, self-hosted multi-tenant web publishing platform
Something went wrong. Try again.
tinycities Caddyfile
767 B 32 lines
at master
123456789101112131415161718192021222324252627282930313233{ auto_https disable_redirects}
http://{$DOMAIN:localhost}, https://{$DOMAIN:localhost}, http://localtest.me, https://localtest.me, http://lvh.me, https://lvh.me { handle /api/* { reverse_proxy {$BACKEND_UPSTREAM:backend:8001} }
handle_path /sites/* { root * /srv file_server { index index.html index.htm } }
handle /* { reverse_proxy {$FRONTEND_UPSTREAM:frontend:8000} }}
http://*.{$DOMAIN:localhost}, https://*.{$DOMAIN:localhost}, http://*.localtest.me, https://*.localtest.me, http://*.lvh.me, https://*.lvh.me { map {host} {subdomain} { ~^(?i)(?P<sub>[^.]+)\.[^:]+(:\d+)?$ ${sub} default "{labels.1}" } root * /srv/{subdomain} try_files {path} {path}/index.html {path}.html =404 file_server { index index.html index.htm }}