I have a subdomain.domain.tdl on my server “mesh.DOMAIN.TDL” with which I want to address the instance on the server.
The problem is that in the default setting, the MeshCentral instance wants to connect to ports 443 and 80, which does not work because it is already occupied and prevented by Server / Virtualmin||Webmin.
So I try to set the port to 4040 as an example, which also works when the instance is created by Docker, and the instance starts. I set the ports in docker-compose.yaml:
4041:443
4040:80
In the 443-host file of mesh.domian.tdl, I tried various settings that I “googled” together.
None of them resulted in the web call from “mesh.domain.tdl” being passed through to the instance and the MeshCentral admin page being displayed.
My question, has anyone tried installing MeshCentral in a Docker instance and calling it from a webmin/virtuelmin with a virtual domain via a web page?
Maybe someone has an example of the “docker-compose.yaml” and the Apache website settings… or a good idea for me to follow.
The Apache modules are set up and activated for MeshCentral among others.
Another step further, now the MeshCentral server reports, but I do not get the login page displayed correctly. Only a page with a logo is displayed, even the subsequent appendix to the url " */login" does not help. So I continue to research and test.
For interested and further researchers:
Setup:
root server with several virtual domains installed and configured with virtualmin / webmin
a subdomain á la mesh.domain.tld
Apache domain.conf: (433 section) with two different examples:
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyPass / https://127.0.0.1:xxxxx/
ProxyPassReverse / https://127.0.0.1:xxxxx/
or
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
ProxyAddHeaders Off
ProxyPassMatch (.*)(\/websocket)$ "ws://127.0.0.1:yyyyy/$1$2"
ProxyPass / "https://127.0.0.1:yyyyyy/"
ProxyPassReverse / "https://127.0.0.1:yyyyyy/"
To do this, use docker composer to create a meshcentral installation via the docker script [docker-compose.yaml]:
Login page is displayed, was just a cache problem of my FF browser.
Now I was able to create an admin account and log in, but still…
… the next problem is that the web socket cannot be connected.
Maybe someone has a solution or ideas based on my information?
Let’s see tomorrow what the log shows.
I am already a big step further. The replacement of AnyDesc and Teamviewer is getting closer.
Thus, I have a medium-term goal to create MeshCentral app for Virtualmin. The goal being that a Virtualmin user should install and manage MeshCentral. Something like what we are doing for Syncthing: https://gitlab.com/wikisuite/virtualmin-syncthing
A long term goal is that users can launch a virtual desktop with specific software to edit a file in Virtualmin. So instead of emailing files, or sync, all users converge to a shared desktop to edit the file.
So @Kiekomick please do keep us informed of your progress.