Something went wrong. Try again.
Docker files for the TLE Community deployment
Something went wrong. Try again.
2.0 kB · 90 lines
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091# Front proxy for The Lacuna Expanse.{$CADDY_DOMAIN:meanjin-one.tlecommunity.com} { log { output file /home/lacuna/server/log/caddy/access.log { roll_size 100MiB roll_keep 5 } format console } encode gzip header { Access-Control-Allow-Origin "*" Access-Control-Allow-Headers "content-type,x-requested-with,authorization" Cache-Control "public, must-revalidate" defer } redir / /app/ permanent redir /app /app/ permanent redir /alliance-starmap /alliance-starmap/ permanent redir /super-ui /super-ui/ permanent # Captcha files generated by the server handle_path /captcha/* { root * /home/lacuna/server/public/captcha file_server } # Server info such as stars.json and server_overview.json handle_path /server/* { root * /home/lacuna/server/public/server file_server } # Public rss feeds for the Network19 handle_path /network19/* { root * /home/lacuna/server/public/network19 file_server } # Public rss feeds for the mission command handle_path /missioncommand/* { root * /home/lacuna/server/public/missioncommand file_server } # Handle serving the app itself handle_path /app/* { reverse_proxy app:3000 { header_up Host localhost:3000 } } # Alliance starmap handle_path /alliance-starmap/* { reverse_proxy alliance-starmap:3000 { header_up Host localhost:3000 } } # Super UI handle_path /super-ui/* { reverse_proxy super-ui:3000 { header_up Host localhost:3000 } } # V2 proxy handle /v2/* { reverse_proxy v2-api:5999 { header_up X-Forwarded-Host {remote_host} } } # Fallback which handles serving up the handful of public files then funnels everything else into the Perl backend handle { root * /home/lacuna/server/public route { try_files {path} {path}/index.html @dynamic not file reverse_proxy @dynamic server:5000 { header_up X-Real-IP {remote_host} } file_server } }}