docker-Jackettvpn icon indicating copy to clipboard operation
docker-Jackettvpn copied to clipboard

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

Open blmhemu opened this issue 5 years ago • 1 comments

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 ?

blmhemu avatar Dec 19 '20 09:12 blmhemu

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.

DyonR avatar Dec 19 '20 18:12 DyonR