Compare commits

..
4 changed files with 10 additions and 4 deletions
+5
View File
@@ -8,6 +8,8 @@ PUBLIC_URL=https://localhost:3001
GENERATE_SOURCEMAP=false GENERATE_SOURCEMAP=false
# Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead) # Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead)
# REACT_APP_SERVERURL=http://localhost:8080/app # REACT_APP_SERVERURL=http://localhost:8080/app
# (DEPRECATED) This should not be changed if provided; it should be 'opensign'.
REACT_APP_APPID=opensign
# Backend ExpressJS config **************************************************************************************************************************************************************************************** # Backend ExpressJS config ****************************************************************************************************************************************************************************************
@@ -107,3 +109,6 @@ CRUxFgQUDYlgGVxSxuOknhQc256x3++7BDwwMTAhMAkGBSsOAwIaBQAEFFjASdYl
# Provide Pass pharse of above PFX or p12 document # Provide Pass pharse of above PFX or p12 document
PASS_PHRASE=opensign PASS_PHRASE=opensign
# (DEPRECATED) This should not be changed if provided; it should be 'opensign'.
APP_ID=opensign
+2 -2
View File
@@ -1,7 +1,7 @@
{$HOST_URL} { {$HOST_URL} {
reverse_proxy client:3000 reverse_proxy client:3000
handle_path /app/* { handle_path /api/* {
reverse_proxy server:8080 reverse_proxy server:8080
rewrite * /app{uri} rewrite * {uri}
} }
} }
+1 -1
View File
@@ -4,7 +4,7 @@ export function serverUrl_fn() {
let baseUrl; let baseUrl;
baseUrl = process.env.REACT_APP_SERVERURL baseUrl = process.env.REACT_APP_SERVERURL
? process.env.REACT_APP_SERVERURL ? process.env.REACT_APP_SERVERURL
: window.location.origin + "/app"; : window.location.origin + "/api/app";
return baseUrl; return baseUrl;
} }
+2 -1
View File
@@ -11,7 +11,8 @@ services:
env_file: .env.prod env_file: .env.prod
environment: environment:
- NODE_ENV=production - 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: networks:
- app-network - app-network
mongo: mongo: