Update Koschei httpd.conf

This commit is contained in:
Mikolaj Izdebski 2019-01-27 21:56:13 +01:00
parent dfba231f89
commit fb0ebb1087
3 changed files with 20 additions and 22 deletions

View file

@ -5,5 +5,5 @@ metadata:
stringData:
config-frontend.cfg: |
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/config-frontend.cfg.j2') | indent }}
httpd.conf: |
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/httpd.conf.j2') | indent }}
httpd-virthost.conf: |
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/httpd-virthost.conf.j2') | indent }}

View file

@ -0,0 +1,18 @@
RewriteEngine on
RewriteRule ^/documentation/?$ https://fedoraproject.org/wiki/Koschei [R=301,L]
OIDCRedirectURI "{{ koschei_topurl }}/login/redirect_uri"
OIDCProviderMetadataURL "https://{{ koschei_oidc_provider }}/openidc/wellknown_openid_configuration"
OIDCClientID "koschei"
OIDCClientSecret "{{ koschei_oidc_client_secret }}"
OIDCCryptoPassphrase "{{ koschei_oidc_crypto_secret }}"
OIDCSSLValidateServer On
OIDCResponseType "code"
OIDCSessionType client-cookie
OIDCScope "openid profile"
<Location /login>
AuthType openid-connect
Require valid-user
</Location>

View file

@ -1,20 +0,0 @@
<VirtualHost *>
RewriteEngine on
RewriteRule ^/documentation/?$ https://fedoraproject.org/wiki/Koschei [R=301,L]
OIDCRedirectURI "{{ koschei_topurl }}/login/redirect_uri"
OIDCProviderMetadataURL "https://{{ koschei_oidc_provider }}/openidc/wellknown_openid_configuration"
OIDCClientID "koschei"
OIDCClientSecret "{{ koschei_oidc_client_secret }}"
OIDCCryptoPassphrase "{{ koschei_oidc_crypto_secret }}"
OIDCSSLValidateServer On
OIDCResponseType "code"
OIDCSessionType client-cookie
OIDCScope "openid profile"
<Location /login>
AuthType openid-connect
Require valid-user
</Location>
</VirtualHost>