Skip to content

Instantly share code, notes, and snippets.

@WisdomSky
Last active January 19, 2024 19:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WisdomSky/ed24de6f764b353ee4a65e7bf7b28034 to your computer and use it in GitHub Desktop.
Save WisdomSky/ed24de6f764b353ee4a65e7bf7b28034 to your computer and use it in GitHub Desktop.
How to change CasaOS UI port via SSH or CLI

The basic CasaOS UI config is located in /etc/casaos/gateway.ini which includes the port where the Web UI is running.

To change the port where CasaOS UI is running via CLI, you have to edit the gateway.ini file:

sudo vi /etc/casaos/gateway.ini

For example, I changed the port into 90:

image

To save the changes, press ESC key and then type :wq then press enter.

After saving the changes to the file, you then need to restart the casaos-gateway service in order for the changes to take effect:

 sudo service casaos-gateway restart

and done!

CasaOS UI should now be accessible via the new port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment