aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/jitsi/config/nginx.conf
diff options
context:
space:
mode:
authorADRN <adrien@luxeylab.net>2024-06-22 16:21:49 +0200
committerADRN <adrien@luxeylab.net>2024-07-02 19:09:34 +0200
commit47d94b1ad0a5ef04079e2ecc94cdbae101f0b1a4 (patch)
tree0ee4911718397f817392ea9de0a75bd71399a43f /cluster/prod/app/jitsi/config/nginx.conf
parent62ff09234dc514a699b1aefabcde84d39cac4e1b (diff)
downloadnixcfg-47d94b1ad0a5ef04079e2ecc94cdbae101f0b1a4.tar.gz
nixcfg-47d94b1ad0a5ef04079e2ecc94cdbae101f0b1a4.zip
intervention Jitsi
Diffstat (limited to 'cluster/prod/app/jitsi/config/nginx.conf')
-rw-r--r--cluster/prod/app/jitsi/config/nginx.conf10
1 files changed, 8 insertions, 2 deletions
diff --git a/cluster/prod/app/jitsi/config/nginx.conf b/cluster/prod/app/jitsi/config/nginx.conf
index 53c8596..954db0b 100644
--- a/cluster/prod/app/jitsi/config/nginx.conf
+++ b/cluster/prod/app/jitsi/config/nginx.conf
@@ -81,6 +81,12 @@ http {
alias /srv/jitsi-meet/$1/$2;
}
+ # Disallow robots indexation
+ location = /robots.txt {
+ add_header Content-Type text/plain;
+ return 200 "User-agent: *\nDisallow: /\n";
+ }
+
# not used yet VVV
# colibri (JVB) websockets
#location ~ ^/colibri-ws/([a-zA-Z0-9-\.]+)/(.*) {
@@ -92,12 +98,12 @@ http {
#}
- location ~ "2daut2wank2|2duat2wank|2duat2wank0|2duat2wank1|2duat2wank2|2duat2wank3|2duatr2wank|2duatr2wank0|2duatr2wank1|2duatr2wank2|2wank2daut2|daut1|duat2wank|duat2wank2|duatr2wank2|prettypanties|slutgfs|wabk2daugther|wank2daugther|wank2daut|wank2daut2|wank2daut3|wankwatch" {
+ location ~* {{ key "secrets/jitsi/blacklist_regex" }} {
return 302 https://www.service-public.fr/particuliers/vosdroits/R17674;
}
location = /http-bind {
- if ($args ~ "2daut2wank2|2duat2wank|2duat2wank0|2duat2wank1|2duat2wank2|2duat2wank3|2duatr2wank|2duatr2wank0|2duatr2wank1|2duatr2wank2|2wank2daut2|daut1|duat2wank|duat2wank2|duatr2wank2|prettypanties|slutgfs|wabk2daugther|wank2daugther|wank2daut|wank2daut2|wank2daut3|wankwatch") {
+ if ($args ~* {{ key "secrets/jitsi/blacklist_regex" }}) {
return 403 'forbidden';
}