summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory&::Emma <root@rory.gay>2024-05-05 23:31:29 +0000
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit90da542c80a29f9475e59e8a5b2819d193452959 (patch)
tree48772e56fa763c64ac62dabfabe91b7c064ef988 /host
parentExplicitly enable resolvconf (diff)
downloadRory-Open-Architecture-90da542c80a29f9475e59e8a5b2819d193452959.tar.xz
Server updates
Diffstat (limited to 'host')
-rwxr-xr-xhost/Rory-nginx/services/matrix/draupnir.nix5
-rwxr-xr-xhost/Rory-nginx/services/nginx/nginx.nix2
2 files changed, 6 insertions, 1 deletions
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; [