DyonR / docker-Jackettvpn

Docker container which runs a headless Jackett Server with an optional WireGuard or OpenVPN connection
https://hub.docker.com/r/dyonr/jackettvpn/
GNU General Public License v3.0
70 stars 31 forks source link

[Code Pattern] Possibility of not changing the mounted .ovpn file #40

Open blmhemu opened 3 years ago

blmhemu commented 3 years ago

Is it possible to achieve this without writing to .ovpn files which are mounted ? This is because, I am trying to mount an configMap (kubernetes) which does not allow writing to the file ? Also is it possible to save credentials in different folder that the one mounted for security reasons ?

DyonR commented 3 years ago

I guess this will be possible, but sadly I don't really have time to change this and test it.
I can probably add an environment variable TOUCH_OVPN_FILE which will 'exclude' this section of the code, since I believe this is the only section that writes to the file: https://github.com/DyonR/docker-Jackettvpn/blob/master/openvpn/start.sh#L91

I don't think there would be another (easier) way to achieve this, since I don't think a Docker can internally recognise if a path/volume is mounted.