Implemented draft for top domain as matrix identifier name

This commit is contained in:
2024-01-19 11:52:08 +01:00
parent 849ed61d38
commit 0aebca62f6
9 changed files with 48 additions and 22 deletions

View File

@@ -1,13 +1,4 @@
---
- name: "include task certbot-matomo.yml"
include_tasks: certbot-matomo.yml
- name: configure {{domain}}.conf
template:
src: "homepage.nginx.conf.j2"
dest: "{{nginx_servers_directory}}{{domain}}.conf"
notify: restart nginx
- name: "pull homepage from {{nginx_homepage_repository_address}}"
git:
repo: "{{nginx_homepage_repository_address}}"

View File

@@ -1,19 +0,0 @@
#default
server
{
server_name {{domain}};
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
{% if nginx_matomo_tracking | bool %}
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
{% endif %}
charset utf-8;
location /
{
root {{nginx_homepage_root}};
index index.html index.htm;
}
}

View File

@@ -1 +0,0 @@
nginx_homepage_root: /usr/share/nginx/homepage