Mayank Chhabra
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
20 additions and
0 deletions
-
docker-compose.yml
-
nginx/conf.d/default.conf
|
|
@ -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: |
|
|
|
|
|
@ -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/; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|