Skip to content

Commit

Permalink
Merge pull request #1417 from mira-miracoli/mq-proxy
Browse files Browse the repository at this point in the history
Add Traefik configuration for new private IP RabbitMQ
  • Loading branch information
mira-miracoli authored Feb 26, 2025
2 parents 1d377f2 + 39162a8 commit 190141d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions files/traefik/rules/mq-router.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tcp:

Check warning on line 1 in files/traefik/rules/mq-router.yml

View workflow job for this annotation

GitHub Actions / Lint

1:1 [document-start] missing document start "---"
routers:
mq-rtr:
rule: "HostSNI(`*`)" # || ClientIP(`132.230.224.103`)" Allow by host IP
service: "mq"
entryPoints:
- amqps
tls:
passthrough: true
6 changes: 6 additions & 0 deletions files/traefik/rules/mq-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tcp:

Check warning on line 1 in files/traefik/rules/mq-service.yml

View workflow job for this annotation

GitHub Actions / Lint

1:1 [document-start] missing document start "---"
services:
mq:
loadBalancer:
servers:
- address: "10.5.68.232:5671" #replace once mq02 is in playbook
5 changes: 5 additions & 0 deletions group_vars/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ traefik_containers:
- --global.checkNewVersion=false
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
- --entryPoints.amqps.address=:5671
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.web.http.redirections.entryPoint.scheme=https
- --entryPoints.metrics.address=:8082
Expand Down Expand Up @@ -148,6 +149,10 @@ traefik_containers:
published_port: 443
protocol: tcp
mode: host
- target_port: 5671
published_port: 5671
protocol: tcp
mode: host
- target_port: 8082
published_port: 8082
protocol: tcp
Expand Down
13 changes: 13 additions & 0 deletions traefik-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
- policycoreutils-python-utils
- python3-pip

- name: Configure Firewall
ansible.posix.firewalld:
service: "{{ item }}"
permanent: true
zone: public
state: enabled
with_items:
- ssh
- amqps
- http
- https
- ntp

- name: Install python docker
become: true
ansible.builtin.pip:
Expand Down

0 comments on commit 190141d

Please sign in to comment.