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

Update Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +10 -3
Caddyfile CHANGED
@@ -8,12 +8,19 @@
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
  }
 
8
  }
9
 
10
  :3001 {
11
+ @api {
12
+ path /api/*
13
+ }
14
+ handle @api {
15
+ uri strip_prefix /api
16
  reverse_proxy localhost:3000
17
  }
18
 
19
+ @api_root {
20
+ path /api
21
+ }
22
+ handle @api_root {
23
+ rewrite * /api/
24
  reverse_proxy localhost:3000
25
  }
26
  }