RocketChat snap Caddyfile does not persist across versions


#1

Hello,

I originally installed RocketChat using the snap back in July with the snap version 1307. I changed the /var/snap/rocketchat-server/current/Caddyfile from

http://:8080
proxy / localhost:3000 {
    websocket
    transparent
}

to

hostname
proxy / localhost:3000 {
    websocket
    transparent
}

per directions in https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/autossl/.

My problem is that this new Caddyfile does not persist across versions (at the time of this writing is 1317). I have to log into the server and copy the previous Caddyfile to the new current and restart the caddy service. Otherwise SSL breaks after an update and my server is inaccessible. Is there a way to make this file persist across versions without having to rely on cron since the file doesn’t need to change? This seems like something that belongs in the common folder.

Thank you.

  • wyntre