mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 22:13:50 +02:00
Improve config
This commit is contained in:
parent
01345b9416
commit
097a2deca7
4 changed files with 34 additions and 27 deletions
|
@ -16,28 +16,27 @@ type ServerConfig struct {
|
|||
Port int
|
||||
CertFile string
|
||||
KeyFile string
|
||||
FarmHosts []string
|
||||
Hosts []string
|
||||
EnableOverride bool
|
||||
HostTemplate string
|
||||
}
|
||||
|
||||
type OpenIDConfig struct {
|
||||
ProviderUrl string
|
||||
ProviderUrl string
|
||||
ClientId string
|
||||
ClientSecret string
|
||||
}
|
||||
|
||||
type RDGCapsConfig struct {
|
||||
SmartCardAuth bool
|
||||
TokenAuth bool
|
||||
IdleTimeout int
|
||||
RedirectAll bool
|
||||
DisableRedirect bool
|
||||
DisableClipboard bool
|
||||
DisablePrinter bool
|
||||
DisablePort bool
|
||||
DisablePnp bool
|
||||
DisableDrive bool
|
||||
SmartCardAuth bool
|
||||
TokenAuth bool
|
||||
IdleTimeout int
|
||||
RedirectAll bool
|
||||
DisableRedirect bool
|
||||
EnableClipboard bool
|
||||
EnablePrinter bool
|
||||
EnablePort bool
|
||||
EnablePnp bool
|
||||
EnableDrive bool
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -64,4 +63,4 @@ func Load(configFile string) Configuration {
|
|||
}
|
||||
|
||||
return conf
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue