diff --git a/modules/server/containers/apps/influx.nix b/modules/server/containers/apps/influx.nix index 92e97a1..3455491 100644 --- a/modules/server/containers/apps/influx.nix +++ b/modules/server/containers/apps/influx.nix @@ -67,7 +67,7 @@ in { { "DEFAULT_INFLUX_SERVER": "http://${builder.host}:8181", "DEFAULT_INFLUX_DATABASE": "main", - "DEFAULT_API_TOKEN": "b27686e85a883437666f61586e084f7deb763958497739479ca48bc913ee90afd1a920332156133c89fb8674cb197ced17706074e6a42fc7ce6b2d54ac6119c9", + "DEFAULT_API_TOKEN": "$INFLUXDB3_TOKEN", "DEFAULT_SERVER_NAME": "${serverCfg.domain}" } EOF diff --git a/modules/server/database/default.nix b/modules/server/database/default.nix index 39bd61d..f993f3c 100644 --- a/modules/server/database/default.nix +++ b/modules/server/database/default.nix @@ -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)";