37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
## -----------------------------------------------------------------------------
|
|
## SWAG proxy config for Grafana Alloy
|
|
## Domain: alloy.ld50.xyz
|
|
## Upstream: alloy:12345 (shared Docker network: ${NETWORKS_EXTERNAL_NAME:-swag})
|
|
##
|
|
## Install:
|
|
## 1) Copy this file into SWAG: /config/nginx/proxy-confs/alloy.subdomain.conf
|
|
## 2) Ensure both stacks share the same external Docker network (e.g. `swag`).
|
|
## 3) In curated_compose/alloy/compose.yaml, uncomment external_network.
|
|
## 4) Reload SWAG.
|
|
## -----------------------------------------------------------------------------
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
server_name alloy.ld50.xyz;
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
location / {
|
|
include /config/nginx/proxy.conf;
|
|
|
|
set $upstream_app alloy;
|
|
set $upstream_port 12345;
|
|
set $upstream_proto http;
|
|
|
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
|
|
# Alloy UI uses WebSocket for live config reload
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
}
|