Skip to content

Commit 62b7ca1

Browse files
zaunistnic-chen
andauthored
chore: update version to 2.8.2202 (#46)
* docs: update version to 2.8.2202 Co-authored-by: JunXu Chen <[email protected]>
1 parent 3e3ef69 commit 62b7ca1

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

chart/api7-dashboard/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Images for api7-dashboard is private and never should be uploaded to public imag
2828

2929
```sh
3030
helm install api7-dashboard . -n api7 \
31-
--set image.registry=apisixacr.azurecr.cn \
31+
--set image.registry=localhost:5000 \
3232
--set image.repository=api7-dashboard \
3333
--set service.type=NodePort \
34-
--set image.tag=2.7.2112
34+
--set image.tag=2.8.2202
3535
```
3636

3737
When you execute the above command, change the registry, repository and tag according to your situation.

chart/api7-dashboard/templates/configmap.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ data:
127127
{{ .Values.config.log.access_log.file_path }} # supports relative path, absolute path, standard output
128128
# such as: logs/access.log, /tmp/logs/access.log, /dev/stdout, /dev/stderr
129129
# log example: 2020-12-09T16:38:09.039+0800 INFO filter/logging.go:46 /apisix/admin/routes/r1 {"status": 401, "host": "127.0.0.1:9000", "query": "asdfsafd=adf&a=a", "requestId": "3d50ecb8-758c-46d1-af5b-cd9d1c820156", "latency": 0, "remoteIP": "127.0.0.1", "method": "PUT", "errs": []}
130+
security:
131+
access_control_allow_origin: {{ .Values.config.security.access_control_allow_origin }}
132+
access_control_allow_credentials: {{ .Values.config.security.access_control_allow_credentials }}
133+
access_control_allow_headers: {{ .Values.config.security.access_control_allow_headers }}
134+
access_control-allow_methods: {{ .Values.config.security.access_control-allow_methods }}
135+
x_frame_options: {{ .Values.config.security.x_frame_options }}
136+
content_security_policy: {{ .Values.config.security.content_security_policy }}
137+
130138
authentication:
131139
secret:
132140
{{ .Values.config.authentication.secret }} # secret for jwt token generation.

chart/api7-dashboard/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,10 @@ config:
151151
file_path: "/dev/stderr"
152152
access_log:
153153
file_path: "/dev/stdout"
154-
154+
security:
155+
access_control_allow_origin: "" # cors setting, need update it before deploy on k8s
156+
access_control_allow_credentials: false
157+
access_control_allow_headers: ""
158+
access_control-allow_methods: "*"
159+
x_frame_options: "deny"
160+
content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"

0 commit comments

Comments
 (0)