@@ -16,24 +16,24 @@ type GRPC struct {
16
16
}
17
17
18
18
type Config struct {
19
- BaseURL string `json:"base-url"`
20
- DatabaseConnectTimeout time.Duration `json:"database-connect-timeout"`
21
- DatabaseEncryptionKey string `json:"database-encryption-key"`
22
- DatabaseURL string `json:"database-url"`
23
- DeploydKeys []string `json:"deployd-keys"`
24
- FrontendKeys []string `json:"frontend-keys"`
25
- GRPC GRPC `json:"grpc"`
26
- GoogleAllowedDomains []string `json:"google-allowed-domains"`
27
- GoogleClientId string `json:"google-client-id"`
28
- GoogleClusterProjects []string `json:"google-cluster-projects"`
29
- ListenAddress string `json:"listen-address"`
30
- LogFormat string `json:"log-format"`
31
- LogLevel string `json:"log-level"`
32
- LogLinkFormatter string `json:"log-link-formatter"`
33
- MetricsPath string `json:"metrics-path"`
34
- ProvisionKey string `json:"provision-key"`
35
- TeamsAPIKey string `json:"teams -api-key "`
36
- TeamsURL string `json:"teams-url "`
19
+ BaseURL string `json:"base-url"`
20
+ DatabaseConnectTimeout time.Duration `json:"database-connect-timeout"`
21
+ DatabaseEncryptionKey string `json:"database-encryption-key"`
22
+ DatabaseURL string `json:"database-url"`
23
+ DeploydKeys []string `json:"deployd-keys"`
24
+ FrontendKeys []string `json:"frontend-keys"`
25
+ GRPC GRPC `json:"grpc"`
26
+ GoogleAllowedDomains []string `json:"google-allowed-domains"`
27
+ GoogleClientId string `json:"google-client-id"`
28
+ GoogleClusterProjects []string `json:"google-cluster-projects"`
29
+ ListenAddress string `json:"listen-address"`
30
+ LogFormat string `json:"log-format"`
31
+ LogLevel string `json:"log-level"`
32
+ LogLinkFormatter string `json:"log-link-formatter"`
33
+ MetricsPath string `json:"metrics-path"`
34
+ ProvisionKey string `json:"provision-key"`
35
+ NaisAPIAddress string `json:"nais -api-address "`
36
+ NaisAPIInsecureConnection bool `json:"nais-api-insecure-connection "`
37
37
}
38
38
39
39
const (
@@ -56,8 +56,8 @@ const (
56
56
LogLinkFormatter = "log-link-formatter"
57
57
MetricsPath = "metrics-path"
58
58
ProvisionKey = "provision-key"
59
- TeamsAPIKey = "teams -api-key "
60
- TeamsURL = "teams-url "
59
+ NaisAPIAddress = "nais -api-address "
60
+ NaisAPIInsecureConnection = "nais-api-insecure-connection "
61
61
)
62
62
63
63
// Bind environment variables provided by the NAIS platform
@@ -99,8 +99,8 @@ func Initialize() *Config {
99
99
flag .StringSlice (GoogleAllowedDomains , []string {}, "Allowed Google Domains" )
100
100
flag .StringSlice (GoogleClusterProjects , []string {}, "Mapping cluster to google project: cluster1=project1,cluster2=project2" )
101
101
102
- flag .String ( TeamsAPIKey , "" , "Teams API Key " )
103
- flag .String (TeamsURL , "http:// localhost:3000/query " , "Teams URL " )
102
+ flag .Bool ( NaisAPIInsecureConnection , false , "Insecure connection to API server " )
103
+ flag .String (NaisAPIAddress , "localhost:3001 " , "NAIS API target " )
104
104
105
105
return & Config {}
106
106
}
0 commit comments