mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Refactor config
This commit is contained in:
37
config/configuration.go
Normal file
37
config/configuration.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package config
|
||||
|
||||
type Configuration struct {
|
||||
Server ServerConfig
|
||||
OpenId OpenIDConfig
|
||||
Caps RDGCapsConfig
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
GatewayAddress string
|
||||
Port int
|
||||
CertFile string
|
||||
KeyFile string
|
||||
FarmHosts []string
|
||||
EnableOverride bool
|
||||
HostTemplate string
|
||||
}
|
||||
|
||||
type OpenIDConfig struct {
|
||||
ProviderUrl string
|
||||
ClientId string
|
||||
ClientSecret string
|
||||
CallbackHost string
|
||||
}
|
||||
|
||||
type RDGCapsConfig struct {
|
||||
SmartCardAuth bool
|
||||
TokenAuth bool
|
||||
IdleTimeout int
|
||||
RedirectAll bool
|
||||
DisableRedirect bool
|
||||
DisableClipboard bool
|
||||
DisablePrinter bool
|
||||
DisablePort bool
|
||||
DisablePnp bool
|
||||
DisableDrive bool
|
||||
}
|
||||
Reference in New Issue
Block a user