From 3c6c85eaad79a9bf3583511a09c1758cae374634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 5 Feb 2024 16:41:15 +0100 Subject: [PATCH] Fix IRC --- conf/config.conf | 3 ++- conf/nginx.conf | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/config.conf b/conf/config.conf index 266d000..e7bc21b 100644 --- a/conf/config.conf +++ b/conf/config.conf @@ -131,7 +131,8 @@ irc.network2.org = webirc_password [dnsbl] # "verify" - if the client supports it, tell it to show a captcha # "deny" - deny the connection entirely -action = verify +## notes for yunohost: it looks like the code accepts other values than deny and verify +action = none [dnsbl.servers] dnsbl.dronebl.org diff --git a/conf/nginx.conf b/conf/nginx.conf index e424dc1..43f9646 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,10 +9,12 @@ location /webirc/ { # Set http version and headers proxy_http_version 1.1; + proxy_redirect default; # Add X-Forwarded-* headers proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; # Allow upgrades to websockets