Self-Hosted: Updating your Hudu Version

To update your Hudu instance on self-hosted:

Before updating, always make sure you have a current backup. Plan for about 5-10 minutes of downtime. You can update your Hudu instance to a new version by running:

Run:

cd ~/hudu2 && sudo docker compose down && sudo docker compose pull && sudo docker compose up -d

 

* Note that if you are using an older version of docker, it will be:

cd ~/hudu2 && sudo docker-compose down && sudo docker-compose pull && sudo docker-compose up -d

 

    If you are updating your self-hosted instance to version 2.35.0 or later, you will need to make sure to add the following location/cable block under the last deny block in the default.conf file. Please see our self-hosted guides as a reference for the expected format of the newly added block. 

 

Navigate to /var/www/hudu2/config/nginx/site-confs/ to edit the default.conf file and add this block under the last deny block:

location /cable {        
      proxy_pass http://app:3000/cable;      
	  proxy_http_version 1.1;       
	  proxy_set_header Upgrade $http_upgrade;        
	  proxy_set_header Connection "upgrade";        
	  proxy_set_header Host $host;        
	  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         
	  proxy_read_timeout 240s;       
	  proxy_send_timeout 240s;         
	  proxy_set_header X-Forwarded-Proto $scheme;        
	  proxy_set_header X-Real-IP $remote_addr;        
	  proxy_pass_request_headers on;        
	  proxy_buffering off;        
	  proxy_redirect off;        
	  break;    
  }


Below is an example of how the default.conf file should be structured:


default_loc_cab.png

Was this article helpful?
2 out of 4 found this helpful