fix
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user