Remove caddy global options that were causing error detecting startup complete message.

This commit is contained in:
Leo Vasanko
2025-12-06 23:32:24 +00:00
parent 8f0cb8d80a
commit 269aefa9c8
+3 -16
View File
@@ -61,26 +61,13 @@ NO_FRONTEND = """\
┃ for various frontend assets, so make sure to start it manually.
"""
# Global options for Caddy
CADDYFILE_GLOBAL = """\
{
admin off
log {
level warn
}
}
"""
CADDYFILE_SITE_BLOCK = """\
SITE_ADDR {
# API requests go directly to backend
handle /auth/api/* {
reverse_proxy localhost:BACKEND_PORT
}
# WebSockets bypass directly to backend (workaround for bun proxy bug)
handle /auth/ws/* {
reverse_proxy localhost:BACKEND_PORT
}
# Everything else goes to Vite
# Everything else goes to or via Vite
handle {
reverse_proxy localhost:VITE_PORT
}
@@ -223,7 +210,7 @@ def run_caddy(origins: list[str], vite_port: int) -> subprocess.Popen | None:
)
caddyfile_parts.append(block)
caddyfile = CADDYFILE_GLOBAL + "\n".join(caddyfile_parts)
caddyfile = "\n".join(caddyfile_parts)
caddy_process = None
try: