heather: xray - override command to -config (image default is -confdir)

This commit is contained in:
mikl 2026-07-13 03:15:26 +03:00
parent d3d132e225
commit 190c93156e

View file

@ -174,6 +174,9 @@ in
service.image = "ghcr.io/xtls/xray-core:latest"; service.image = "ghcr.io/xtls/xray-core:latest";
service.container_name = "xray"; service.container_name = "xray";
service.restart = "unless-stopped"; service.restart = "unless-stopped";
# Образ по умолчанию читает -confdir /usr/local/etc/xray/ (split-конфиги).
# Переопределяем на единый config.json с VLESS+Reality.
service.command = [ "-config" "/etc/xray/config.json" ];
service.volumes = [ service.volumes = [
"/var/lib/xray-secrets/config.json:/etc/xray/config.json:ro" "/var/lib/xray-secrets/config.json:/etc/xray/config.json:ro"
]; ];