heather: xray - override command to -config (image default is -confdir)
This commit is contained in:
parent
d3d132e225
commit
190c93156e
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue