Skip to content

Commit 201eba8

Browse files
committed
Fix PostgREST section in Caddyfile
1 parent a7af248 commit 201eba8

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

caddy/Caddyfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
:80, :443 {
2-
handle_path /rest/* {
3-
reverse_proxy postgrest:3000
4-
}
5-
handle_path /api/* {
6-
reverse_proxy postgrest:3000
7-
}
8-
reverse_proxy /rpc/* postgrest:3000
9-
handle_path /openapi/* {
10-
reverse_proxy swagger-ui:8080
11-
}
2+
3+
# PostgREST
4+
handle_path /rest/* {
5+
reverse_proxy http://postgrest:3000
6+
}
7+
8+
handle /rpc/* {
9+
reverse_proxy http://postgrest:3000
10+
}
11+
12+
# Swagger UI
13+
handle_path /openapi/* {
14+
reverse_proxy swagger-ui:8080
15+
}
1216
}

0 commit comments

Comments
 (0)