Skip to content

Commit 8373679

Browse files
Merge pull request #1661 from OpenSignLabs/do_deploy
feat: update proxy file
2 parents 4a85599 + 0a23aab commit 8373679

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Caddyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{$HOST_URL} {
22
reverse_proxy client:3000
3-
handle_path /app/* {
3+
handle_path /api/* {
44
reverse_proxy server:8080
5-
rewrite * /app{uri}
5+
rewrite * {uri}
66
}
77
}

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ services:
1111
env_file: .env.prod
1212
environment:
1313
- NODE_ENV=production
14-
- SERVER_URL=${HOST_URL:-https://localhost:3001}/app
14+
- SERVER_URL=${HOST_URL:-https://localhost:3001}/api/app
15+
- PUBLIC_URL=${HOST_URL:-https://localhost:3001}
1516
networks:
1617
- app-network
1718
mongo:

0 commit comments

Comments
 (0)