+6
knotserver/config/config.go
+6
knotserver/config/config.go
···
24
Dev bool `env:"DEV, default=false"`
25
}
26
27
+
type Owner struct {
28
+
Did string `env:"DID, required"`
29
+
AppPassword string `env:"APP_PASSWORD, required"`
30
+
}
31
+
32
type Config struct {
33
Repo Repo `env:",prefix=KNOT_REPO_"`
34
Server Server `env:",prefix=KNOT_SERVER_"`
35
+
Owner Owner `env:",prefix=KNOT_OWNER_"`
36
AppViewEndpoint string `env:"APPVIEW_ENDPOINT, default=https://tangled.sh"`
37
}
38