Fix use of env_prefix

This commit is contained in:
Mikolaj Izdebski 2016-05-13 15:49:06 +00:00
parent 9949c28743
commit d6a08eede3
2 changed files with 3 additions and 3 deletions

View file

@ -2,6 +2,7 @@
# configuration in /usr/share/koschei/config.cfg. It is a python file expecting
# assignment to config dictionary which will be recursively merged with the
# default one.
{% set env_prefix = ".stg" if env == "staging" else "" %}
config = {
"database_config": {
"host": "{{ koschei_pgsql_hostname }}",
@ -80,7 +81,6 @@ config = {
},
{% if False %} # this is for > 1.6.1
"links": [
{% set env_prefix = ".stg" if env == "staging" else "" %}
{"name": "Packages",
"url": "https://apps{{ env_prefix }}.fedoraproject.org/packages/{package.name}"},
{"name": "PkgDB",

View file

@ -21,8 +21,8 @@
Require valid-user
AuthType OpenID
AuthOpenIDSingleIdP https://{{ koschei_openid_provider }}/
AuthOpenIDServerName https://apps{{ env_prefix }}.fedoraproject.org
AuthOpenIDTrustRoot https://apps{{ env_prefix }}.fedoraproject.org/koschei/
AuthOpenIDServerName https://apps.stg.fedoraproject.org
AuthOpenIDTrustRoot https://apps.stg.fedoraproject.org/koschei/
AuthOpenIDSecureCookie on
</Location>
{% endif %}