This commit is contained in:
soraefir
2026-06-05 21:48:53 +02:00
parent 87d648485e
commit adb79a68c5

View File

@@ -36,7 +36,7 @@ in {
ports = [ "8181:8181" ];
volumes = [
"${serverCfg.path.data}/influxdb:/var/lib/influxdb3/data:rw"
"${serverCfg.path.config}/influxdb/config/admin-token.json:/var/lib/influxdb3/token.json:ro"
"${serverCfg.path.config}/influxdb/admin-token.json:/var/lib/influxdb3/token.json:ro"
];
};
@@ -65,7 +65,7 @@ in {
setup = {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
cat > ${serverCfg.path.config}/influxdb/config/config.json << 'EOF'
cat > ${serverCfg.path.config}/influxdb/config.json << 'EOF'
{
"DEFAULT_INFLUX_SERVER": "http://${builder.host}:8181",
"DEFAULT_INFLUX_DATABASE": "main",
@@ -74,7 +74,7 @@ in {
}
EOF
cat > ${serverCfg.path.config}/influxdb/config/admin-token.json <<EOF
cat > ${serverCfg.path.config}/influxdb/admin-token.json <<EOF
{
"token": "$INFLUXDB_TOKEN",
"name": "admin",