fix influx
This commit is contained in:
@@ -50,12 +50,10 @@ in {
|
||||
INFLUXDB3_DATA_DIR = "${config.syscfg.server.path.data}/influxdb";
|
||||
INFLUXDB3_DB_DIR = "${config.syscfg.server.path.data}/influxdb";
|
||||
INFLUXDB3_ENABLE_INTERNAL_DB = "true";
|
||||
INFLUXDB3_AUTH_TOKEN = "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9";
|
||||
INFLUXDB3_INITIAL_ADMIN_TOKEN = "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9";
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.influxdb3}/bin/influxdb3 serve";
|
||||
ExecStart = "${pkgs.influxdb3}/bin/influxdb3 serve"; #--admin-token-file=/run/secrets/admin-token
|
||||
Restart = "on-failure";
|
||||
StateDirectory = "influxdb3";
|
||||
PrivateTmp = true;
|
||||
@@ -63,6 +61,12 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# admin-token.json= {
|
||||
# "token": "$INFLUXDB_TOKEN",
|
||||
# "name": "admin",
|
||||
# "description": "Admin token for automated deployment"
|
||||
# }
|
||||
|
||||
|
||||
systemd.services.postgresql-init = {
|
||||
description = "Custom Postgres Setup (Ownership & Passwords)";
|
||||
|
||||
Reference in New Issue
Block a user