-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kots]: add proxy server configuration
- Loading branch information
Simon Emms
committed
Sep 7, 2022
1 parent
df9cbf1
commit 208853e
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: proxy-server # Name set in /install/installer/pkg/common/constants.go | ||
labels: | ||
app: gitpod | ||
component: gitpod-installer | ||
data: | ||
httpProxy: '{{repl (ConfigOption "proxy_server_http_proxy" | default (HTTPProxy)) }}' | ||
httpsProxy: '{{repl ConfigOption "proxy_server_https_proxy" | default (HTTPSProxy) }}' | ||
noProxy: '{{repl NoProxy }},{{repl ConfigOption "proxy_server_no_proxy" }}' # Merge the KOTS NO_PROXY so we don't lose the ability to talk to it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,6 +382,39 @@ spec: | |
Add the domain only (eg, `gitpod.io`). Separate multiple domains with spaces. | ||
- name: proxy_server | ||
title: Proxy server | ||
description: Route your access through a proxy server | ||
items: | ||
- name: proxy_server_custom_config_enabled | ||
title: Route through a proxy server | ||
type: bool | ||
default: "0" | ||
help_text: Configure proxy access to the Internet | ||
|
||
- name: proxy_server_http_proxy | ||
title: HTTP proxy | ||
type: text | ||
default: '{{repl HTTPProxy }}' | ||
when: '{{repl ConfigOptionEquals "proxy_server_custom_config_enabled" "1" }}' | ||
help_text: Configure HTTP proxy server to route all traffic through. This should be in the format "user:[email protected]:1234" | ||
|
||
- name: proxy_server_https_proxy | ||
title: HTTPS proxy | ||
type: text | ||
default: '{{repl HTTPSProxy }}' | ||
when: '{{repl ConfigOptionEquals "proxy_server_custom_config_enabled" "1" }}' | ||
help_text: Configure HTTPS proxy server to route all traffic through. This should be in the format "user:[email protected]:1234" | ||
|
||
- name: proxy_server_no_proxy | ||
title: No proxy | ||
type: text | ||
default: '{{repl NoProxy }}' | ||
when: '{{repl ConfigOptionEquals "proxy_server_custom_config_enabled" "1" }}' | ||
help_text: | | ||
Configure URLs that bypass the proxy. This should be a CSV in the format "domain1.com,domain2.com". This will always contain | ||
the default configuration. | ||
- name: advanced | ||
title: Advanced Options | ||
description: Here are advanced options that you should only make use of in coordination with us or when you know what you are doing. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters