fas / totpcgi: move templates into configmap and same dir.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
8427e824c5
commit
41ae017220
3 changed files with 7 additions and 6 deletions
|
@ -31,11 +31,6 @@ spec:
|
|||
|
||||
RUN chmod -R o+rx /var/www/totpcgi*
|
||||
|
||||
RUN mkdir -p /etc/totpcgi/templates
|
||||
RUN curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/totpcgi/files/html/error.html -o /etc/totpcgi/templates/error.html
|
||||
RUN curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/totpcgi/files/html/login.html -o /etc/totpcgi/templates/login.html
|
||||
RUN curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/totpcgi/files/html/totp.html -o /etc/totpcgi/templates/totp.html
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT bash /etc/totpcgi/start.sh
|
||||
type: Dockerfile
|
||||
|
|
|
@ -127,3 +127,9 @@ data:
|
|||
Options ExecCGI
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
error.html: |-
|
||||
{{ lookup('file', '{{ roles_path }}/totpcgi/files/html/error.html') | indent() }}
|
||||
login.html: |-
|
||||
{{ lookup('file', '{{ roles_path }}/totpcgi/files/html/login.html') | indent() }}
|
||||
totp.html: |-
|
||||
{{ lookup('file', '{{ roles_path }}/totpcgi/files/html/totp.html') | indent() }}
|
||||
|
|
|
@ -40,7 +40,7 @@ css_root = /totpcgiprovision/
|
|||
|
||||
# Used by provisioning.cgi
|
||||
# Where to find the templates files.
|
||||
templates_dir = /etc/totpcgi/templates
|
||||
templates_dir = /etc/totpcgi
|
||||
|
||||
# Used by provisioning.cgi
|
||||
# Whether to rely on HTTP auth to handle authentication.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue