Files
system-config/playbooks/zuul/templates/group_vars/gitea-lb.yaml.j2
Ian Wienand 28166a9755 gitea: fix loadbalancer forwarding in testing
We have moved to a situation where we proxy requests to gitea (3000)
via Apache listening on 3081 -- this is useful for layer 7 filtering
like matching on user-agents.

It seems like we missed some of this configuration in our
load-balancer testing.  Update the https forward on the load-balancer
to port 3081 on the gitea test host.

Also, remove the explicit port opening in the testing group_vars; for
some reason this was not opening port 3080 (http).  This will just use
the production settings when we don't override it.

Change-Id: Ic5690ed893b909a7e6b4074a1e5cd71ab0683ab4
2022-07-06 09:28:47 +10:00

16 lines
550 B
Django/Jinja

gitea_lb_listeners:
- name: balance_git_http
bind:
- ":::80"
servers:
- name: "gitea99.opendev.org"
address: "{{ (hostvars['gitea99.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3080"
check_method: "check"
- name: balance_git_https
bind:
- ":::443"
servers:
- name: "gitea99.opendev.org"
address: "{{ (hostvars['gitea99.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:3081"
check_method: "check check-ssl verify none"