centrifugo: fix ldflags paths and nixos test for v6
This commit is contained in:
parent
aa51d18555
commit
10c071b107
@ -21,12 +21,15 @@ in
|
||||
services.centrifugo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
inherit name;
|
||||
port = centrifugoPort;
|
||||
# See https://centrifugal.dev/docs/server/engines#redis-sharding
|
||||
engine = "redis";
|
||||
# Connect to local Redis shard via Unix socket.
|
||||
redis_address =
|
||||
node = {
|
||||
inherit name;
|
||||
};
|
||||
http_server.port = centrifugoPort;
|
||||
http_api.insecure = true;
|
||||
usage_stats.disabled = true;
|
||||
|
||||
engine.type = "redis";
|
||||
engine.redis.address =
|
||||
let
|
||||
toRedisAddresses = map (name: "${name}:${toString redisPort}");
|
||||
in
|
||||
@ -35,8 +38,6 @@ in
|
||||
"unix://${config.services.redis.servers.centrifugo.unixSocket}"
|
||||
]
|
||||
++ toRedisAddresses (lib.drop (index + 1) nodes);
|
||||
usage_stats_disable = true;
|
||||
api_insecure = true;
|
||||
};
|
||||
extraGroups = [
|
||||
config.services.redis.servers.centrifugo.user
|
||||
|
||||
@ -30,9 +30,9 @@ buildGoModule rec {
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/centrifugal/centrifugo/v5/internal/build.Version=${version}"
|
||||
"-X=github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsEndpoint=${statsEndpoint}"
|
||||
"-X=github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsToken=${statsToken}"
|
||||
"-X=github.com/centrifugal/centrifugo/v6/internal/build.Version=${version}"
|
||||
"-X=github.com/centrifugal/centrifugo/v6/internal/build.UsageStatsEndpoint=${statsEndpoint}"
|
||||
"-X=github.com/centrifugal/centrifugo/v6/internal/build.UsageStatsToken=${statsToken}"
|
||||
];
|
||||
|
||||
excludedPackages = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user