• rambos@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I was also struggling a bit with that, but didnt need a script or chron job. Maybe Im missing something, but I used this

    • subtext@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      That integration with Proton VPN is what I’m using as well. However, to automate the updates of my service’s port to match the currently forwarded port is what I wanted a script and cron job for. In this manner, the service will always have the latest forwarded port even after docker service restarts, machine reboots, etc. (since Proton uses a dynamic port allocation that changes quite quickly when disconnected).