summary refs log tree commit diff
path: root/host/Rory-nginx
diff options
context:
space:
mode:
Diffstat (limited to '')
-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; [