Browse Source

Stream logs to umbrel.local/logs (#65)

partition-refactor
Mayank Chhabra 4 years ago
committed by GitHub
parent
commit
848b3a8c75
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      docker-compose.yml
  2. 9
      nginx/conf.d/default.conf

11
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:

9
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/;
}
}

Loading…
Cancel
Save