40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
## -----------------------------------------------------------------------------
|
|
## SWAG proxy config for otel-lgtm
|
|
## Domain: lgtm.ld50.xyz
|
|
## Upstream: lgtm:3000 (shared Docker network: ${NETWORKS_EXTERNAL_NAME:-swag})
|
|
##
|
|
## Install:
|
|
## 1) Copy this file into SWAG: /config/nginx/proxy-confs/lgtm.subdomain.conf
|
|
## 2) Ensure both stacks share the same external Docker network (e.g. `swag`).
|
|
## 3) In curated_compose/lgtm/docker-compose.yaml, uncomment external_network.
|
|
## 4) Reload SWAG.
|
|
## -----------------------------------------------------------------------------
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
server_name lgtm.*;
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
# Grafana dashboards can embed large panels / JSON
|
|
client_max_body_size 20M;
|
|
|
|
location / {
|
|
include /config/nginx/proxy.conf;
|
|
|
|
set $upstream_app lgtm;
|
|
set $upstream_port 3000;
|
|
set $upstream_proto http;
|
|
|
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
|
|
# Required for Grafana live queries and real-time dashboard updates
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
}
|