smgc commited on
Commit
cd17c00
1 Parent(s): 9d9536c

Update Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +4 -5
Caddyfile CHANGED
@@ -8,12 +8,11 @@
8
  }
9
 
10
  :3001 {
11
- @api path /api/*
12
- handle @api {
13
- reverse_proxy localhost:3000
14
  }
15
 
16
- handle {
17
- respond "404 Not Found" 404
18
  }
19
  }
 
8
  }
9
 
10
  :3001 {
11
+ reverse_proxy /api/* localhost:3000 {
12
+ rewrite * /{path}
 
13
  }
14
 
15
+ handle /api {
16
+ reverse_proxy localhost:3000
17
  }
18
  }