summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-08-14 23:56:09 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-08-20 22:12:03 +0200
commit05a507a07b398f935187e8265974d0e82d0e77d2 (patch)
tree29dc92af6e1c790d3c7ed437bf146a2ac4c49056
parentetherpad-lite: move to generic nginx-vhost template (diff)
coturn: move to generic nginx-vhost template
-rw-r--r--inventory/host_vars/ele-coturn.yml1
-rw-r--r--inventory/host_vars/glt-coturn.yml1
-rw-r--r--inventory/host_vars/sk-cloudio/vars.yml1
-rw-r--r--roles/apps/coturn/tasks/main.yml5
-rw-r--r--roles/apps/coturn/templates/nginx-vhost.conf.j227
5 files changed, 7 insertions, 28 deletions
diff --git a/inventory/host_vars/ele-coturn.yml b/inventory/host_vars/ele-coturn.yml
index 28314433..ad865e1c 100644
--- a/inventory/host_vars/ele-coturn.yml
+++ b/inventory/host_vars/ele-coturn.yml
@@ -30,6 +30,7 @@ kubernetes_version: 1.27.3
kubernetes_cri_tools_pkg_version: 1.26.0-00
kubernetes_container_runtime: docker
kubernetes_standalone_max_pods: 100
+kubernetes_standalone_pod_cidr: 192.168.255.0/24
kubernetes_standalone_cni_variant: with-portmap
diff --git a/inventory/host_vars/glt-coturn.yml b/inventory/host_vars/glt-coturn.yml
index 7dbcca04..c0bcbb0f 100644
--- a/inventory/host_vars/glt-coturn.yml
+++ b/inventory/host_vars/glt-coturn.yml
@@ -21,6 +21,7 @@ kubernetes_version: 1.27.3
kubernetes_cri_tools_pkg_version: 1.26.0-00
kubernetes_container_runtime: docker
kubernetes_standalone_max_pods: 100
+kubernetes_standalone_pod_cidr: 192.168.255.0/24
kubernetes_standalone_cni_variant: with-portmap
diff --git a/inventory/host_vars/sk-cloudio/vars.yml b/inventory/host_vars/sk-cloudio/vars.yml
index 69f68e88..9165699e 100644
--- a/inventory/host_vars/sk-cloudio/vars.yml
+++ b/inventory/host_vars/sk-cloudio/vars.yml
@@ -74,6 +74,7 @@ kubernetes_version: 1.27.3
kubernetes_cri_tools_pkg_version: 1.26.0-00
kubernetes_container_runtime: docker
kubernetes_standalone_max_pods: 100
+kubernetes_standalone_pod_cidr: 192.168.255.0/24
kubernetes_standalone_cni_variant: with-portmap
kubernetes_standalone_local_services_tcp:
diff --git a/roles/apps/coturn/tasks/main.yml b/roles/apps/coturn/tasks/main.yml
index bab53d99..ed0c06ab 100644
--- a/roles/apps/coturn/tasks/main.yml
+++ b/roles/apps/coturn/tasks/main.yml
@@ -69,10 +69,13 @@
vars:
nginx_vhost:
name: "coturn-{{ coturn_realm }}"
- content: "{{ lookup('template', 'nginx-vhost.conf.j2') }}"
+ template: generic
tls:
certificate_provider: acmetool
hostnames: "{{ coturn_hostnames }}"
+ locations:
+ '/':
+ return: "404"
include_role:
name: nginx/vhost
diff --git a/roles/apps/coturn/templates/nginx-vhost.conf.j2 b/roles/apps/coturn/templates/nginx-vhost.conf.j2
deleted file mode 100644
index 577c33b4..00000000
--- a/roles/apps/coturn/templates/nginx-vhost.conf.j2
+++ /dev/null
@@ -1,27 +0,0 @@
-server {
- listen 80;
- listen [::]:80;
- server_name {{ coturn_hostnames | join(' ') }};
-
- include snippets/acmetool.conf;
-
- location / {
- return 301 https://$host$request_uri;
- }
-}
-
-server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name {{ coturn_hostnames | join(' ') }};
-
- include snippets/acmetool.conf;
- include snippets/tls.conf;
- ssl_certificate {{ x509_certificate_path_fullchain }};
- ssl_certificate_key {{ x509_certificate_path_key }};
- include snippets/hsts.conf;
-
- location / {
- return 404;
- }
-}