From 18c30b72c1d5a5e1fde3cf652c8df933aacb2f9e Mon Sep 17 00:00:00 2001 From: Mathieu Gauthier-Pilote Date: Wed, 19 Jun 2024 13:46:07 -0400 Subject: [PATCH] Add external file to put blocked room names (if needed in the future) --- webapps/jitsimeet/tasks/main.yml | 1 + webapps/jitsimeet/templates/nginx/blocked_room_names.j2 | 5 +++++ webapps/jitsimeet/templates/nginx/vhost.conf.j2 | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 webapps/jitsimeet/templates/nginx/blocked_room_names.j2 diff --git a/webapps/jitsimeet/tasks/main.yml b/webapps/jitsimeet/tasks/main.yml index ca29ed2c..e5bd9ff1 100644 --- a/webapps/jitsimeet/tasks/main.yml +++ b/webapps/jitsimeet/tasks/main.yml @@ -152,6 +152,7 @@ loop: - { src: 'nginx/vhost.conf.j2', dest: "/etc/nginx/sites-available/{{ jitsimeet_domains |first }}.conf" } - { src: 'nginx/multiplex.conf.j2', dest: '/etc/nginx/modules-available/multiplex.conf' } + - { src: 'nginx/blocked_room_names.j2', dest: '/etc/nginx/snippets/blocked_room_names' } notify: reload nginx - name: Enable multiplex module conf diff --git a/webapps/jitsimeet/templates/nginx/blocked_room_names.j2 b/webapps/jitsimeet/templates/nginx/blocked_room_names.j2 new file mode 100644 index 00000000..02b331a8 --- /dev/null +++ b/webapps/jitsimeet/templates/nginx/blocked_room_names.j2 @@ -0,0 +1,5 @@ +## Par exemple pour bloquer une salle nommée «patate» : +# location ~* /patate$ +# { +# return 404; +# } diff --git a/webapps/jitsimeet/templates/nginx/vhost.conf.j2 b/webapps/jitsimeet/templates/nginx/vhost.conf.j2 index 251644e9..24640913 100644 --- a/webapps/jitsimeet/templates/nginx/vhost.conf.j2 +++ b/webapps/jitsimeet/templates/nginx/vhost.conf.j2 @@ -101,6 +101,8 @@ server { gzip_min_length 512; include /etc/jitsi/meet/jaas/*.conf; + + include /etc/nginx/snippets/blocked_room_names; location = /config.js { alias $config_js_location;