Skip to content

Commit

Permalink
Add dynamic auth cookie name for ComfyUI caddy config
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Aug 7, 2024
1 parent 52ef945 commit f1435d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/COPY_ROOT_1/opt/caddy/share/service_config_18188
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
path /ai-dock/api/*
}

header @authenticating_bearer Set-Cookie "ai_dock_token={$WEB_TOKEN}; Path=/ ;Max-Age=604800; HttpOnly; SameSite=lax"
header @authenticating_basic Set-Cookie "ai_dock_token={$WEB_PASSWORD_B64}; Path=/ ;Max-Age=604800; HttpOnly; SameSite=lax"
header @authenticating_bearer Set-Cookie "{$CADDY_AUTH_COOKIE_NAME}={$WEB_TOKEN}; Path=/ ;Max-Age=604800; HttpOnly; SameSite=lax"
header @authenticating_basic Set-Cookie "{$CADDY_AUTH_COOKIE_NAME}={$WEB_PASSWORD_B64}; Path=/ ;Max-Age=604800; HttpOnly; SameSite=lax"

route @ai-dock-api {
uri strip_prefix /ai-dock/api
Expand Down

0 comments on commit f1435d9

Please sign in to comment.