fix influx

This commit is contained in:
soraefir
2026-06-04 02:16:10 +02:00
parent d46785a4ef
commit c25e75a1b6
2 changed files with 8 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ in {
{ {
"DEFAULT_INFLUX_SERVER": "http://${builder.host}:8181", "DEFAULT_INFLUX_SERVER": "http://${builder.host}:8181",
"DEFAULT_INFLUX_DATABASE": "main", "DEFAULT_INFLUX_DATABASE": "main",
"DEFAULT_API_TOKEN": "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9", "DEFAULT_API_TOKEN": "$INFLUXDB3_TOKEN",
"DEFAULT_SERVER_NAME": "${serverCfg.domain}" "DEFAULT_SERVER_NAME": "${serverCfg.domain}"
} }
EOF EOF

View File

@@ -50,12 +50,10 @@ in {
INFLUXDB3_DATA_DIR = "${config.syscfg.server.path.data}/influxdb"; INFLUXDB3_DATA_DIR = "${config.syscfg.server.path.data}/influxdb";
INFLUXDB3_DB_DIR = "${config.syscfg.server.path.data}/influxdb"; INFLUXDB3_DB_DIR = "${config.syscfg.server.path.data}/influxdb";
INFLUXDB3_ENABLE_INTERNAL_DB = "true"; INFLUXDB3_ENABLE_INTERNAL_DB = "true";
INFLUXDB3_AUTH_TOKEN = "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9";
INFLUXDB3_INITIAL_ADMIN_TOKEN = "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9";
}; };
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.influxdb3}/bin/influxdb3 serve"; ExecStart = "${pkgs.influxdb3}/bin/influxdb3 serve"; #--admin-token-file=/run/secrets/admin-token
Restart = "on-failure"; Restart = "on-failure";
StateDirectory = "influxdb3"; StateDirectory = "influxdb3";
PrivateTmp = true; 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 = { systemd.services.postgresql-init = {
description = "Custom Postgres Setup (Ownership & Passwords)"; description = "Custom Postgres Setup (Ownership & Passwords)";