1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tooljet_ynh.git synced 2024-10-01 13:34:55 +02:00

Merge pull request #173 from YunoHost-Apps/enh

Enhance env file
This commit is contained in:
eric_G 2024-08-04 22:28:50 +02:00 committed by GitHub
commit 08ff394a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View file

@ -1,7 +1,10 @@
# Create .env from this example file and replace values for the environment. # Create .env from this example file and replace values for the environment.
# The application expects a separate .env.test for test environment configuration # The application expects a separate .env.test for test environment configuration
TOOLJET_HOST=https://__DOMAIN____PATH__ NODE_ENV=production
TOOLJET_HOST=https://__DOMAIN__
SUB_PATH=__PATH__/
LOCKBOX_MASTER_KEY=__LOCKBOX_MASTER_KEY__ LOCKBOX_MASTER_KEY=__LOCKBOX_MASTER_KEY__
SECRET_KEY_BASE=__SECRET_KEY_BASE__ SECRET_KEY_BASE=__SECRET_KEY_BASE__
PORT=__PORT__ PORT=__PORT__
@ -20,8 +23,11 @@ CHECK_FOR_UPDATES=0
# EMAIL CONFIGURATION # EMAIL CONFIGURATION
DEFAULT_FROM_EMAIL=__APP__@__DOMAIN__ DEFAULT_FROM_EMAIL=__APP__@__DOMAIN__
SMTP_DOMAIN=__MAIN_DOMAIN__ SMTP_USERNAME=__APP__
SMTP_PASSWORD=__MAIL_PWD__
SMTP_DOMAIN=__DOMAIN__
SMTP_PORT=25 SMTP_PORT=25
SMTP_SSL=false
# DISABLE USER SIGNUPS (true or false). Default: true # DISABLE USER SIGNUPS (true or false). Default: true
DISABLE_SIGNUPS= DISABLE_SIGNUPS=

View file

@ -8,6 +8,7 @@ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
EnvironmentFile=__INSTALL_DIR__/.env
ExecStart=__YNH_NPM__ run start:prod ExecStart=__YNH_NPM__ run start:prod
StandardOutput=journal StandardOutput=journal
StandardError=inherit StandardError=inherit

View file

@ -7,8 +7,6 @@
NODEJS_VERSION="18.18.2" NODEJS_VERSION="18.18.2"
NPM_VERSION="9.8.1" NPM_VERSION="9.8.1"
main_domain=$(cat /etc/yunohost/current_host)
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS
#================================================= #=================================================