From 0aa882f07ae69ee0c5e5f26a0b08ab2e52452ca5 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 9 Sep 2020 20:10:22 +0000 Subject: [PATCH] Proxy users and roles in www.foo.sh to backend server --- playbooks/proxy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/playbooks/proxy.yml b/playbooks/proxy.yml index f874f5c..05f34b2 100644 --- a/playbooks/proxy.yml +++ b/playbooks/proxy.yml @@ -64,7 +64,7 @@ mode: 0755 owner: root group: "{{ ansible_wheel }}" - - name: install redirects config + - name: install redirects config for www.foo.sh copy: dest: /etc/nginx/conf.d/www.foo.sh/redirects.conf content: | @@ -73,3 +73,13 @@ owner: root group: "{{ ansible_wheel }}" notify: restart nginx + - name: install proxy config for www.foo.sh + copy: + dest: /etc/nginx/conf.d/www.foo.sh/proxy.conf + content: | + location /roles/ { proxy_pass https://static02.home.foo.sh/; } + location /~ { proxy_pass https://static02.home.foo.sh/~; } + mode: 0644 + owner: root + group: "{{ ansible_wheel }}" + notify: restart nginx