fedoca: fix the configurations for the new url and secret location

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-29 14:03:03 +01:00
parent 065a4a60a9
commit d4998f2e25
2 changed files with 11 additions and 18 deletions

View file

@ -9,7 +9,7 @@
{% endif %}
"issuer": "https://id{{env_suffix}}.fedoraproject.org/openidc/",
"redirect_uris": [
"https://elections{{env_suffix}}.fedoraproject.org/oidc_callback"
"https://calendar{{env_suffix}}.fedoraproject.org/oidc_callback"
],
"token_uri": "https://id{{env_suffix}}.fedoraproject.org/openidc/Token",
"userinfo_uri": "https://id{{env_suffix}}.fedoraproject.org/openidc/UserInfo"

View file

@ -14,6 +14,8 @@ DB_URL='postgresql://{{ fedocal_db_user }}:{{ fedocal_db_pass }}@db01.iad2.fedor
{% endif %}
OIDC_CLIENT_SECRETS = '/opt/app-root/secret/client_secrets.json'
### The FAS group in which the admin of fedocal are
ADMIN_GROUP='sysadmin-calendar'
@ -39,28 +41,19 @@ PREFERRED_URL_SCHEME='https'
# Make browsers send session cookie only via HTTPS
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_PATH = '/calendar'
SESSION_COOKIE_PATH = '/'
SESSION_COOKIE_NAME = 'fedocal'
# Used by SESSION_COOKIE_PATH
APPLICATION_ROOT = '/calendar/'
APPLICATION_ROOT = '/'
{% if env == 'staging' %}
APP_URL = 'https://apps.stg.fedoraproject.org/' + APPLICATION_ROOT
APP_URL = 'https://calendar.stg.fedoraproject.org/' + APPLICATION_ROOT
FAS_OPENID_ENDPOINT = 'https://id.stg.fedoraproject.org/openid/'
SITE_ROOT = 'https://apps.stg.fedoraproject.org'
SITE_URL = '%s/calendar' % SITE_ROOT
SITE_ROOT = 'https://calendar.stg.fedoraproject.org'
SITE_URL = '%s/' % SITE_ROOT
{% else %}
APP_URL = 'https://apps.fedoraproject.org/' + APPLICATION_ROOT
SITE_ROOT = 'https://apps.fedoraproject.org'
SITE_URL = '%s/calendar' % SITE_ROOT
{% endif %}
## URLs to fedmenu resources
{% if env == 'staging' %}
FEDMENU_URL = 'https://apps.stg.fedoraproject.org/fedmenu'
FEDMENU_DATA_URL = 'https://apps.stg.fedoraproject.org/js/data.js'
{% else %}
FEDMENU_URL = 'https://apps.fedoraproject.org/fedmenu'
FEDMENU_DATA_URL = 'https://apps.fedoraproject.org/js/data.js'
APP_URL = 'https://calendar.fedoraproject.org/' + APPLICATION_ROOT
SITE_ROOT = 'https://calendar.fedoraproject.org'
SITE_URL = '%s/' % SITE_ROOT
{% endif %}