Move static files into files/ and Jinja2 templates into templates/ #169
|
@ -1,30 +0,0 @@
|
||||||
files/
|
|
||||||
├── byro/
|
|
||||||
│ └── deploy_entrypoint.sh
|
|
||||||
├── element/
|
|
||||||
│ └── riot.im.conf
|
|
||||||
├── mastodon/
|
|
||||||
│ └── postgresql.conf
|
|
||||||
├── matrix/
|
|
||||||
│ └── log.config
|
|
||||||
├── privatebin/
|
|
||||||
│ └── conf.php
|
|
||||||
├── sso/
|
|
||||||
│ └── sso.data.coop.pem
|
|
||||||
└── vhost/
|
|
||||||
├── _root
|
|
||||||
├── cloud
|
|
||||||
├── docker
|
|
||||||
├── element
|
|
||||||
├── matrix
|
|
||||||
├── social
|
|
||||||
└── www
|
|
||||||
templates/
|
|
||||||
├── byro.env.j2
|
|
||||||
├── element.config.json.j2
|
|
||||||
├── mailu.env.j2
|
|
||||||
├── mastodon.env.j2
|
|
||||||
├── matrix.homeserver.yaml.j2
|
|
||||||
├── rallly.env.j2
|
|
||||||
├── restic.ssh.config.j2
|
|
||||||
└── restic.ssh.known_hosts.j2
|
|
|
@ -2,7 +2,7 @@
|
||||||
---
|
---
|
||||||
- name: copy docker registry vhost configuration
|
- name: copy docker registry vhost configuration
|
||||||
copy:
|
copy:
|
||||||
src: vhost/docker
|
src: vhost/docker_registry
|
||||||
samsapti marked this conversation as resolved
Outdated
|
|||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.docker_registry.domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.docker_registry.domain }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
- name: Upload vhost config for root domain
|
- name: Upload vhost config for root domain
|
||||||
copy:
|
copy:
|
||||||
src: vhost/social
|
src: vhost/mastodon
|
||||||
valberg marked this conversation as resolved
Outdated
valberg
commented
can we call this file mastodon ? can we call this file mastodon ?
|
|||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
|
||||||
|
|
||||||
- name: Copy PostgreSQL config
|
- name: Copy PostgreSQL config
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
---
|
---
|
||||||
- name: upload vhost config for cloud.data.coop
|
- name: upload vhost config for cloud.data.coop
|
||||||
copy:
|
copy:
|
||||||
src: vhost/cloud
|
src: vhost/nextcloud
|
||||||
valberg marked this conversation as resolved
Outdated
valberg
commented
can we call this file nextcloud ? can we call this file nextcloud ?
|
|||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
|
||||||
notify: "restart nginx"
|
notify: "restart nginx"
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
---
|
---
|
||||||
- name: Upload vhost config for root domain
|
- name: Upload vhost config for root domain
|
||||||
copy:
|
copy:
|
||||||
src: vhost/_root
|
src: vhost/base_domain
|
||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
||||||
|
|
||||||
- name: Upload vhost config for WWW domain
|
- name: Upload vhost config for WWW domain
|
||||||
copy:
|
copy:
|
||||||
src: vhost/www
|
src: vhost/www.base_domain
|
||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
|
||||||
|
|
||||||
- name: setup data.coop website docker container
|
- name: setup data.coop website docker container
|
||||||
|
|
Loading…
Reference in a new issue
can we call this file docker_registry?
My (undocumented) naming convention here is actually the subdomain the service is hosted on, so the docker registry's domain is
docker.data.coop
and the vhost file isdocker
(without.data.coop
). But if you insist I can change it.can we have the full domain name as the name of the file then? the same with the other comments
Then I would rather use the service name instead, just for the sake of avoiding code duplication (not hardcoding the base domain). What do you think?
ah yes very good point! let's use the name of the service and not anything related to the domain name