blob: 5aebbb0d669440a4d43cc2eda8b18eaabee04a93 [file] [log] [blame]
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +04001apiVersion: dodo.cloud.dodo.cloud/v1
2kind: ResourceRenderer
giolekva01b3d3b2021-11-09 17:48:28 +04003metadata:
Giorgi Lekveishvili38496bb2023-06-13 18:56:39 +04004 name: config-renderer
5 namespace: {{ .Release.Namespace }}
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +04006spec:
7 secretName: {{ .Values.oauth2.secretName }}
8 resourceTemplate: |
9 apiVersion: v1
10 kind: ConfigMap
11 metadata:
Giorgi Lekveishvili0c6b3242024-03-14 15:31:08 +040012 name: {{ .Values.configName }}
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040013 namespace: {{ .Release.Namespace }}
14 data:
15 oauth2-proxy.cfg: |
16 http_address = "0.0.0.0:8080"
giolekva01b3d3b2021-11-09 17:48:28 +040017
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040018 reverse_proxy = true
giolekva01b3d3b2021-11-09 17:48:28 +040019
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040020 ## the OAuth Redirect URL.
21 # defaults to the "https://" + requested host header + "/oauth2/callback"
22 # redirect_url = "http://pihole.pcloud/oauth2/callback"
giolekva01b3d3b2021-11-09 17:48:28 +040023
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040024 upstreams = [
25 "http://pihole-web.{{ .Release.Namespace}}.svc"
26 ]
giolekva01b3d3b2021-11-09 17:48:28 +040027
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040028 email_domains = [
29 "*"
30 ]
giolekva01b3d3b2021-11-09 17:48:28 +040031
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040032 standard_logging = false
33 request_logging = false
34 auth_logging = false
giolekva01b3d3b2021-11-09 17:48:28 +040035
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040036 pass_basic_auth = true
37 pass_user_headers = true
38 pass_host_header = true
giolekva01b3d3b2021-11-09 17:48:28 +040039
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040040 ## The OAuth Client ID, Secret
Giorgi Lekveishvili38496bb2023-06-13 18:56:39 +040041 client_id = "{{`{{ .client_id }}`}}"
42 client_secret = "{{`{{ .client_secret }}`}}"
giolekva01b3d3b2021-11-09 17:48:28 +040043
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040044 ## Pass OAuth Access token to upstream via "X-Forwarded-Access-Token"
45 pass_access_token = false
giolekva01b3d3b2021-11-09 17:48:28 +040046
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040047 cookie_name = "_oauth2_proxy_pihole"
48 cookie_secret = "{{ .Values.oauth2.cookieSecret }}"
49 cookie_domains = "{{ .Values.domain }}"
50 cookie_expire = "168h"
51 cookie_refresh = "100h"
52 cookie_secure = true
53 cookie_httponly = true
giolekva01b3d3b2021-11-09 17:48:28 +040054
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040055 provider = "oidc"
Giorgi Lekveishvili0c6b3242024-03-14 15:31:08 +040056 oidc_issuer_url = "{{ .Values.oauth2.issuer }}"
Giorgi Lekveishvili1ff37fb2023-06-13 18:27:24 +040057 provider_display_name = "PCloud"
58 profile_url = "{{ .Values.profileUrl }}"