]> Untitled Git - lemmy.git/commitdiff
Disable nginx access logs for docker/federation/
authorFelix <me@nutomic.com>
Tue, 14 Apr 2020 15:47:55 +0000 (17:47 +0200)
committerFelix <me@nutomic.com>
Tue, 14 Apr 2020 15:47:55 +0000 (17:47 +0200)
docker/federation/nginx.conf

index 6dbe13b40892e4edec62fb2fcd861f7eee5f1ce4..c0633ea424289c35f6b69a7d7185015e584e7212 100644 (file)
@@ -6,6 +6,7 @@ http {
     server {
         listen 8540;
         server_name 127.0.0.1;
+        access_log  off;
 
         # Upload limit for pictshare
         client_max_body_size 50M;
@@ -23,51 +24,52 @@ http {
         }
 
         location /pictshare/ {
-          proxy_pass http://pictshare_alpha:80/;
-          proxy_set_header X-Real-IP $remote_addr;
-          proxy_set_header Host $host;
-          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_pass http://pictshare_alpha:80/;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         }
 
         location /iframely/ {
-          proxy_pass http://iframely:80/;
-          proxy_set_header X-Real-IP $remote_addr;
-          proxy_set_header Host $host;
-          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_pass http://iframely:80/;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         }
     }
 
     server {
-         listen 8550;
-         server_name 127.0.0.1;
+        listen 8550;
+        server_name 127.0.0.1;
+        access_log off;
 
-         # Upload limit for pictshare
-         client_max_body_size 50M;
+        # Upload limit for pictshare
+        client_max_body_size 50M;
 
-         location / {
-             proxy_pass http://lemmy_beta:8550;
-             proxy_set_header X-Real-IP $remote_addr;
-             proxy_set_header Host $host;
-             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        location / {
+            proxy_pass http://lemmy_beta:8550;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
-             # WebSocket support
-             proxy_http_version 1.1;
-             proxy_set_header Upgrade $http_upgrade;
-             proxy_set_header Connection "upgrade";
-         }
+            # WebSocket support
+            proxy_http_version 1.1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "upgrade";
+        }
 
-         location /pictshare/ {
-           proxy_pass http://pictshare_beta:80/;
-           proxy_set_header X-Real-IP $remote_addr;
-           proxy_set_header Host $host;
-           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-         }
+        location /pictshare/ {
+            proxy_pass http://pictshare_beta:80/;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        }
 
-         location /iframely/ {
-           proxy_pass http://iframely:80/;
-           proxy_set_header X-Real-IP $remote_addr;
-           proxy_set_header Host $host;
-           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-         }
-     }
+        location /iframely/ {
+            proxy_pass http://iframely:80/;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header Host $host;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        }
+    }
 }