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