Update modules/server/containers/apps/influx.nix

This commit is contained in:
2026-06-05 12:35:03 +02:00
parent 5c6a46df2f
commit a28bcd7775

View File

@@ -46,11 +46,11 @@ in {
port = 8080;
secret = name;
extraEnv = {
SESSION_SECRET_KEY = "7b0024c13ae770000f797c201e2f210b9932a689c04d34de04379faa44e88e97";
DATABASE_URL = "/db/sqlite.db";
DEFAULT_INFLUX_SERVER = "http://${builder.host}:8181";
};
overrides = {
ports = [ "8080:8080" ];
ports = [ "8888:8080" ];
cmd = [ "--mode=admin" ];
volumes = [
"${serverCfg.path.data}/influxdb:/db:rw"
@@ -63,11 +63,11 @@ in {
setup = {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
cat > ${serverCfg.path.config}/influxdb/config.json << 'EOF'
cat > ${serverCfg.path.config}/influxdb/config/config.json << 'EOF'
{
"DEFAULT_INFLUX_SERVER": "http://${builder.host}:8181",
"DEFAULT_INFLUX_DATABASE": "main",
"DEFAULT_API_TOKEN": "$INFLUXDB3_TOKEN",
"DEFAULT_API_TOKEN": "$INFLUXDB_TOKEN",
"DEFAULT_SERVER_NAME": "${serverCfg.domain}"
}
EOF