Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnOptionsChange ¶
func OnOptionsChange(oldO, newO interface{}) bool
Types ¶
type GatewayOptions ¶
type GatewayOptions struct { DefaultRegion string `help:"Use default region while region not specific in api request"` CookieDomain string `help:"specific yunionauth cookie domain" default:""` Timeout int `help:"Timeout in seconds, default is 300" default:"300"` DisableModuleApiVersion bool `help:"Disable each modules default api version" default:"false"` EnableTotp bool `help:"Enable two-factor authentication" default:"false"` TotpIssuer string `help:"TOTP issuer" default:"Cloudpods"` SsoRedirectUrl string `help:"SSO idp redirect URL"` SsoAuthCallbackUrl string `help:"SSO idp auth callback URL"` SsoLinkCallbackUrl string `help:"SSO idp link user callback URL"` LoginCallbackParam string `help:"Redirect callback parameter name after successful login"` SsoUserNotFoundCallbackUrl string `help:"failure callback URL when SSO idp link user not found"` ReturnFullDomainList bool `default:"true" help:"return domain list for get_regions API"` SessionLevelAuthCookie bool `default:"false" help:"YunionAuth cookie is valid during a browser session"` // 上报非敏感基础信息,帮助软件更加完善 DisableReporting bool `default:"false" help:"Reporting data every 24 hours, report data incloud version, os, platform and usages"` // 启用后端服务反向代理网关 EnableBackendServiceProxy bool `default:"false" help:"Proxy API request to backend services"` common_options.CommonOptions `"request_worker_count->default":"32"` EnableSyslogWebservice bool `help:"enable syslog webservice"` SyslogWebserviceUsername string `help:"syslog web service user name"` SyslogWebservicePassword string `help:"syslog web service password"` }
var (
Options *GatewayOptions
)
Click to show internal directories.
Click to hide internal directories.