From 90da542c80a29f9475e59e8a5b2819d193452959 Mon Sep 17 00:00:00 2001 From: "Rory&::Emma" Date: Sun, 5 May 2024 23:31:29 +0000 Subject: Server updates --- host/Rory-nginx/services/matrix/draupnir.nix | 5 ++++- host/Rory-nginx/services/nginx/nginx.nix | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/Rory-nginx/services/matrix/draupnir.nix b/host/Rory-nginx/services/matrix/draupnir.nix index 8930f1e..12d258a 100755 --- a/host/Rory-nginx/services/matrix/draupnir.nix +++ b/host/Rory-nginx/services/matrix/draupnir.nix @@ -24,7 +24,9 @@ backgroundDelayMS = 10; # delay isn't needed, I don't mind the performance hit pollReports = false; # this is a single person homeserver... let's save ourself the work - + + #homeserverUrl = "yes"; + admin.enableMakeRoomAdminCommand = true; commands.ban.defaultReasons = [ "spam" @@ -39,6 +41,7 @@ "faggot" "ywnbaw" "nigger" + "ioawejfioanwfoiawnfionf23iofn23ion312ion231ion12oi4n23io4n23io4" ]; minutesBeforeTrusting = 0; }; diff --git a/host/Rory-nginx/services/nginx/nginx.nix b/host/Rory-nginx/services/nginx/nginx.nix index 74a99d2..91340c7 100755 --- a/host/Rory-nginx/services/nginx/nginx.nix +++ b/host/Rory-nginx/services/nginx/nginx.nix @@ -22,6 +22,8 @@ appendHttpConfig = '' #sendfile on; disable_symlinks off; + log_format combined_vhosts '$remote_addr - $remote_user [$time_local] {host="$host",server_name="$server_name"} "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; + access_log /var/log/nginx/access.log combined_vhosts; ''; upstreams = import ./matrix-upstreams.nix; additionalModules = with pkgs.nginxModules; [ -- cgit 1.4.1