-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 921 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# parent image is based on httpd:2.4.39 (see "httpd/build.sh" for details)
FROM custom/httpd:2.4.39-openidc
# provide at least first 3 values (from your OIDC provider) in an ".env" file
#ENV OIDCProvider
ENV OIDCClientID _
ENV OIDCClientSecret _
#ENV OIDCCryptoPassphrase
ENV emailPattern ^[^@]+@.+$
ENV ServerAdmin admin@your-domain.com
COPY reverse-proxy.conf conf/extra/httpd-vhosts.conf
# enable virtual host and all the modules that it needs
RUN sed -i \
-e 's/^#\(Include .*httpd-vhosts.conf\)/\1/' \
-e 's/^#\(LoadModule .*mod_proxy_http.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_proxy.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_xml2enc.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_substitute.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_deflate.so\)/\1/' \
-e 's/^#\(LoadModule .*mod_auth_openidc.so\)/\1/' \
conf/httpd.conf;