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
:
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.