kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.73k stars 2.39k forks source link

Generation server config while first quick start #703

Open Nazar84 opened 2 years ago

Nazar84 commented 2 years ago

It would be convenient if the docker container accepted the passphrase from the environment variable so that the server would generate the config on the first start without user intervention.

docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -e CERT_PASSWORD=asdkfjsdkfj -u udp://VPN.SERVERNAME.COM

photo_2022-05-23_11-32-47