Just writing this for two reasons, one would be to help out after I spent many hours figuring this out since there wasn't any documentation on the Non Docker version of Portainer, and maybe get Terramaster development team to add a few things in one file to make it easier for others in the future.
This began because I have a Java applet that uses port 9443 and no easy way to change it. Portainer also uses that port for the https service. After a lot of searching, I found nothing online on how to do this. So I started looking at the startup service for Portainer in TOS 5.1.
If you look at the startup variable listed in the service (/Volume1/@apps/Portainer/init.d/service):
path=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
ThisPath=$(dirname "$path")
program="$ThisPath/portainer/portainer"
program_name=$(basename "$program")
tunnel_port=18000
program_port=19000
#program_data=$(ter_share_add -name "Portainer")
program_log=/var/log/portainer.log
proxy_file=/etc/nginx/conf.d/portainer.conf
default="$ThisPath/config/portainer.default"
There is a tunnel_port and a program_port listed, and it is easy to just change these port numbers if needed....
By simply running the executable with the help flag, I found the ports I needed:
--bind-https=:"9443" Address and port to serve Portainer via https
So by adding these to the Variable list above:
tunnel_port=18000
program_port=19000
https_port=9443
and updating the start command again in the service file:
$program --bind=":$program_port" --bind-https=:"$https_port" --tunnel-port="$tunnel_port" -d "$ThisPath" --admin-password-file="$default" > $program_log 2>&1 &
Just change the port in the variable, and restart the service and Voila....
Hope this helps someone in the future....
Steve
Changing Portainer UI ports number
Discussion about Docker
Jump to
- TerraMaster News
- ↳ News & Announcements
- ↳ News and Announcements
- ↳ Update Notice
- ↳ Community Events
- ↳ New and Key Features in TOS 6
- TOS/TNAS
- ↳ FAQ & User Guides
- ↳ Initialization & Installation
- ↳ System Configuration
- ↳ File Service
- ↳ Networking
- ↳ Storage
- ↳ Backup & Restore
- ↳ Hardware
- ↳ Applications
- ↳ TOS Issues Report
- ↳ Initialization
- ↳ System Update
- ↳ System Configuration
- ↳ Privileges
- ↳ File Services
- ↳ Network
- ↳ Storage
- ↳ System Resources
- ↳ Compatibility
- ↳ Hardware, Power and Accessories
- ↳ Security
- ↳ Mobile Apps and Desktop Clients
- ↳ Data Backup
- ↳ How to back up? Which one is right for me?
- ↳ TerraSync
- ↳ Centralized Backup
- ↳ Duple Backup
- ↳ CloudSync
- ↳ Snapshot
- ↳ TFSS
- ↳ USB Copy
- ↳ TFM Backup
- ↳ Rsync
- ↳ Time Machine
- ↳ Multimedia
- ↳ DLNA/Multimedia Services
- ↳ Multimedia Server
- ↳ Photos
- ↳ Plex Media Server
- ↳ Emby Media Server
- ↳ Jellyfin Media Server
- ↳ Virtualization
- ↳ Docker
- ↳ Virtual Machines
- ↳ Applications
- ↳ iSCSI Target
- ↳ Surveillance Manager
- ↳ VPN Server
- ↳ Download
- ↳ Web Server/PHP/MySQL/MariaDB
- ↳ Terra Search
- ↳ API-in-a-Box (Powered by GenAI Logic™)
- ↳ Others
- ↳ Feature Requests & Enhancement Proposals
- ↳ New Requests & Proposals
- ↳ Accepted
- ↳ Scheduled
- ↳ Released
- ↳ Discussion & Sharing
- ↳ Developer Discussion Room
- ↳ Community-Created Guides
- ↳ Lounge and Boast
- TDAS (TerraMaster DAS)
- ↳ FAQ & User Guides
- ↳ Thunderbolt Series
- ↳ USB Series
- ↳ Issues Report
- ↳ Thunderbolt Series
- ↳ USB Series
