diff --git a/.env.example b/.env.example index a65d7b1..ff3cee9 100644 --- a/.env.example +++ b/.env.example @@ -8,8 +8,8 @@ PGSAIL_EMAIL_FROM=root@localhost PGSAIL_EMAIL_SERVER=localhost #PGSAIL_EMAIL_USER= Comment if not use #PGSAIL_EMAIL_PASS= Comment if not use -#PGSAIL_PUSHOVER_TOKEN= Comment if not use -#PGSAIL_PUSHOVER_APP= Comment if not use +#PGSAIL_PUSHOVER_APP_TOKEN= Comment if not use +#PGSAIL_PGSAIL_TELEGRAM_BOT_TOKEN= Comment if not use PGSAIL_APP_URL=http://localhost # POSTGREST ENV Settings PGRST_DB_URI=postgres://authenticator:${PGSAIL_AUTHENTICATOR_PASSWORD}@127.0.0.1:5432/signalk diff --git a/initdb/99env.sh b/initdb/99env.sh index 1211cb9..421efb0 100755 --- a/initdb/99env.sh +++ b/initdb/99env.sh @@ -14,12 +14,12 @@ INSERT INTO app_settings (name, value) VALUES ('app.email_user', '${PGSAIL_EMAIL_USER}'), ('app.email_pass', '${PGSAIL_EMAIL_PASS}'), ('app.email_from', '${PGSAIL_EMAIL_FROM}'), - ('app.pushover_token', '${PGSAIL_PUSHOVER_TOKEN}'), - ('app.pushover_app', '_todo_'), + ('app.pushover_app_token', '${PGSAIL_PUSHOVER_APP_TOKEN}'), + ('app.telegram_bot_token', '${PGSAIL_TELEGRAM_BOT_TOKEN}'), ('app.url', '${PGSAIL_APP_URL}'), ('app.version', '${PGSAIL_VERSION}'); -- Update comment with version -COMMENT ON DATABASE signalk IS 'version ${PGSAIL_VERSION}'; +COMMENT ON DATABASE signalk IS 'PostgSail version ${PGSAIL_VERSION}'; -- Update password from env ALTER ROLE authenticator WITH PASSWORD '${PGSAIL_AUTHENTICATOR_PASSWORD}'; ALTER ROLE grafana WITH PASSWORD '${PGSAIL_GRAFANA_PASSWORD}';