Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api deploy #291

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions playbooks/inventory/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ wai_ipa_redisearch_image_tag: 5.0.12-stable
# Portal image
wai_portal_image: webanalyticsitalia/wai-portal
wai_portal_image_tag: 1.6.8-beta
wai_portal_api_version: v1
wai_portal_matomo_sub_path: /matomo
wai_portal_environments:
wai-prod: production
Expand All @@ -200,6 +201,7 @@ redis_image_version: 5.0.7
# Matomo Image
wai_matomo_image: webanalyticsitalia/wai-matomo
wai_matomo_image_tag: 3.14.1-9
wai_matomo_widgets_sub_path: /widgets

# Wai NGINX Openresty
wai_nginx_openresty: webanalyticsitalia/wai-openresty
Expand Down
8 changes: 8 additions & 0 deletions playbooks/templates/k8s/namespace/04_portal.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ data:
APP_SALT={{ wai_settings[item].app_salt }}
APP_DEBUG=false
APP_URL=https://{{ wai_base_domain[item] }}
APP_API_VERSION={{ wai_portal_api_version }}

APP_CLOSED_BETA_ENABLED={{ wai_settings[item].closed_beta.enabled }}
CLOSED_BETA_WHITELIST_WEBHOOK_CLIENT_SECRET={{ wai_settings[item].closed_beta.secret }}
Expand Down Expand Up @@ -207,9 +208,16 @@ data:
ANALYTICS_API_BASE_URL=http://matomo-service
ANALYTICS_API_SSL_VERIFY=false
ANALYTICS_PUBLIC_URL=https://{{ wai_base_domain[item] }}{{ wai_portal_matomo_sub_path }}
ANALYTICS_API_PUBLIC_DOMAIN=https://{{ wai_hostname['api'] }}.{{ wai_base_domain[item] }}
ANALYTICS_API_PUBLIC_PATH={{ wai_portal_matomo_sub_path }}
ANALYTICS_WIDGETS_BASE_URL={{ wai_matomo_widgets_sub_path }}
ANALYTICS_PUBLIC_DASHBOARD_ID={{ wai_settings[item].analytics_public_dashboard_id }}
ANALYTICS_CRON_ARCHIVING_ENABLED={{ wai_settings[item].analytics_cron_archiving_enabled }}

KONG_ADMIN_API_URL=<to be set>
KONG_API_URL=<to be set>
Comment on lines +217 to +218
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qui ci sono da impostare i valori.

Copy link
Member Author

@pdavide pdavide Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qui ci sono da impostare i valori.

Senza trailing slash

KONG_API_PORTAL_BASE_PATH=/

SDG_API_PUBLIC_URL={{ wai_settings[item].sdg.api_public_url }}
SDG_API_SSL_VERIFY=true
SDG_API_KEY={{ wai_settings[item].sdg.api_key }}
Expand Down