Skip to content

Commit

Permalink
Merge pull request #14 from mdegat01/fix-ready-mtls
Browse files Browse the repository at this point in the history
Fix readiness check for mtls and access log off
  • Loading branch information
mdegat01 authored Mar 27, 2021
2 parents e4a8c1b + f640273 commit ca7c6fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loki/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Loki for Home Assistant",
"startup": "system",
"map": ["share", "ssl"],
"watchdog": "[PROTO:ssl]://[HOST]:[PORT:3100]/ready",
"watchdog": "http://[HOST]:3101/ready",
"ports": {
"3100/tcp": null
},
Expand Down
2 changes: 1 addition & 1 deletion loki/rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ http {
'$http_x_forwarded_for($remote_addr) '
'$request ($http_user_agent)';

access_log /proc/1/fd/1 homeassistant;
access_log off;
client_max_body_size 4G;
default_type application/octet-stream;
gzip on;
Expand Down
14 changes: 14 additions & 0 deletions loki/rootfs/etc/nginx/servers/ready.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 3101 default_server;

include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;

location = /ready {
proxy_pass http://backend;
}

location / {
return 404;
}
}

0 comments on commit ca7c6fb

Please sign in to comment.