-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCaddyfile.dev
More file actions
32 lines (27 loc) · 624 Bytes
/
Caddyfile.dev
File metadata and controls
32 lines (27 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Caddy development config with self-signed TLS
# Add to /etc/hosts: 127.0.0.1 wardrobe.local
wardrobe.local {
tls internal
# NextAuth routes go to frontend
handle /api/auth/* {
reverse_proxy frontend:3000
}
# Backend API routes
handle /api/* {
reverse_proxy backend:8000
}
# Swagger docs
handle /docs* {
reverse_proxy backend:8000
}
handle /openapi.json {
reverse_proxy backend:8000
}
handle /redoc* {
reverse_proxy backend:8000
}
# Everything else to frontend
handle {
reverse_proxy frontend:3000
}
}