Skip to content

Commit

Permalink
Enable Matomo configuration via env vars, in deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Dec 1, 2021
1 parent f392d0c commit 5e6e4ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions infrastructure/inventories/dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ process_endpoint='https://stylo-export.ecrituresnumeriques.ca'
human_id_register_endpoint='https://auth-test.huma-num.fr/register?service=https://stylo-dev.huma-num.fr/authorization-code/callback'
export_canonical_base_url='https://stylo-dev.huma-num.fr'
zotero_auth_callback_url='http://stylo-dev.huma-num.fr/authorization-code/zotero/callback'
matomo_url='https://analyseweb.huma-num.fr/'
matomo_site_id=286

[stylo]
node01 ansible_user=stylo ansible_host=cchum-kvm-stylo-dev.in2p3.fr
3 changes: 3 additions & 0 deletions infrastructure/inventories/prod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ human_id_register_endpoint='https://humanid.huma-num.fr/register?service=https:/
# Désactive l'URL canonical vers stylo.huma-num.fr car Hypthesis ne sait pas faire le lien
export_canonical_base_url=''
zotero_auth_callback_url='http://stylo.huma-num.fr/authorization-code/zotero/callback'
# Configuration des analytics
matomo_url='https://analyseweb.huma-num.fr/'
matomo_site_id=286

[stylo]
node01 ansible_user=stylo ansible_host=cchum-kvm-stylo.in2p3.fr
3 changes: 2 additions & 1 deletion infrastructure/templates/stylo.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ SNOWPACK_PUBLIC_GRAPHQL_ENDPOINT={{graphql_endpoint}}
SNOWPACK_PUBLIC_EXPORT_ENDPOINT={{export_endpoint}}
SNOWPACK_PUBLIC_PROCESS_ENDPOINT={{process_endpoint}}
SNOWPACK_PUBLIC_HUMAN_ID_REGISTER_ENDPOINT={{human_id_register_endpoint}}
SNOWPACK_MATOMO_URL={{matomo_url}}
SNOWPACK_MATOMO_SITE_ID={{matomo_site_id}}
EXPORT_CANONICAL_BASE_URL={{export_canonical_base_url}}
ZOTERO_AUTH_CLIENT_KEY={{zotero_auth_client_key}}
ZOTERO_AUTH_CLIENT_SECRET={{zotero_auth_client_secret}}
ZOTERO_AUTH_CALLBACK_URL={{zotero_auth_callback_url}}

0 comments on commit 5e6e4ec

Please sign in to comment.