File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,18 @@ const DEFAULT_NGINX_BASE_CONFIG = fs
2929const DEFAULT_NGINX_CAPTAIN_CONFIG = fs
3030 . readFileSync ( __dirname + '/../../template/root-nginx-conf.ejs' )
3131 . toString ( )
32+
33+ let DEFAULT_NGINX_CONFIG_FOR_APP_PATH = __dirname + '/../../template/server-block-conf.ejs'
34+
35+ if ( fs . pathExistsSync ( '/captain/data/server-block-conf-override.ejs' ) ) {
36+ DEFAULT_NGINX_CONFIG_FOR_APP_PATH = '/captain/data/server-block-conf-override.ejs'
37+ }
38+
3239const DEFAULT_NGINX_CONFIG_FOR_APP = fs
33- . readFileSync ( __dirname + '/../../template/server-block-conf.ejs' )
40+ . readFileSync ( DEFAULT_NGINX_CONFIG_FOR_APP_PATH )
3441 . toString ( )
3542
43+
3644class DataStore {
3745 private encryptor : CaptainEncryptor
3846 private namespace : string
You can’t perform that action at this time.
0 commit comments