44 lines
1009 B
Cheetah
44 lines
1009 B
Cheetah
user www-data;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name {{ env "LOKI_DOMAIN" }};
|
|
|
|
auth_basic "loki";
|
|
auth_basic_user_file /etc/nginx/conf.d/loki.htpasswd;
|
|
|
|
location / {
|
|
proxy_read_timeout 1800s;
|
|
proxy_connect_timeout 1600s;
|
|
proxy_pass http://{{ env "STACK_NAME" }}_loki:3100;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Connection "Keep-Alive";
|
|
proxy_set_header Proxy-Connection "Keep-Alive";
|
|
proxy_redirect off;
|
|
}
|
|
|
|
location /ready {
|
|
proxy_pass http://{{ env "STACK_NAME" }}_loki:3100;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "Keep-Alive";
|
|
proxy_set_header Proxy-Connection "Keep-Alive";
|
|
proxy_redirect off;
|
|
auth_basic "off";
|
|
}
|
|
}
|
|
}
|