Replace ingress proxy with nginx

This enables HTTPS redirecting at it too much more easily, and matches the gateway configuration.

Requires using upstream versions of nginx to enable https://nginx.org/en/docs/stream/ngx_stream_realip_module.html
This commit is contained in:
Jake Howard
2021-08-24 14:21:51 +01:00
parent f14e723d40
commit 453a374801
7 changed files with 83 additions and 61 deletions

View File

@ -0,0 +1,19 @@
- name: Install nginx
package:
name: nginx
become: true
- name: Nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/nginx.conf
validate: nginx -t -c %s
mode: "0644"
become: true
notify: restart nginx
- name: Enable nginx
service:
name: nginx
enabled: true
become: true