Skip to content

Commit

Permalink
feat(#3): login url as separate parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumpy-Squirrel committed Jan 30, 2024
1 parent 447d019 commit 906f509
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/eurofurence-registration-system/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: eurofurence-registration-system
version: 0.0.22
version: 0.0.23
description: A helm chart that can deploy the Eurofurence Registration System.
type: application
home: https://github.com/eurofurence/reg-helm-chart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
web:
server_url: '{{ $public_base_url }}/'
context_path: '{{ .Values.system.components.regsys_classic.context_path }}'
regsys_public_url: '{{ $public_base_url }}/app/register'
regsys_public_url: '{{ .Values.system.public_login_url }}'
{{- range (index .Values.system.registration_languages 0) }}
{{- range $key, $value := . }}
system_language: '{{ $key }}'
Expand Down Expand Up @@ -64,7 +64,7 @@ data:
# configuration file for attendee-service
service:
name: 'Attendee Service'
regsys_public_url: '{{ $public_base_url }}/app/register'
regsys_public_url: '{{ .Values.system.public_login_url }}'
{{- if .Values.system.components.payment_service.enable }}
payment_service: '{{ .Values.system.components.payment_service.local_base_url }}'
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tests:
system:
public_base_url_domain: https://my.domain.example.com
public_base_context: 'hello/you'
public_login_url: https://identity.example.com/
registration_languages:
- 'en-US':
en-US: English
Expand Down Expand Up @@ -141,7 +142,7 @@ tests:
web:
server_url: 'https://my.domain.example.com/hello/you/'
context_path: 'regsys'
regsys_public_url: 'https://my.domain.example.com/hello/you/app/register'
regsys_public_url: 'https://identity.example.com/'
system_language: 'en-US'
downstream:
auth_service: 'http://auth-service:8080'
Expand Down Expand Up @@ -220,7 +221,7 @@ tests:
# configuration file for attendee-service
service:
name: 'Attendee Service'
regsys_public_url: 'https://my.domain.example.com/hello/you/app/register'
regsys_public_url: 'https://identity.example.com/'
payment_service: 'http://payment-service:8080'
mail_service: 'http://mail-service:8080'
auth_service: 'http://auth-service:8080'
Expand Down
1 change: 1 addition & 0 deletions charts/eurofurence-registration-system/values-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ingress:
system:
public_base_url_domain: https://my.domain.example.com
public_base_context: 'testing-instance'
public_login_url: https://my.identity.provider.example.com/

registration_languages:
# the first listed locale is the system default
Expand Down
6 changes: 6 additions & 0 deletions charts/eurofurence-registration-system/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@
"default": "",
"example": "this/comes/after/the/domain"
},
"public_login_url": {
"type": "string",
"description": "The public url to show in emails as the user entry point, e.g. a login page",
"pattern": "^https?://.*$",
"example": "https://identity.example.com/"
},
"logging": {
"type": "object",
"additionalProperties": false,
Expand Down

0 comments on commit 906f509

Please sign in to comment.