Skip to content

Commit

Permalink
Add comment about using localhost listeners for the web config.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jan 23, 2025
1 parent b12e0bb commit 354d8a8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cmd/outline-ss-server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ const (
)

type WebServerConfig struct {
ID string
ID string

// List of listener addresses (e.g., ":8080", "localhost:8081"). Should be localhost for HTTP.
Listeners []string `yaml:"listen"`
}

type ListenerConfig struct {
Type ListenerType
Address string `yaml:",omitempty"`
WebServer string `yaml:"web_server,omitempty"`
Path string `yaml:",omitempty"`
Address string `yaml:",omitempty"`
WebServer string `yaml:"web_server,omitempty"`
Path string `yaml:",omitempty"`
}

type DialerConfig struct {
Expand All @@ -69,12 +71,12 @@ type WebConfig struct {
}

type Config struct {
Web WebConfig
Services []ServiceConfig
Web WebConfig
Services []ServiceConfig

// Deprecated: `keys` exists for backward compatibility. Prefer to configure
// using the newer `services` format.
Keys []LegacyKeyServiceConfig
Keys []LegacyKeyServiceConfig
}

// Validate checks that the config is valid.
Expand Down

0 comments on commit 354d8a8

Please sign in to comment.