diff options
| author | Zephyrrus <[email protected]> | 2020-07-19 22:35:59 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-19 22:35:59 +0300 |
| commit | 645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48 (patch) | |
| tree | 4c454e816b699ead53d225afadfb528649d126f7 /src/setup.js | |
| parent | feat: Start working on a new album/tags/image info modal (diff) | |
| parent | Update setup script (diff) | |
| download | host.fuwn.me-645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48.tar.xz host.fuwn.me-645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48.zip | |
Merge branch 'dev' into dev-zephy
Diffstat (limited to 'src/setup.js')
| -rw-r--r-- | src/setup.js | 42 |
1 files changed, 8 insertions, 34 deletions
diff --git a/src/setup.js b/src/setup.js index 91eaa1c..2f9dee2 100644 --- a/src/setup.js +++ b/src/setup.js @@ -16,16 +16,11 @@ async function start() { const wizard = [ { type: 'input', - query: 'Port to run the API in:', + query: 'Port to run lolisafe in:', handle: 'SERVER_PORT', }, { type: 'input', - query: 'Port to run the Website in when in dev mode:', - handle: 'WEBSITE_PORT', - }, - { - type: 'input', query: 'Full domain this instance is gonna be running on (Ex: https://lolisafe.moe):', handle: 'DOMAIN', }, @@ -41,13 +36,6 @@ async function start() { }, { type: 'confirm', - query: 'Generate thumbnails for images/videos? (Requires ffmpeg installed and in your PATH)', - handle: 'GENERATE_THUMBNAILS', - accept: 'y', - deny: 'n', - }, - { - type: 'confirm', query: 'Allow users to download entire albums in ZIP format?', handle: 'GENERATE_ZIPS', accept: 'y', @@ -55,31 +43,14 @@ async function start() { }, { type: 'confirm', - query: 'Serve files with node?', - handle: 'SERVE_WITH_NODE', - accept: 'y', - deny: 'n', - }, - { - type: 'input', - query: 'Base number of characters for generated file URLs (12 should be good enough):', - handle: 'GENERATED_FILENAME_LENGTH', - }, - { - type: 'input', - query: 'Base number of characters for generated album URLs (6 should be enough):', - handle: 'GENERATED_ALBUM_LENGTH', - }, - { - type: 'confirm', - query: 'Run lolisafe in public mode? (People will be able to upload without an account)', + query: 'Allow people to upload files without an account?', handle: 'PUBLIC_MODE', accept: 'y', deny: 'n', }, { type: 'confirm', - query: 'Enable user signup for new accounts?', + query: 'Allow people to create new accounts?', handle: 'USER_ACCOUNTS', accept: 'y', deny: 'n', @@ -131,6 +102,11 @@ async function start() { let envfile = ''; const defaultSettings = { + GENERATED_FILENAME_LENGTH: 12, + GENERATED_ALBUM_LENGTH: 6, + WEBSITE_PORT: 5001, + SERVE_WITH_NODE: true, + GENERATE_THUMBNAILS: true, CHUNK_SIZE: 90, ROUTE_PREFIX: '/api', RATE_LIMIT_WINDOW: 2, @@ -158,8 +134,6 @@ async function start() { console.log('============================================='); console.log('== .env file generated successfully. =='); console.log('============================================='); - console.log('== Run `yarn migrate` and `yarn seed` next =='); - console.log('============================================='); console.log(); } |