Commit 397cc18 1 parent 4e3f04b commit 397cc18 Copy full SHA for 397cc18
File tree 4 files changed +33
-3
lines changed
4 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ app.env
22
22
.env.development.local
23
23
.env.test.local
24
24
.env.production.local
25
+ server /.env
25
26
26
27
npm-debug.log *
27
28
yarn-debug.log *
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ version: "3.4"
3
3
services :
4
4
server :
5
5
build : ./server
6
+ env_file :
7
+ - server/.env
6
8
ports :
7
9
# allow override of published port
8
10
- " 127.0.0.1:${EXTERNAL_PORT:-9000}:8000"
Original file line number Diff line number Diff line change 1
- const defaultEnv = {
2
- // PUBLIC_URL: 'http://localhost:8000',
3
- PUBLIC_URL : 'https://smart-health-links-server.cirg.washington.edu' ,
1
+ interface Config {
2
+ PUBLIC_URL : string ;
3
+ EMBEDDED_LENGTH_MAX : number ;
4
+ FILE_SIZE_MAX : number ;
5
+ APP_VERSION_STRING ?: string ;
6
+ PORT ?: number ;
7
+ JWKS_URL ?: string ;
8
+ } ;
9
+
10
+ const defaultEnv : Config = {
11
+ PUBLIC_URL : 'http://localhost:8000' ,
4
12
FILE_SIZE_MAX : 1024 * 1024 * 100 , // 100 MB
5
13
EMBEDDED_LENGTH_MAX : 10_000 , // 10 KB
14
+ APP_VERSION_STRING : "" ,
15
+ PORT : 8000 ,
6
16
JWKS_URL : "" ,
7
17
} ;
8
18
Original file line number Diff line number Diff line change
1
+ # Server base URL
2
+ PUBLIC_URL =
3
+
4
+ # Max size for returned manifest files
5
+ # EMBEDDED_LENGTH_MAX=
6
+
7
+ # Max size for uploaded files
8
+ # FILE_SIZE_MAX=
9
+
10
+ # VCS version string if not using CI image
11
+ # APP_VERSION_STRING=
12
+
13
+ # local deploy server port
14
+ # PORT=
15
+
16
+ # IDP jwks url for jwt auth
17
+ # JWKS_URL=
You can’t perform that action at this time.
0 commit comments