mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 10:28:29 +01:00
Replace mydomain.com with example.com
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
parent
7779b747ea
commit
c02aba2724
@ -57,9 +57,9 @@ However, if your service does not run on a container or runs on another machine,
|
|||||||
|
|
||||||
## Reverse-proxying a remote HTTP/HTTPS service behind Traefik
|
## Reverse-proxying a remote HTTP/HTTPS service behind Traefik
|
||||||
|
|
||||||
If you want to host another webserver would be reachable via `my-fancy-website.mydomain.com` from the internet and via `https://<internal webserver IP address>:<internal port>` from inside your network, you can make the playbook's integrated Traefik instance reverse-proxy the traffic to the correct host.
|
If you want to host another webserver would be reachable via `my-fancy-website.example.com` from the internet and via `https://<internal webserver IP address>:<internal port>` from inside your network, you can make the playbook's integrated Traefik instance reverse-proxy the traffic to the correct host.
|
||||||
|
|
||||||
Prerequisites: DNS and routing for the domain `my-fancy-website.mydomain.com` need to be set up correctly. In this case, you'd be pointing the domain name to your Matrix server - `my-fancy-website.mydomain.com` would be a CNAME going to `matrix.example.com`.
|
Prerequisites: DNS and routing for the domain `my-fancy-website.example.com` need to be set up correctly. In this case, you'd be pointing the domain name to your Matrix server - `my-fancy-website.example.com` would be a CNAME going to `matrix.example.com`.
|
||||||
|
|
||||||
First, we have to adjust the static configuration of Traefik, so that we can add additional configuration files:
|
First, we have to adjust the static configuration of Traefik, so that we can add additional configuration files:
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ aux_file_definitions:
|
|||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
webserver-router:
|
webserver-router:
|
||||||
rule: Host(`my_fancy_website.mydomain.com`)
|
rule: Host(`my_fancy_website.example.com`)
|
||||||
service: webserver-service
|
service: webserver-service
|
||||||
tls:
|
tls:
|
||||||
certResolver: default
|
certResolver: default
|
||||||
@ -122,7 +122,7 @@ aux_file_definitions:
|
|||||||
tcp:
|
tcp:
|
||||||
routers:
|
routers:
|
||||||
webserver-router:
|
webserver-router:
|
||||||
rule: Host(`my_fancy_website.mydomain.com`)
|
rule: Host(`my_fancy_website.example.com`)
|
||||||
service: webserver-service
|
service: webserver-service
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
|
Loading…
Reference in New Issue
Block a user