Remove Env tags from Cookie and Session Options
This commit is contained in:
		
							parent
							
								
									189ed4de8f
								
							
						
					
					
						commit
						c3f9cbeb3d
					
				|  | @ -4,13 +4,13 @@ import "time" | ||||||
| 
 | 
 | ||||||
| // CookieOptions contains configuration options relating to Cookie configuration
 | // CookieOptions contains configuration options relating to Cookie configuration
 | ||||||
| type CookieOptions struct { | type CookieOptions struct { | ||||||
| 	Name     string        `flag:"cookie-name" cfg:"cookie_name" env:"OAUTH2_PROXY_COOKIE_NAME"` | 	Name     string        `flag:"cookie-name" cfg:"cookie_name"` | ||||||
| 	Secret   string        `flag:"cookie-secret" cfg:"cookie_secret" env:"OAUTH2_PROXY_COOKIE_SECRET"` | 	Secret   string        `flag:"cookie-secret" cfg:"cookie_secret"` | ||||||
| 	Domains  []string      `flag:"cookie-domain" cfg:"cookie_domain" env:"OAUTH2_PROXY_COOKIE_DOMAIN"` | 	Domains  []string      `flag:"cookie-domain" cfg:"cookie_domain"` | ||||||
| 	Path     string        `flag:"cookie-path" cfg:"cookie_path" env:"OAUTH2_PROXY_COOKIE_PATH"` | 	Path     string        `flag:"cookie-path" cfg:"cookie_path"` | ||||||
| 	Expire   time.Duration `flag:"cookie-expire" cfg:"cookie_expire" env:"OAUTH2_PROXY_COOKIE_EXPIRE"` | 	Expire   time.Duration `flag:"cookie-expire" cfg:"cookie_expire"` | ||||||
| 	Refresh  time.Duration `flag:"cookie-refresh" cfg:"cookie_refresh" env:"OAUTH2_PROXY_COOKIE_REFRESH"` | 	Refresh  time.Duration `flag:"cookie-refresh" cfg:"cookie_refresh"` | ||||||
| 	Secure   bool          `flag:"cookie-secure" cfg:"cookie_secure" env:"OAUTH2_PROXY_COOKIE_SECURE"` | 	Secure   bool          `flag:"cookie-secure" cfg:"cookie_secure"` | ||||||
| 	HTTPOnly bool          `flag:"cookie-httponly" cfg:"cookie_httponly" env:"OAUTH2_PROXY_COOKIE_HTTPONLY"` | 	HTTPOnly bool          `flag:"cookie-httponly" cfg:"cookie_httponly"` | ||||||
| 	SameSite string        `flag:"cookie-samesite" cfg:"cookie_samesite" env:"OAUTH2_PROXY_COOKIE_SAMESITE"` | 	SameSite string        `flag:"cookie-samesite" cfg:"cookie_samesite"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ import "github.com/oauth2-proxy/oauth2-proxy/pkg/encryption" | ||||||
| 
 | 
 | ||||||
| // SessionOptions contains configuration options for the SessionStore providers.
 | // SessionOptions contains configuration options for the SessionStore providers.
 | ||||||
| type SessionOptions struct { | type SessionOptions struct { | ||||||
| 	Type   string             `flag:"session-store-type" cfg:"session_store_type" env:"OAUTH2_PROXY_SESSION_STORE_TYPE"` | 	Type   string             `flag:"session-store-type" cfg:"session_store_type"` | ||||||
| 	Cipher *encryption.Cipher `cfg:",internal"` | 	Cipher *encryption.Cipher `cfg:",internal"` | ||||||
| 	Redis  RedisStoreOptions  `cfg:",squash"` | 	Redis  RedisStoreOptions  `cfg:",squash"` | ||||||
| } | } | ||||||
|  | @ -19,12 +19,12 @@ var RedisSessionStoreType = "redis" | ||||||
| 
 | 
 | ||||||
| // RedisStoreOptions contains configuration options for the RedisSessionStore.
 | // RedisStoreOptions contains configuration options for the RedisSessionStore.
 | ||||||
| type RedisStoreOptions struct { | type RedisStoreOptions struct { | ||||||
| 	ConnectionURL          string   `flag:"redis-connection-url" cfg:"redis_connection_url" env:"OAUTH2_PROXY_REDIS_CONNECTION_URL"` | 	ConnectionURL          string   `flag:"redis-connection-url" cfg:"redis_connection_url"` | ||||||
| 	UseSentinel            bool     `flag:"redis-use-sentinel" cfg:"redis_use_sentinel" env:"OAUTH2_PROXY_REDIS_USE_SENTINEL"` | 	UseSentinel            bool     `flag:"redis-use-sentinel" cfg:"redis_use_sentinel"` | ||||||
| 	SentinelMasterName     string   `flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name" env:"OAUTH2_PROXY_REDIS_SENTINEL_MASTER_NAME"` | 	SentinelMasterName     string   `flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name"` | ||||||
| 	SentinelConnectionURLs []string `flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls" env:"OAUTH2_PROXY_REDIS_SENTINEL_CONNECTION_URLS"` | 	SentinelConnectionURLs []string `flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls"` | ||||||
| 	UseCluster             bool     `flag:"redis-use-cluster" cfg:"redis_use_cluster" env:"OAUTH2_PROXY_REDIS_USE_CLUSTER"` | 	UseCluster             bool     `flag:"redis-use-cluster" cfg:"redis_use_cluster"` | ||||||
| 	ClusterConnectionURLs  []string `flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls" env:"OAUTH2_PROXY_REDIS_CLUSTER_CONNECTION_URLS"` | 	ClusterConnectionURLs  []string `flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls"` | ||||||
| 	CAPath                 string   `flag:"redis-ca-path" cfg:"redis_ca_path" env:"OAUTH2_PROXY_REDIS_CA_PATH"` | 	CAPath                 string   `flag:"redis-ca-path" cfg:"redis_ca_path"` | ||||||
| 	InsecureSkipTLSVerify  bool     `flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify" env:"OAUTH2_PROXY_REDIS_INSECURE_SKIP_TLS_VERIFY"` | 	InsecureSkipTLSVerify  bool     `flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify"` | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue