Skip to content

Commit

Permalink
Update caddy file
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed May 1, 2024
1 parent 4534214 commit 59d126c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions devops/vps2/configs/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ acc.clothingloop.org {
}

handle_path /api/* {
reverse_proxy 127.0.0.1:8082
reverse_proxy 127.0.0.1:8082 {
health_uri /v2/ping
lb_try_duration 30s
}
}

redir /mailpit /mailpit/
Expand All @@ -148,7 +151,10 @@ acc.clothingloop.org {
hello@clothingloop.org TUFJTFBJVF9QQVNTV09SRA==
}
rewrite * /mailpit{path}
reverse_proxy 127.0.0.1:8085
reverse_proxy 127.0.0.1:8085 {
health_uri /api/v1/info
lb_try_duration 30s
}
}

handle {
Expand All @@ -172,7 +178,10 @@ acc.app.clothingloop.org {
}

handle_path /api/* {
reverse_proxy 127.0.0.1:8082
reverse_proxy 127.0.0.1:8082 {
health_uri /v2/ping
lb_try_duration 30s
}
}

handle {
Expand Down

0 comments on commit 59d126c

Please sign in to comment.