Use service names instead of subdomains for vhost file names

This commit is contained in:
Sam A. 2023-07-09 21:08:42 +02:00
parent ef7c00b748
commit 7d13fc5302
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
10 changed files with 5 additions and 35 deletions

View file

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

View file

@ -2,7 +2,7 @@
---
- name: copy docker registry vhost configuration
copy:
src: vhost/docker
src: vhost/docker_registry
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.docker_registry.domain }}"
mode: "0644"

View file

@ -21,7 +21,7 @@
- name: Upload vhost config for root domain
copy:
src: vhost/social
src: vhost/mastodon
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
- name: Copy PostgreSQL config

View file

@ -2,7 +2,7 @@
---
- name: upload vhost config for cloud.data.coop
copy:
src: vhost/cloud
src: vhost/nextcloud
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
notify: "restart nginx"

View file

@ -2,12 +2,12 @@
---
- name: Upload vhost config for root domain
copy:
src: vhost/_root
src: vhost/base_domain
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
- name: Upload vhost config for WWW domain
copy:
src: vhost/www
src: vhost/www.base_domain
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
- name: setup data.coop website docker container