implemented new default urls

This commit is contained in:
2023-12-12 01:44:37 +01:00
parent 46ccecf293
commit cac9e6e1c8
9 changed files with 93 additions and 40 deletions

View File

@@ -0,0 +1,6 @@
- name: "include task certbot-matomo.yml"
include_tasks: certbot-matomo.yml
- name: configure {{domain}}.conf
template: src=templates/peertube.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx

View File

@@ -1,7 +1,10 @@
---
- name: "include task certbot-matomo.yml"
include_tasks: certbot-matomo.yml
- name: "include create-domains.yml"
include_tasks: create-domains.yml
loop: "{{ domains }}"
loop_control:
loop_var: domain
- name: "create {{docker_compose_instance_directory}}"
file:
path: "{{docker_compose_instance_directory}}"

View File

@@ -1,8 +1,3 @@
upstream backend {
server 127.0.0.1:{{http_port}};
}
server {
server_name {{domain}};
@@ -71,7 +66,7 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://backend;
proxy_pass http://127.0.0.1:{{http_port}};
}
location /socket.io {