diff --git a/docker-compose.yml b/docker-compose.yml index 8f66f71..e72b1b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -157,6 +157,17 @@ services: networks: net: ipv4_address: 10.11.5.2 + frontail: + container_name: frontail + image: getumbrel/frontail:v4.9.1 + logging: *default-logging + restart: unless-stopped + command: "/var/log/syslog --url-path /logs --number 100 --disable-usage-stats" + volumes: + - /var/log/syslog:/var/log/syslog:ro + networks: + net: + ipv4_address: 10.11.3.0 networks: net: ipam: diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 6460c58..aa24f99 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -12,9 +12,18 @@ server { add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; proxy_pass http://10.11.2.1:3006/; } + + location /logs { + add_header Access-Control-Allow-Origin *; + proxy_pass http://10.11.3.0:9001/logs; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } location / { add_header Access-Control-Allow-Origin *; proxy_pass http://10.11.0.3:3004/; } + }