forked from data.coop/ansible
Add vhost config for www.data.coop and move vhost-root copying task to data.coop.yml
This commit is contained in:
parent
cd03e98f10
commit
000216d74d
4
roles/docker/files/configs/vhost-www
Normal file
4
roles/docker/files/configs/vhost-www
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
server {
|
||||||
|
server_name www.data.coop;
|
||||||
|
return 301 $scheme://data.coop$request_uri;
|
||||||
|
}
|
|
@ -36,11 +36,6 @@
|
||||||
src: files/configs/riot/riot.im.conf
|
src: files/configs/riot/riot.im.conf
|
||||||
dest: "{{ services.riot.volume_folder }}/data/riot.im.conf"
|
dest: "{{ services.riot.volume_folder }}/data/riot.im.conf"
|
||||||
|
|
||||||
- name: upload vhost config for root domain
|
|
||||||
template:
|
|
||||||
src: files/configs/matrix/vhost-root
|
|
||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
|
||||||
|
|
||||||
- name: upload vhost config for matrix domain
|
- name: upload vhost config for matrix domain
|
||||||
template:
|
template:
|
||||||
src: files/configs/matrix/vhost-matrix
|
src: files/configs/matrix/vhost-matrix
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
---
|
---
|
||||||
|
- name: Upload vhost config for root domain
|
||||||
|
copy:
|
||||||
|
src: files/configs/vhost-root
|
||||||
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
||||||
|
|
||||||
|
- name: Upload vhost config for WWW domain
|
||||||
|
copy:
|
||||||
|
src: files/configs/vhost-www
|
||||||
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
|
||||||
|
|
||||||
- name: setup data.coop website docker container
|
- name: setup data.coop website docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in a new issue