Skip to content

🔥 The free & Open Source DocuSign alternative

feat: update proxy file

prafull-opensignlabs0a23aabbe4a5
diff --git a/Caddyfile b/Caddyfile
index c3a000662..1fcaba49a 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -1,7 +1,7 @@
{$HOST_URL} {
reverse_proxy client:3000
- handle_path /app/* {
+ handle_path /api/* {
reverse_proxy server:8080
- rewrite * /app{uri}
+ rewrite * {uri}
}
}
diff --git a/docker-compose.yml b/docker-compose.yml
index ce20f63c7..577c1ed74 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,7 +11,8 @@ services:
env_file: .env.prod
environment:
- NODE_ENV=production
- - SERVER_URL=${HOST_URL:-https://localhost:3001}/app
+ - SERVER_URL=${HOST_URL:-https://localhost:3001}/api/app
+ - PUBLIC_URL=${HOST_URL:-https://localhost:3001}
networks:
- app-network
mongo: