Set config to env variables
This commit is contained in:
@@ -209,7 +209,7 @@ var jwtSecret = builder.Configuration["Jwt:Secret"];
|
||||
if (string.IsNullOrWhiteSpace(jwtSecret))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"JWT secret is not configured. Please set 'Jwt:Secret' in appsettings.json or environment variables.");
|
||||
"JWT secret is not configured. Please set 'Jwt:Secret' environment variable.");
|
||||
}
|
||||
|
||||
if (jwtSecret.Length < 32)
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
{
|
||||
"RunOrleansGrains": false,
|
||||
"DeploymentMode": false,
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Privy": {
|
||||
"AppId": "cm6f47n1l003jx7mjwaembhup"
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnableSwagger": true,
|
||||
"RunOrleansGrains": true,
|
||||
"AllowedHosts": "*",
|
||||
"KAIGEN_CREDITS_ENABLED": false
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
{
|
||||
"InfluxDb": {
|
||||
"Url": "http://localhost:8086/",
|
||||
"Organization": "managing-org",
|
||||
"Token": "Fw2FPL2OwTzDHzSbR2Sd5xs0EKQYy00Q-hYKYAhr9cC1_q5YySONpxuf_Ck0PTjyUiF13xXmi__bu_pXH-H9zA=="
|
||||
},
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=localhost;Port=5432;Database=managing;Username=postgres;Password=postgres",
|
||||
"Orleans": "Host=localhost;Port=5432;Database=orleans;Username=postgres;Password=postgres"
|
||||
},
|
||||
"Privy": {
|
||||
"AppId": "cm6f47n1l003jx7mjwaembhup",
|
||||
"AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF"
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Warning"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ElasticConfiguration": {
|
||||
"Uri": "http://elasticsearch:9200"
|
||||
},
|
||||
"Discord": {
|
||||
"ApplicationId": "",
|
||||
"PublicKey": "",
|
||||
"TokenId": "",
|
||||
"SignalChannelId": 966080506473099314,
|
||||
"TradesChannelId": 998374177763491851,
|
||||
"TroublesChannelId": 1015761955321040917,
|
||||
"RequestsChannelId": 1018589494968078356,
|
||||
"ButtonExpirationMinutes": 2
|
||||
},
|
||||
"RunOrleansGrains": false,
|
||||
"AllowedHosts": "*",
|
||||
"KAIGEN_SECRET_KEY": "KaigenXCowchain",
|
||||
"KAIGEN_CREDITS_ENABLED": false,
|
||||
"WorkerBalancesTracking": false,
|
||||
"WorkerNotifyBundleBacktest": false,
|
||||
"WorkerPricesFifteenMinutes": true,
|
||||
"WorkerPricesOneHour": false,
|
||||
"WorkerPricesFourHours": false,
|
||||
"WorkerPricesOneDay": false,
|
||||
"WorkerPricesFiveMinutes": false,
|
||||
"WorkerFee": false,
|
||||
"WorkerPositionManager": false,
|
||||
"WorkerPositionFetcher": false,
|
||||
"WorkerSpotlight": false,
|
||||
"WorkerTraderWatcher": false,
|
||||
"WorkerLeaderboard": false,
|
||||
"WorkerFundingRatesWatcher": false,
|
||||
"WorkerGeneticAlgorithm": false,
|
||||
"WorkerBundleBacktest": false
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
{
|
||||
"InfluxDb": {
|
||||
"Url": "http://localhost:8086/",
|
||||
"Organization": "managing-org",
|
||||
"Token": "Fw2FPL2OwTzDHzSbR2Sd5xs0EKQYy00Q-hYKYAhr9cC1_q5YySONpxuf_Ck0PTjyUiF13xXmi__bu_pXH-H9zA=="
|
||||
},
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=localhost;Port=5432;Database=managing;Username=postgres;Password=postgres",
|
||||
"Orleans": "Host=localhost;Port=5432;Database=orleans;Username=postgres;Password=postgres"
|
||||
},
|
||||
"Privy": {
|
||||
"AppId": "cm6f47n1l003jx7mjwaembhup",
|
||||
"AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF"
|
||||
},
|
||||
"Kaigen": {
|
||||
"BaseUrl": "https://kaigen-back.apps.managing.live"
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Warning"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ElasticConfiguration": {
|
||||
"Uri": "http://elasticsearch:9200"
|
||||
},
|
||||
"Discord": {
|
||||
"ApplicationId": "",
|
||||
"PublicKey": "",
|
||||
"TokenId": "",
|
||||
"SignalChannelId": 966080506473099314,
|
||||
"TradesChannelId": 998374177763491851,
|
||||
"TroublesChannelId": 1015761955321040917,
|
||||
"RequestsChannelId": 1018589494968078356,
|
||||
"ButtonExpirationMinutes": 2
|
||||
},
|
||||
"EnableSwagger": true,
|
||||
"RunOrleansGrains": true,
|
||||
"AllowedHosts": "*",
|
||||
"KAIGEN_SECRET_KEY": "KaigenXCowchain",
|
||||
"KAIGEN_CREDITS_ENABLED": false,
|
||||
"WorkerBotManager": false,
|
||||
"WorkerBalancesTracking": false,
|
||||
"WorkerNotifyBundleBacktest": false,
|
||||
"WorkerPricesFifteenMinutes": false,
|
||||
"WorkerPricesOneHour": false,
|
||||
"WorkerPricesFourHours": false,
|
||||
"WorkerPricesOneDay": false,
|
||||
"WorkerPricesFiveMinutes": false,
|
||||
"WorkerFee": false,
|
||||
"WorkerPositionManager": false,
|
||||
"WorkerPositionFetcher": false,
|
||||
"WorkerSpotlight": false,
|
||||
"WorkerTraderWatcher": false,
|
||||
"WorkerLeaderboard": false,
|
||||
"WorkerFundingRatesWatcher": false,
|
||||
"WorkerGeneticAlgorithm": false,
|
||||
"WorkerBundleBacktest": false,
|
||||
"WorkerBundleBacktestHealthCheck": false
|
||||
}
|
||||
@@ -1,13 +1,4 @@
|
||||
{
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=srv-captain--kaigen-db;Port=5432;Database=managing;Username=postgres;Password=2ab5423dcca4aa2d",
|
||||
"Orleans": "Host=srv-captain--kaigen-db;Port=5432;Database=orleans;Username=postgres;Password=2ab5423dcca4aa2d"
|
||||
},
|
||||
"InfluxDb": {
|
||||
"Url": "http://srv-captain--influx-db:8086/",
|
||||
"Organization": "managing-org",
|
||||
"Token": "ROvQoZ1Dg5jiKDFxB0saEGqHC3rsLkUNlPL6_AFbOcpNjMieIv8v58yA4v5tFU9sX9LLvXEToPvUrxqQEMaWDw=="
|
||||
},
|
||||
"Web3Proxy": {
|
||||
"BaseUrl": "http://srv-captain--web3-proxy:4111",
|
||||
"MaxRetryAttempts": 2,
|
||||
@@ -26,16 +17,6 @@
|
||||
"Kaigen": {
|
||||
"BaseUrl": "http://srv-captain--kaigen-back:3000"
|
||||
},
|
||||
"Flagsmith": {
|
||||
"ApiKey": "ser.5TpNgoo4q6yhwFNfqHGr2s",
|
||||
"ApiUrl": "https://flag.kaigen.ai/api/v1/"
|
||||
},
|
||||
"N8n": {
|
||||
"WebhookUrl": "https://n8n.kai.managing.live/webhook/fa9308b6-983b-42ec-b085-71599d655951",
|
||||
"IndicatorRequestWebhookUrl": "https://n8n.kai.managing.live/webhook/3aa07b66-1e64-46a7-8618-af300914cb11",
|
||||
"Username": "managing-api",
|
||||
"Password": "T259836*PdiV2@%!eR%Qf4"
|
||||
},
|
||||
"SqlMonitoring": {
|
||||
"Enabled": true,
|
||||
"LoggingEnabled": false,
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=kaigen-db.kaigen.managing.live;Port=5432;Database=managing;Username=postgres;Password=2ab5423dcca4aa2d",
|
||||
"Orleans": "Host=kaigen-db.kaigen.managing.live;Port=5432;Database=orleans;Username=postgres;Password=2ab5423dcca4aa2d"
|
||||
},
|
||||
"InfluxDb": {
|
||||
"Url": "https://influx-db.kaigen.managing.live",
|
||||
"Organization": "managing-org",
|
||||
"Token": "ROvQoZ1Dg5jiKDFxB0saEGqHC3rsLkUNlPL6_AFbOcpNjMieIv8v58yA4v5tFU9sX9LLvXEToPvUrxqQEMaWDw=="
|
||||
},
|
||||
"RunOrleansGrains": true,
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
@@ -1,13 +1,4 @@
|
||||
{
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=srv-captain--db;Port=5432;Database=managing;Username=postgres;Password=28d7c07e72296e08",
|
||||
"Orleans": "Host=srv-captain--db;Port=5432;Database=orleans;Username=postgres;Password=28d7c07e72296e08"
|
||||
},
|
||||
"InfluxDb": {
|
||||
"Url": "http://srv-captain--influx-db:8086/",
|
||||
"Organization": "managing-org",
|
||||
"Token": "R2FasLHQ3wdDOJ0nxq7wZ0OXe2yjPNW9mfZkbAjF35d1z7xGlSv4eY0y_AS6bvaVmPA0ETUMXHU1ftTNNFRDkA=="
|
||||
},
|
||||
"Kaigen": {
|
||||
"BaseUrl": "http://srv-captain--kaigen-back:3000"
|
||||
},
|
||||
@@ -26,9 +17,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ElasticConfiguration": {
|
||||
"Uri": "http://elasticsearch:9200"
|
||||
},
|
||||
"SqlMonitoring": {
|
||||
"Enabled": true,
|
||||
"LoggingEnabled": true,
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=db.apps.managing.live;Port=5432;Database=managing;Username=postgres;Password=28d7c07e72296e08",
|
||||
"Orleans": "Host=db.apps.managing.live;Port=5432;Database=orleans;Username=postgres;Password=28d7c07e72296e08"
|
||||
},
|
||||
"InfluxDb": {
|
||||
"Url": "https://influx-db.apps.managing.live",
|
||||
"Organization": "managing-org",
|
||||
"Token": "R2FasLHQ3wdDOJ0nxq7wZ0OXe2yjPNW9mfZkbAjF35d1z7xGlSv4eY0y_AS6bvaVmPA0ETUMXHU1ftTNNFRDkA=="
|
||||
}
|
||||
}
|
||||
@@ -9,16 +9,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Jwt": {
|
||||
"Secret": "2ed5f490-b6c1-4cad-8824-840c911f1fe6"
|
||||
},
|
||||
"PostgreSql": {
|
||||
"ConnectionString": "Host=localhost;Port=5432;Database=managing;Username=postgres;Password=postgres"
|
||||
},
|
||||
|
||||
|
||||
"InfluxDb": {
|
||||
"Url": "http://influxdb:8086/",
|
||||
"Organization": "",
|
||||
"Token": ""
|
||||
"Organization": "managing-org"
|
||||
},
|
||||
"Web3Proxy": {
|
||||
"BaseUrl": "http://localhost:4111",
|
||||
@@ -32,17 +26,11 @@
|
||||
"RefundEndpoint": "/api/credits/refund"
|
||||
},
|
||||
"Flagsmith": {
|
||||
"ApiKey": "ser.ShJJJMtWYS9fwuzd83ejwR",
|
||||
"ApiUrl": "https://flag.kaigen.ai/api/v1/"
|
||||
},
|
||||
"N8n": {
|
||||
"WebhookUrl": "https://n8n.kai.managing.live/webhook/fa9308b6-983b-42ec-b085-71599d655951",
|
||||
"IndicatorRequestWebhookUrl": "https://n8n.kai.managing.live/webhook/3aa07b66-1e64-46a7-8618-af300914cb11",
|
||||
"Username": "managing-api",
|
||||
"Password": "T259836*PdiV2@%!eR%Qf4"
|
||||
},
|
||||
"Sentry": {
|
||||
"Dsn": "https://fe12add48c56419bbdfa86227c188e7a@glitch.kai.managing.live/1",
|
||||
"MinimumEventLevel": "Error",
|
||||
"SendDefaultPii": true,
|
||||
"MaxBreadcrumbs": 50,
|
||||
@@ -65,9 +53,6 @@
|
||||
"Discord": {
|
||||
"BotActivity": "with trading strategies",
|
||||
"HandleUserAction": true,
|
||||
"ApplicationId": "966075382002516031",
|
||||
"PublicKey": "63028f6bb740cd5d26ae0340b582dee2075624011b28757436255fc002ca8a7c",
|
||||
"TokenId": "OTY2MDc1MzgyMDAyNTE2MDMx.Yl8dzw.xpeIAaMwGrwTNY4r9JYv0ebzb-U",
|
||||
"SignalChannelId": 966080506473099314,
|
||||
"TradesChannelId": 998374177763491851,
|
||||
"TroublesChannelId": 1015761955321040917,
|
||||
|
||||
Reference in New Issue
Block a user