smgc commited on
Commit
6ebe904
1 Parent(s): 3ef06e4

Update Caddyfile

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