[GH-ISSUE #1999] [Feature request] Allow easy access to change domain for TRMM #3196

Open
opened 2026-03-14 06:50:53 +03:00 by kerem · 6 comments
Owner

Originally created by @P6g9YHK6 on GitHub (Sep 12, 2024).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1999

Is your feature request related to a problem? Please describe.
It is currently impossible to change the domain of the main rmm server without a paid support service and for something that should be just an option in the UI it is not a good look.

Describe the solution you'd like
a single field to edit on the ui that would then either require either a manual or automated change of config for the agents.

Describe alternatives you've considered
Paid service.

Additional context
i understand that if it is not in place already it is because it is a pain to put in place due to all the moving parts but the feature request is pertinent.

Originally created by @P6g9YHK6 on GitHub (Sep 12, 2024). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1999 **Is your feature request related to a problem? Please describe.** It is currently impossible to change the domain of the main rmm server without a paid support service and for something that should be just an option in the UI it is not a good look. **Describe the solution you'd like** a single field to edit on the ui that would then either require either a manual or automated change of config for the agents. **Describe alternatives you've considered** Paid service. **Additional context** i understand that if it is not in place already it is because it is a pain to put in place due to all the moving parts but the feature request is pertinent.
Author
Owner

@conlan0 commented on GitHub (Sep 17, 2024):

if you're skilled enough/know where to look you can achieve this yourself. Though it would be nice to be able to do it easily it can already be scripted right now and there's def other features that are more important rn.

<!-- gh-comment-id:2356560243 --> @conlan0 commented on GitHub (Sep 17, 2024): if you're skilled enough/know where to look you can achieve this yourself. Though it would be nice to be able to do it easily it can already be scripted right now and there's def other features that are more important rn.
Author
Owner

@P6g9YHK6 commented on GitHub (Sep 18, 2024):

a simple todo list would help anyone make a script that could do the job also

<!-- gh-comment-id:2357714051 --> @P6g9YHK6 commented on GitHub (Sep 18, 2024): a simple todo list would help anyone make a script that could do the job also
Author
Owner

@WilDevSec commented on GitHub (Jan 31, 2025):

Pretty simple to do, change all occurrences of the domain in these locations:
/var/www/rmm/dist/env-config.js
/etc/nginx//sites-available/front-end.conf & rmm.conf & meshcentral.conf
/rmm/api/tacticalrmm/tacticalrmm/local_settings.py
Then restart services.

<!-- gh-comment-id:2627410340 --> @WilDevSec commented on GitHub (Jan 31, 2025): Pretty simple to do, change all occurrences of the domain in these locations: /var/www/rmm/dist/env-config.js /etc/nginx//sites-available/front-end.conf & rmm.conf & meshcentral.conf /rmm/api/tacticalrmm/tacticalrmm/local_settings.py Then restart services.
Author
Owner

@P6g9YHK6 commented on GitHub (Feb 5, 2025):

can someone confirm this ?

<!-- gh-comment-id:2635953417 --> @P6g9YHK6 commented on GitHub (Feb 5, 2025): can someone confirm this ?
Author
Owner

@WilDevSec commented on GitHub (Feb 6, 2025):

Sorry I missed one bit in order to get meshcentral working again:
You also need to go to /meshcentral/meshcentral-data/config.json and update to the new domains
Then go to /meshcentral/meshcentral-data/signedagents and delete all the files in there.
Then restart services.
You then have to generate new deployments and re-install all agents.
The dynamic installation binaries include the domain so not sure how else to get around this.
And reinstalling all agents makes this a pointless method, may as well just re-install from scratch with new domain.

<!-- gh-comment-id:2640481118 --> @WilDevSec commented on GitHub (Feb 6, 2025): Sorry I missed one bit in order to get meshcentral working again: You also need to go to /meshcentral/meshcentral-data/config.json and update to the new domains Then go to /meshcentral/meshcentral-data/signedagents and delete all the files in there. Then restart services. You then have to generate new deployments and re-install all agents. The dynamic installation binaries include the domain so not sure how else to get around this. And reinstalling all agents makes this a pointless method, may as well just re-install from scratch with new domain.
Author
Owner

@damiankw commented on GitHub (Mar 5, 2025):

Just for the record, I just installed TacticalRMM using subdomains (rmm.mydomain, api.rmm.mydomain, mesh.rmm.mydomain) not knowing this wouldn't work due to the SSL Wildcard, so I had to run through @WilDevSec 's notes to get it all working, and it all seems to work fine afterward.

A complete summary though, because their notes were SLIGHTLY wrong, you need to update all references to your domains in:

  • /var/www/rmm/dist/env-config.js
  • /etc/nginx/sites-available/frontend.conf
  • /etc/nginx/sites-available/rmm.conf
  • /etc/nginx/sites-available/meshcentral.conf
  • /rmm/api/tacticalrmm/tacticalrmm/local_settings.py
  • /meshcentral/meshcentral-data/config.json

And then delete all contents of: /meshcentral/meshcentral-data/signedagents

I'm not sure if it's entirely pointless to do on an existing install though, you might be able to simply overwrite the MeshAgent.msh file and your TacticalRMM executable on client machines for it to point your new instance, without deleting them from the */signedagents folder?

<!-- gh-comment-id:2700073159 --> @damiankw commented on GitHub (Mar 5, 2025): Just for the record, I just installed TacticalRMM using subdomains (rmm.mydomain, api.rmm.mydomain, mesh.rmm.mydomain) not knowing this wouldn't work due to the SSL Wildcard, so I had to run through @WilDevSec 's notes to get it all working, and it all seems to work fine afterward. A complete summary though, because their notes were SLIGHTLY wrong, you need to update all references to your domains in: - /var/www/rmm/dist/env-config.js - /etc/nginx/sites-available/frontend.conf - /etc/nginx/sites-available/rmm.conf - /etc/nginx/sites-available/meshcentral.conf - /rmm/api/tacticalrmm/tacticalrmm/local_settings.py - /meshcentral/meshcentral-data/config.json And then delete all contents of: /meshcentral/meshcentral-data/signedagents I'm not sure if it's entirely pointless to do on an existing install though, you might be able to simply overwrite the MeshAgent.msh file and your TacticalRMM executable on client machines for it to point your new instance, without deleting them from the */signedagents folder?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#3196
No description provided.