From 4775ba346d436ac583858f4ce2823f256dfbf069 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 30 Mar 2019 23:37:14 -0400 Subject: [PATCH] Add zuul-web nginx configuration This should allow the zuul dashboard to work. Change-Id: I53c7ccb861630cfbca19d53193e5a7266b179635 Depends-On: https://review.openstack.org/648849 Signed-off-by: Paul Belanger --- ansible/group_vars/zuul-web.yaml | 4 ++++ zuul/etc/nginx/conf.d/zuul-web.conf.j2 | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 zuul/etc/nginx/conf.d/zuul-web.conf.j2 diff --git a/ansible/group_vars/zuul-web.yaml b/ansible/group_vars/zuul-web.yaml index 4125d69..538b966 100644 --- a/ansible/group_vars/zuul-web.yaml +++ b/ansible/group_vars/zuul-web.yaml @@ -33,3 +33,7 @@ logrotate_configs: - rotate 7 - daily - notifempty + +nginx_file_nginx_config: + - dest: /etc/nginx/conf.d/zuul-web.conf + src: "{{ windmill_config_git_dest }}/zuul/etc/nginx/conf.d/zuul-web.conf.j2" diff --git a/zuul/etc/nginx/conf.d/zuul-web.conf.j2 b/zuul/etc/nginx/conf.d/zuul-web.conf.j2 new file mode 100644 index 0000000..acdbe48 --- /dev/null +++ b/zuul/etc/nginx/conf.d/zuul-web.conf.j2 @@ -0,0 +1,13 @@ +server { + listen 80; + listen [::]:80; + + server_name _; + + location /zuul/ { + proxy_pass http://{{ hostvars['zw01'].ansible_host }}:9000/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +}