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/mastodon.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx

View File

@@ -1,10 +1,9 @@
---
- name: "include task certbot-matomo.yml"
include_tasks: certbot-matomo.yml
- name: configure {{domain}}.conf
template: src=templates/mastodon.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: "include create-domains.yml"
include_tasks: create-domains.yml
loop: "{{ domains }}"
loop_control:
loop_var: domain
- name: "create {{docker_compose_instance_directory}}"
file:
@@ -20,5 +19,4 @@
template:
src: .env.production.j2
dest: "{{docker_compose_instance_directory}}.env.production"
force: no
notify: recreate mastodon

View File

@@ -1,4 +1,5 @@
LOCAL_DOMAIN={{domain}}
ALTERNATE_DOMAINS="{{ domains_mastodon_alternates | join(',') }}"
SINGLE_USER_MODE={{mastodon_single_user_mode}}
SECRET_KEY_BASE={{mastodon_secret_key_base}}
OTP_SECRET={{mastodon_otp_secret}}

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 {

View File

@@ -1,6 +1,9 @@
---
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
loop: "{{ domains }}"
loop_control:
loop_var: domain
- name: "create {{docker_compose_instance_directory}}"
file: