Proxy users and roles in www.foo.sh to backend server

This commit is contained in:
Timo Makinen 2020-09-09 20:10:22 +00:00
parent 3b67903e4f
commit 0aa882f07a

View file

@ -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