mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-04 16:58:05 +02:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e3f92f96f | ||
|
|
4fe87f41a0 | ||
|
|
ad165914c1 | ||
|
|
9658761ede | ||
|
|
6aad832e37 |
@@ -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
|
||||||
|
|||||||
@@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user