File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,17 @@ const (
38
38
)
39
39
40
40
type WebServerConfig struct {
41
- ID string
41
+ ID string
42
+
43
+ // List of listener addresses (e.g., ":8080", "localhost:8081"). Should be localhost for HTTP.
42
44
Listeners []string `yaml:"listen"`
43
45
}
44
46
45
47
type ListenerConfig struct {
46
48
Type ListenerType
47
- Address string `yaml:",omitempty"`
48
- WebServer string `yaml:"web_server,omitempty"`
49
- Path string `yaml:",omitempty"`
49
+ Address string `yaml:",omitempty"`
50
+ WebServer string `yaml:"web_server,omitempty"`
51
+ Path string `yaml:",omitempty"`
50
52
}
51
53
52
54
type DialerConfig struct {
@@ -69,12 +71,12 @@ type WebConfig struct {
69
71
}
70
72
71
73
type Config struct {
72
- Web WebConfig
73
- Services []ServiceConfig
74
+ Web WebConfig
75
+ Services []ServiceConfig
74
76
75
77
// Deprecated: `keys` exists for backward compatibility. Prefer to configure
76
78
// using the newer `services` format.
77
- Keys []LegacyKeyServiceConfig
79
+ Keys []LegacyKeyServiceConfig
78
80
}
79
81
80
82
// Validate checks that the config is valid.
You can’t perform that action at this time.
0 commit comments