smgc commited on
Commit
035916f
1 Parent(s): 19588a3

Update Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +5 -8
Caddyfile CHANGED
@@ -8,12 +8,9 @@
8
  }
9
 
10
  :3001 {
11
- handle /api/* {
12
- uri strip_prefix /api
13
- reverse_proxy localhost:3000
14
- }
15
-
16
- handle {
17
- reverse_proxy localhost:3000
18
- }
19
  }
 
8
  }
9
 
10
  :3001 {
11
+ handle_path /api/v1/* {
12
+ rewrite * /v1{path}
13
+ reverse_proxy http://localhost:3000
14
+ }
15
+ reverse_proxy http://localhost:3000
 
 
 
16
  }