Update modules/server/containers/apps/influx.nix
This commit is contained in:
@@ -46,11 +46,11 @@ in {
|
|||||||
port = 8080;
|
port = 8080;
|
||||||
secret = name;
|
secret = name;
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
SESSION_SECRET_KEY = "7b0024c13ae770000f797c201e2f210b9932a689c04d34de04379faa44e88e97";
|
|
||||||
DATABASE_URL = "/db/sqlite.db";
|
DATABASE_URL = "/db/sqlite.db";
|
||||||
|
DEFAULT_INFLUX_SERVER = "http://${builder.host}:8181";
|
||||||
};
|
};
|
||||||
overrides = {
|
overrides = {
|
||||||
ports = [ "8080:8080" ];
|
ports = [ "8888:8080" ];
|
||||||
cmd = [ "--mode=admin" ];
|
cmd = [ "--mode=admin" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"${serverCfg.path.data}/influxdb:/db:rw"
|
"${serverCfg.path.data}/influxdb:/db:rw"
|
||||||
@@ -63,11 +63,11 @@ in {
|
|||||||
setup = {
|
setup = {
|
||||||
trigger = "server";
|
trigger = "server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
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_SERVER": "http://${builder.host}:8181",
|
||||||
"DEFAULT_INFLUX_DATABASE": "main",
|
"DEFAULT_INFLUX_DATABASE": "main",
|
||||||
"DEFAULT_API_TOKEN": "$INFLUXDB3_TOKEN",
|
"DEFAULT_API_TOKEN": "$INFLUXDB_TOKEN",
|
||||||
"DEFAULT_SERVER_NAME": "${serverCfg.domain}"
|
"DEFAULT_SERVER_NAME": "${serverCfg.domain}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user