Are alias-domains possible for Mirotalk?
-
I have a Mirotalk instance that I use for my own stuff on
miro.example.com. Is it possible to add alias domains, so a customer could usetalk.customerdomain.comwith the same instance as mine? Thus saving resources and not having to install the app several times. I know this is possible with Nextcloud (not on Cloudron though I believe), would be nice to have that possibility, if technically feasible. -
I have a Mirotalk instance that I use for my own stuff on
miro.example.com. Is it possible to add alias domains, so a customer could usetalk.customerdomain.comwith the same instance as mine? Thus saving resources and not having to install the app several times. I know this is possible with Nextcloud (not on Cloudron though I believe), would be nice to have that possibility, if technically feasible.@msbt said in Are alias-domains possible for Mirotalk?:
I have a Mirotalk instance that I use for my own stuff on miro.example.com. Is it possible to add alias domains, so a customer could use talk.customerdomain.com with the same instance as mine?
You can embedding your MiroTalk instance into any website (talk.customerdomain.com) or app easily using an iframe:
<iframe allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay" src="https://miro.example.com/newroom" style="width: 100vw; height: 100vh; border: 0px;"> </iframe>You can check the MiroTalk SFU example here, or MiroTalk P2P example here.
This functionality would greatly streamline the management of multiple domains while maintaining a single instance.
-
@msbt said in Are alias-domains possible for Mirotalk?:
I have a Mirotalk instance that I use for my own stuff on miro.example.com. Is it possible to add alias domains, so a customer could use talk.customerdomain.com with the same instance as mine?
You can embedding your MiroTalk instance into any website (talk.customerdomain.com) or app easily using an iframe:
<iframe allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay" src="https://miro.example.com/newroom" style="width: 100vw; height: 100vh; border: 0px;"> </iframe>You can check the MiroTalk SFU example here, or MiroTalk P2P example here.
This functionality would greatly streamline the management of multiple domains while maintaining a single instance.
@MiroTalk thanks for your work and input, maybe I should have explained why: This specific example would be for 1:1 sessions for a customer of mine (therapist), where the join-links are supposed to be sent via email (that's why the separate domain, for credibility's sake).
-
MiroTalk with Alias Domains
I'm not tested but I think can be archived with something like this:
Use alias domains (e.g.,
talk.customerdomain.com) for your MiroTalk instance on the same server. Here's how:1. DNS Configuration
- A Record: Point
talk.customerdomain.comto your server's IPv4 address. - CNAME Record: Alternatively, alias
talk.customerdomain.comtomiro.example.com.
2. Web Server Configuration
Nginx Configuration:
server { listen 80; server_name miro.example.com talk.customerdomain.com; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }Apache Configuration:
<VirtualHost *:80> ServerName miro.example.com ServerAlias talk.customerdomain.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ </VirtualHost>3. SSL Configuration
Generate SSL certificates for both domains using Certbot:
sudo certbot --nginx -d miro.example.com -d talk.customerdomain.com # OR sudo certbot --apache -d miro.example.com -d talk.customerdomain.comEnsure your web server is configured to include SSL settings for both domains.
4. Cross-Origin Requests (CORS)
If necessary, adjust MiroTalk or web server settings to allow CORS for
talk.customerdomain.com.5. Testing
- Verify that
talk.customerdomain.comresolves to your server. - Access MiroTalk through both
miro.example.comandtalk.customerdomain.comto ensure everything works as expected.
- A Record: Point
-
MiroTalk with Alias Domains
I'm not tested but I think can be archived with something like this:
Use alias domains (e.g.,
talk.customerdomain.com) for your MiroTalk instance on the same server. Here's how:1. DNS Configuration
- A Record: Point
talk.customerdomain.comto your server's IPv4 address. - CNAME Record: Alternatively, alias
talk.customerdomain.comtomiro.example.com.
2. Web Server Configuration
Nginx Configuration:
server { listen 80; server_name miro.example.com talk.customerdomain.com; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }Apache Configuration:
<VirtualHost *:80> ServerName miro.example.com ServerAlias talk.customerdomain.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ </VirtualHost>3. SSL Configuration
Generate SSL certificates for both domains using Certbot:
sudo certbot --nginx -d miro.example.com -d talk.customerdomain.com # OR sudo certbot --apache -d miro.example.com -d talk.customerdomain.comEnsure your web server is configured to include SSL settings for both domains.
4. Cross-Origin Requests (CORS)
If necessary, adjust MiroTalk or web server settings to allow CORS for
talk.customerdomain.com.5. Testing
- Verify that
talk.customerdomain.comresolves to your server. - Access MiroTalk through both
miro.example.comandtalk.customerdomain.comto ensure everything works as expected.
- A Record: Point
-
MiroTalk with Alias Domains
I'm not tested but I think can be archived with something like this:
Use alias domains (e.g.,
talk.customerdomain.com) for your MiroTalk instance on the same server. Here's how:1. DNS Configuration
- A Record: Point
talk.customerdomain.comto your server's IPv4 address. - CNAME Record: Alternatively, alias
talk.customerdomain.comtomiro.example.com.
2. Web Server Configuration
Nginx Configuration:
server { listen 80; server_name miro.example.com talk.customerdomain.com; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }Apache Configuration:
<VirtualHost *:80> ServerName miro.example.com ServerAlias talk.customerdomain.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ </VirtualHost>3. SSL Configuration
Generate SSL certificates for both domains using Certbot:
sudo certbot --nginx -d miro.example.com -d talk.customerdomain.com # OR sudo certbot --apache -d miro.example.com -d talk.customerdomain.comEnsure your web server is configured to include SSL settings for both domains.
4. Cross-Origin Requests (CORS)
If necessary, adjust MiroTalk or web server settings to allow CORS for
talk.customerdomain.com.5. Testing
- Verify that
talk.customerdomain.comresolves to your server. - Access MiroTalk through both
miro.example.comandtalk.customerdomain.comto ensure everything works as expected.
- A Record: Point
-
M msbt marked this topic as a question on
-
M msbt has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
