Skip to content

Commit

Permalink
Add new env variable for committee clash on radio
Browse files Browse the repository at this point in the history
  • Loading branch information
stickyPiston committed Mar 4, 2025
1 parent 0dd7858 commit 605982e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ansible/group_vars/production/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ secret_radio:
contentful_space_id: "{{ vault_secret_radio.contentful_space_id }}"
contentful_space_access_token: "{{ vault_secret_radio.contentful_space_access_token }}"
github_api_token: "{{ vault_secret_radio.github_api_token }}"
weather_api_token: "{{ vault_secret_radio.weather_api_token }}"
committee_clash_url: "{{ vault_secret_radio.committee_clash_url }}"

secret_intro_bot:
alfas_app_id: "{{ vault_secret_intro_bot.alfas_app_id }}"
Expand Down
2 changes: 2 additions & 0 deletions ansible/group_vars/staging/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ secret_radio:
contentful_space_id: "{{ vault_secret_radio.contentful_space_id }}"
contentful_space_access_token: "{{ vault_secret_radio.contentful_space_access_token }}"
github_api_token: "{{ vault_secret_radio.github_api_token }}"
weather_api_token: "{{ vault_secret_radio.weather_api_token }}"
committee_clash_url: "{{ vault_secret_radio.committee_clash_url }}"

secret_intro_bot:
alfas_app_id: "{{ vault_secret_intro_bot.alfas_app_id }}"
Expand Down
7 changes: 6 additions & 1 deletion ansible/roles/radio/templates/.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ VITE_KOALA_API_BASE=https://koala.svsticky.nl/api/
VITE_LOAD_INTERVAL=900000 # 15 * 60 * 1000
VITE_NEXT_INTERVAL=8000 # 8 * 1000
# It switches after INTERVAL + INTERVAL_COMMITS
VITE_NEXT_INTERVAL_COMMITS=10000
VITE_NEXT_INTERVAL_COMMITS=10000

# Commits page
VITE_GITHUB_REPOS=svsticky/radio svsticky/constipated-koala svsticky/static-sticky svsticky/sadserver svsticky/chroma svsticky/intro-website svsticky/crazy88bot
VITE_GITHUB_API_TOKEN={{ secret_radio.github_api_token }}

# Snow height page
VITE_SNOW_HEIGHT_URL="https://www.sneeuwhoogte.nl/sneeuwhoogte-op-je-site/la plagne/big"

VITE_WEATHER_API_TOKEN={{ secret_radio.weather_api_token }}

# URL For the Committee Clash page. If left out, it will not display
VITE_COMMITTEECLASH_GRAPH={{ secret_radio.committee_clash_url }}

0 comments on commit 605982e

Please sign in to comment.