Proxy users and roles in www.foo.sh to backend server
This commit is contained in:
parent
3b67903e4f
commit
0aa882f07a
1 changed files with 11 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
- name: install redirects config
|
- name: install redirects config for www.foo.sh
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/nginx/conf.d/www.foo.sh/redirects.conf
|
dest: /etc/nginx/conf.d/www.foo.sh/redirects.conf
|
||||||
content: |
|
content: |
|
||||||
|
@ -73,3 +73,13 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
notify: restart nginx
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue