Skip to content

Commit

Permalink
add settings for connectid messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Oct 28, 2024
1 parent d09d1e9 commit 0a0810d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions environments/production/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ localsettings:
USER_REPORTING_METADATA_BATCH_ENABLED: True
WS4REDIS_CONNECTION_HOST: "redis.production.commcare.local"
CONNECTID_URL: 'https://connectid.dimagi.com/o/userinfo'
CONNECTID_CHANNEL_URL: 'https://connectid.dimagi.com/messaging/create_channel/'
CONNECTID_MESSAGE_URL: 'https://connectid.dimagi.com/messaging/send_fcm/'
ASYNC_INDICATORS_TO_QUEUE: 20000

# comment these two lines out to make a new rackspace machine
Expand Down
2 changes: 2 additions & 0 deletions environments/staging/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ localsettings:
}
}
CONNECTID_URL: 'https://connectid.dimagi.com/o/userinfo'
CONNECTID_CHANNEL_URL: 'https://connectid.dimagi.com/messaging/create_channel/'
CONNECTID_MESSAGE_URL: 'https://connectid.dimagi.com/messaging/send_fcm/'


# comment these two lines out to make a new rackspace machine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,22 @@ FCM_CREDS = json.loads({{ FCM_CREDS }})
CONNECTID_USERINFO_URL = "{{ localsettings.CONNECTID_URL }}"
{% endif %}

{% if CONNECTID_SECRET_KEY is defined %}
CONNECTID_SECRET_KEY = "{{ CONNECTID_SECRET_KEY }}"
{% endif %}

{% if CONNECTID_CLIENT_ID is defined %}
CONNECTID_CLIENT_ID = "{{ CONNECTID_CLIENT_ID }}"
{% endif %}

{% if localsettings.CONNECTID_CHANNEL_URL is defined %}
CONNECTID_CHANNEL_URL = "{{ localsettings.CONNECTID_CHANNEL_URL }}"
{% endif %}

{% if localsettings.CONNECTID_MESSAGE_URL is defined %}
CONNECTID_MESSAGE_URL = "{{ localsettings.CONNECTID_MESSAGE_URL }}"
{% endif %}

{% if localsettings.MAX_MOBILE_UCR_LIMIT is defined %}
MAX_MOBILE_UCR_LIMIT = {{ localsettings.MAX_MOBILE_UCR_LIMIT }}
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions src/commcare_cloud/environment/secrets/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,9 @@
- name: EPIC_CLIENT_ID
legacy_namespace: secrets
default: ''
- name: CONNECTID_SECRET_KEY
legacy_namespace: secrets
default: ''
- name: CONNECTID_CLIENT_ID
legacy_namespace: secrets
default: ''

0 comments on commit 0a0810d

Please sign in to comment.