Remove caddy global options that were causing error detecting startup complete message.
This commit is contained in:
+3
-16
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user