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

Merge pull request #30 from orhtej2/disable_telemetry

Disable umami and next.js telemetry.
This commit is contained in:
eric_G 2023-09-11 14:26:02 +02:00 committed by GitHub
commit 37b1a9083c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
DATABASE_TYPE=postgresql DATABASE_TYPE=postgresql
DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__ DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__
DISABLE_TELEMETRY=0 DISABLE_TELEMETRY=1
PORT=__PORT__ PORT=__PORT__
DEFAULT_LOCALE="__LANGUAGE__" DEFAULT_LOCALE="__LANGUAGE__"

View file

@ -7,8 +7,9 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
#Environment=NODE_ENV=production Environment=NODE_ENV=production
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
Environment=NEXT_TELEMETRY_DISABLED=1
ExecStart=__YNH_NPM__ run start-env ExecStart=__YNH_NPM__ run start-env
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -59,7 +59,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15
pushd $install_dir pushd $install_dir
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NEXT_TELEMETRY_DISABLED=1 yarn build
popd popd
#================================================= #=================================================

View file

@ -91,7 +91,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15
pushd $install_dir pushd $install_dir
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NEXT_TELEMETRY_DISABLED=1 yarn build
#ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npx @umami/migrate-v1-v2@latest #ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npx @umami/migrate-v1-v2@latest
popd popd