[HELP] How to Update Zoraxy instance
What happened? I have Zoraxy installed as stated in your tutorial (no docker setup) and can´t find a way / documentation to upgrade.
I tried the install steps, s i pulled the image again in the zoraxy-folder with
cd /opt/zoraxy/
git pull
but it didn´t find any updates.
when I went into the src folder and did the go-commands, it didnt bring up any newer version:
cd ./src/
go mod tidy
go build
I have Zoraxy running in an ubuntu24 lcx Container on my Proxmox.
Thanks for all your help in advance for this dump question!
Hey @mighty-services ,
Thanks for using Zoraxy without docker!
To update barbone zoraxy, backup your current zoraxy folder (including the binary and conf/ folder) and simply download the new zoraxy binary and replace the old one.
You might also need to restart zoraxy via systemd (sudo systemctl restart zoraxy) and that is all it takes. Simple right?
thanks @tobychui for your help. I in installed zoraxy into /opt/zoraxy, so to copy the conf folder i used
mkdir -p /data/zoraxy/backup
cp -r /opt/zoraxy/src/conf /data/zoraxy/backup/conf/
but i can't find the binary folder in your setup. Can you please describe the path for it?
Thanks :)
I think that it's a huge problem, that zoraxy creates all its setup, logs, temp files and so on in the CWD (current working directory) So if you start zoraxy from /tmp you will get all folders and files under /tmp/... . If you start the next time from /home/username/ the files are there. So I recommend to use a systemd service. I tested my zoraxy.service with DietPi and Arch-Linux. When using this solution, your files are everytime on the same location. Then you will only have to change the zoraxy binary wherever you have put it (/usr/bin/zoraxy in my version of zoraxy.service)
btw I'm using zoraxy in a DietPi bookwork LXC on Proxmox. Similar to your setup.
[Unit]
Description=Zoraxy Reverse Proxy Server
# start not befor network is online
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# start zoraxy as root
User=root
Group=root
# folder where zoraxy config & runtime data are located
WorkingDirectory=/opt/zoraxy
# use absolute path for zoraxy always
# options:
# -fastgeoip=true faster GeoIP-lookup, but more RAM ...
# faster GeoIP-lookup, but uses more RAM ...
# -log /var/log/zoraxy log to file / dont create local log folder
# -port=:8008 use port instead of defalut (8000)
ExecStart=/usr/bin/zoraxy -log /var/log/zoraxy -port=:8000 2>&1 | logger &
ExecStop=/usr/bin/kill "$MAINPID"
[Install]
WantedBy=multi-user.target