Update Caddyfile
Browse files
Caddyfile
CHANGED
|
@@ -3,15 +3,15 @@
|
|
| 3 |
log {
|
| 4 |
output file /data/caddy.log
|
| 5 |
format console
|
| 6 |
-
level
|
| 7 |
}
|
| 8 |
}
|
| 9 |
|
| 10 |
-
|
| 11 |
reverse_proxy localhost:3000
|
| 12 |
|
| 13 |
route /api/v1/* {
|
| 14 |
-
rewrite
|
| 15 |
reverse_proxy localhost:3000
|
| 16 |
}
|
| 17 |
}
|
|
|
|
| 3 |
log {
|
| 4 |
output file /data/caddy.log
|
| 5 |
format console
|
| 6 |
+
level info
|
| 7 |
}
|
| 8 |
}
|
| 9 |
|
| 10 |
+
::3001 {
|
| 11 |
reverse_proxy localhost:3000
|
| 12 |
|
| 13 |
route /api/v1/* {
|
| 14 |
+
rewrite /api/v1/* /v1/{path}
|
| 15 |
reverse_proxy localhost:3000
|
| 16 |
}
|
| 17 |
}
|