feat: add http-assets
All checks were successful
ZeroDownTime/zdt-openvpn/pipeline/head This commit looks good
ZeroDownTime/zdt-openvpn/pipeline/tag This commit looks good

This commit is contained in:
Stefan Reimer 2025-01-23 15:28:11 +00:00
parent a50042ad0f
commit 89fce64179
3 changed files with 12 additions and 2 deletions

View File

@ -36,10 +36,14 @@ EXPOSE 1194/udp
ADD ./bin /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 ./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
# would require podman as plain docker doesnt support keep-id

6
bin/openvpn-auth-oauth2.sh Executable file
View 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