diff --git a/conf/.env.example b/conf/.env.example index b4d7b7e..b5c02db 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -1,7 +1,10 @@ # Create .env from this example file and replace values for the environment. # 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__ SECRET_KEY_BASE=__SECRET_KEY_BASE__ PORT=__PORT__ @@ -20,7 +23,9 @@ CHECK_FOR_UPDATES=0 # EMAIL CONFIGURATION DEFAULT_FROM_EMAIL=__APP__@__DOMAIN__ -SMTP_DOMAIN=__MAIN_DOMAIN__ +SMTP_USERNAME=__APP__ +SMTP_PASSWORD=__MAIL_PWD__ +SMTP_DOMAIN=__DOMAIN__ SMTP_PORT=25 # DISABLE USER SIGNUPS (true or false). Default: true diff --git a/conf/systemd.service b/conf/systemd.service index 14d602e..63fd9c7 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="__YNH_NODE_LOAD_PATH__" +EnvironmentFile=__INSTALL_DIR__/.env ExecStart=__YNH_NPM__ run start:prod StandardOutput=journal StandardError=inherit diff --git a/scripts/_common.sh b/scripts/_common.sh index 3ee64f3..f227381 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,8 +7,6 @@ NODEJS_VERSION="18.18.2" NPM_VERSION="9.8.1" -main_domain=$(cat /etc/yunohost/current_host) - #================================================= # PERSONAL HELPERS #=================================================