feat: add http-assets
This commit is contained in:
parent
a50042ad0f
commit
89fce64179
@ -36,10 +36,14 @@ EXPOSE 1194/udp
|
|||||||
|
|
||||||
ADD ./bin /usr/local/bin
|
ADD ./bin /usr/local/bin
|
||||||
RUN chmod a+x /usr/local/bin/* && \
|
RUN chmod a+x /usr/local/bin/* && \
|
||||||
mkdir -p /etc/openvpn-oauth
|
mkdir -p /etc/openvpn-oauth \
|
||||||
|
/opt/http-assets
|
||||||
|
|
||||||
# Add support for OTP authentication using a PAM module
|
# Add support for OTP authentication using a PAM module
|
||||||
ADD ./otp/openvpn /etc/pam.d/
|
ADD ./pam.d/openvpn /etc/pam.d/
|
||||||
|
|
||||||
|
# Add http branding assets
|
||||||
|
ADD ./http-assets /opt/http-assets
|
||||||
|
|
||||||
# Breaks all easyrsa commands locally due to UID mappings
|
# Breaks all easyrsa commands locally due to UID mappings
|
||||||
# would require podman as plain docker doesnt support keep-id
|
# would require podman as plain docker doesnt support keep-id
|
||||||
|
6
bin/openvpn-auth-oauth2.sh
Executable file
6
bin/openvpn-auth-oauth2.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# copy http-assets
|
||||||
|
cp /opt/http-assets/* /etc/openvpn-oauth/http-assets
|
||||||
|
|
||||||
|
openvpn-auth-oauth2 --config /etc/openvpn-oauth/config.yaml
|
Loading…
x
Reference in New Issue
Block a user