Update Caddyfile
Browse files
Caddyfile
CHANGED
|
@@ -8,18 +8,12 @@
|
|
| 8 |
}
|
| 9 |
|
| 10 |
:3001 {
|
| 11 |
-
|
| 12 |
-
path /api/*
|
| 13 |
-
}
|
| 14 |
-
handle @api {
|
| 15 |
uri strip_prefix /api
|
| 16 |
reverse_proxy localhost:3000
|
| 17 |
}
|
| 18 |
|
| 19 |
-
|
| 20 |
-
path /api
|
| 21 |
-
}
|
| 22 |
-
handle @api_root {
|
| 23 |
rewrite * /api/
|
| 24 |
reverse_proxy localhost:3000
|
| 25 |
}
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
:3001 {
|
| 11 |
+
handle /api/* {
|
|
|
|
|
|
|
|
|
|
| 12 |
uri strip_prefix /api
|
| 13 |
reverse_proxy localhost:3000
|
| 14 |
}
|
| 15 |
|
| 16 |
+
handle /api {
|
|
|
|
|
|
|
|
|
|
| 17 |
rewrite * /api/
|
| 18 |
reverse_proxy localhost:3000
|
| 19 |
}
|