diff options
| author | Pitu <[email protected]> | 2021-06-18 01:45:10 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-18 01:45:10 +0900 |
| commit | f42c75c7f4b43161386d40b070e5c7b9b9073213 (patch) | |
| tree | 78e2b152402ec2911067b993e0db366df3486c38 /src/setup.js | |
| parent | chore: change save msg (diff) | |
| download | host.fuwn.me-f42c75c7f4b43161386d40b070e5c7b9b9073213.tar.xz host.fuwn.me-f42c75c7f4b43161386d40b070e5c7b9b9073213.zip | |
feat: add domain to setup process
Diffstat (limited to 'src/setup.js')
| -rw-r--r-- | src/setup.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/setup.js b/src/setup.js index de684f9..997a251 100644 --- a/src/setup.js +++ b/src/setup.js @@ -15,6 +15,11 @@ async function start() { const wizard = [ { type: 'input', + query: 'Full domain this instance is gonna be running on (Ex: https://my-super-chibisafe.xyz):', + handle: 'DOMAIN' + }, + { + type: 'input', query: 'Port to run chibisafe in? (default: 5000)', handle: 'SERVER_PORT' }, @@ -55,6 +60,7 @@ async function start() { let envfile = ''; const defaultSettings = { + DOMAIN: response.DOMAIN, SERVER_PORT: response.SERVER_PORT || 5000, DB_CLIENT: response.DB_CLIENT, DB_HOST: response.DB_HOST || null, |