feat: add alloy
This commit is contained in:
parent
8f8827aba1
commit
dbff6e4793
4 changed files with 185 additions and 0 deletions
37
docker/alloy/swag/alloy.subdomain.conf
Normal file
37
docker/alloy/swag/alloy.subdomain.conf
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
## -----------------------------------------------------------------------------
|
||||
## 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue