Skip to content

Commit b468b33

Browse files
committed
fix(caddy): use 'main' server name instead of 'srv0'
Our Caddy config names the server 'main', not the default 'srv0'.
1 parent a49eec8 commit b468b33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/worker/deploy/caddy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub async fn configure_caddy_route(
3535
let _ = remove_caddy_route(http_client, caddy_admin_api, site_id).await;
3636

3737
// Add the new route
38-
let url = format!("{}/config/apps/http/servers/srv0/routes", caddy_admin_api);
38+
let url = format!("{}/config/apps/http/servers/main/routes", caddy_admin_api);
3939

4040
let response = http_client
4141
.post(&url)
@@ -67,7 +67,7 @@ pub async fn remove_caddy_route(
6767
site_id: &str,
6868
) -> Result<()> {
6969
let url = format!(
70-
"{}/config/apps/http/servers/srv0/routes/{}",
70+
"{}/config/apps/http/servers/main/routes/{}",
7171
caddy_admin_api, site_id
7272
);
7373

0 commit comments

Comments
 (0)