MCPcopy Create free account
hub / github.com/nhost/nhost / getConfig

Function getConfig

cli/dockercompose/main_test.go:7–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5)
6
7func getConfig() *model.ConfigConfig { //nolint:maintidx
8 return &model.ConfigConfig{
9 Graphql: nil,
10 Ai: &model.ConfigAI{
11 Version: new("0.2.5"),
12 Resources: &model.ConfigAIResources{
13 Compute: &model.ConfigComputeResources{
14 Cpu: 128,
15 Memory: 256,
16 },
17 },
18 Openai: &model.ConfigAIOpenai{
19 Organization: new("my-org"),
20 ApiKey: "openaiApiKey",
21 },
22 AutoEmbeddings: &model.ConfigAIAutoEmbeddings{
23 SynchPeriodMinutes: new(uint32(10)),
24 },
25 WebhookSecret: "webhookSecret",
26 },
27 Auth: &model.ConfigAuth{
28 Misc: &model.ConfigAuthMisc{
29 ConcealErrors: new(true),
30 },
31 ElevatedPrivileges: &model.ConfigAuthElevatedPrivileges{
32 Mode: new("required"),
33 },
34 Resources: &model.ConfigResources{
35 Compute: &model.ConfigResourcesCompute{
36 Cpu: 1000,
37 Memory: 300,
38 },
39 Replicas: new(uint8(3)),
40 Networking: nil,
41 Autoscaler: nil,
42 },
43 RateLimit: &model.ConfigAuthRateLimit{
44 Emails: &model.ConfigRateLimit{
45 Limit: 10,
46 Interval: "5m",
47 },
48 Sms: &model.ConfigRateLimit{
49 Limit: 10,
50 Interval: "5m",
51 },
52 BruteForce: &model.ConfigRateLimit{
53 Limit: 10,
54 Interval: "5m",
55 },
56 Signups: &model.ConfigRateLimit{
57 Limit: 10,
58 Interval: "5m",
59 },
60 Global: &model.ConfigRateLimit{
61 Limit: 100,
62 Interval: "15m",
63 },
64 Oauth2Server: &model.ConfigRateLimit{

Callers 4

callGetServicesFunction · 0.70
TestAuthFunction · 0.70
configWithConstellationFunction · 0.70
TestConsoleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected