hello there,
newbie question here. i recently i using traefik but not deployed in docker, im installing using binary and systemd. so i have goals that i want to expose my service ( maybe redis, rabbitmq, kafka ) using domain,
for example:
instead using 10.10.10.0:5672, i want to using just simple amqp.example.com. even i dont want to using port after domain, like amqp.example.com:5672
here's my traefik.yaml
entryPoints:
web:
address: ":80"
tcpep:
address: ":5672"
providers:
file:
directory: /etc/traefik/dynamic-conf/
watch: true
api:
dashboard: true
insecure: true
log:
level: DEBUG
here's my dynamic config yaml
http:
routers:
to-rabbitmq-dashboard:
entryPoints:
- "web"
rule: "Host(`dashboard-rabbitmq.example.com)"
service: rabbitmq-dashboard
# middlewares:
# Define an authentication mechanism
# user-login:
# basicAuth:
# users:
# - admin:$2y$10$uXwCZppQYc9g2f9T5Zg8gOk5x6EWyAyvtX5ukq3KKUfzfbwXWIV/K
services:
rabbitmq-dashboard:
loadBalancer:
servers:
- url: http://192.168.2.25:15672
tcp:
routers:
to-rabbitmq-amqp:
entryPoints:
- "tcpep"
rule: "HostSNI(`amqp-rabbitmq.example.com`)"
service: rabbitmq-amqp
services:
rabbitmq-amqp:
loadBalancer:
servers:
- address: 192.168.2.25:5672
i already tried using tls and not working. but i dont want to using tls for now
can someone help me to achieve this