Skip to content

A self-hosted media server and file management system

fix: nginx logs ws and docker healthchecks

aminnausinb18d16ada902
diff --git a/docker/etc/nginx/conf.d/default.conf b/docker/etc/nginx/conf.d/default.conf
index c2518b3c..5fcd085e 100644
--- a/docker/etc/nginx/conf.d/default.conf
+++ b/docker/etc/nginx/conf.d/default.conf
@@ -35,7 +35,7 @@ server {
index index.php;
error_log /var/log/nginx/error.log warn;
- access_log /var/log/nginx/access.log custom;
+ access_log /var/log/nginx/access.log custom if=$loggable;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
diff --git a/docker/etc/nginx/nginx.conf b/docker/etc/nginx/nginx.conf
index 9da8e9d5..12163704 100644
--- a/docker/etc/nginx/nginx.conf
+++ b/docker/etc/nginx/nginx.conf
@@ -24,6 +24,12 @@ http {
access_log /dev/stdout custom;
+ map $request_uri $loggable {
+ ~^/up$ 0;
+ ~^/(app|apps)/$ 0;
+ default 1;
+ }
+
sendfile on;
#tcp_nopush on;