Skip to content

Commit

Permalink
Merge pull request #175 from bjwswang/main
Browse files Browse the repository at this point in the history
configure bff-server's session.cookie.domain
  • Loading branch information
bjwswang authored Mar 6, 2024
2 parents 9412d68 + ff5dd01 commit 35b096d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/u4a-component/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.4
version: 0.2.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ data:
httpOnly: true
path: /
# 如果有组件是部署在其他子域名下的,则需要设置 domain 为根域名,这样才能共享 session
# domain: .172.22.96.136.nip.io
domain: {{ .Values.bffServer.session.cookie.domain }}
# redis store 配置,详见 https://github.com/tj/connect-redis#options
redisStore:
prefix: 'sess:bff:'
Expand Down
4 changes: 4 additions & 0 deletions charts/u4a-component/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ bffServer:
enabled: true
image: kubebb/bff-server:v0.2.0-20231204
sessionImage: redis:5.0.1-alpine3.8
# Configurations abount session
session:
cookie:
domain: .<replaced-ingress-nginx-ip>.nip.io
host: *bffHost
connectorId: k8scrd
clientId: *clientId
Expand Down

0 comments on commit 35b096d

Please sign in to comment.