Skip to content

Commit

Permalink
Domain to domains
Browse files Browse the repository at this point in the history
An array should make it possible to obtain several security certificates
  • Loading branch information
rubenvdlinde committed Dec 10, 2019
1 parent 3c801ea commit 06075d0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ORGANIZATION_UNIT_NAME=Common-Ground
##################################################

APP_DOMAIN=conduction.nl
APP_DOMAINS=["conduction.nl","zaakonline.nl","larping.eu","common-ground.dev","trouwplanner.online","huwelijksplanner.online"]
APP_DEMO=pc.zaakonline.nl
APP_REPRO=https://github.com/ConductionNL/Proto-component-commonground

Expand Down
11 changes: 11 additions & 0 deletions api/config/packages/twig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
parameters:
env(APP_DOMAINS): '[]'
# Organisation stuff
env(ORGANIZATION_NAME): ''
env(ORGANIZATION_EMAIL_ADDRESS): ''
env(ORGANIZATION_COUNTRY_NAME): ''
env(ORGANIZATION_STATE): ''
env(ORGANIZATION_LOCALITY): ''
env(ORGANIZATION_UNIT_NAME): ''

twig:
default_path: '%kernel.project_dir%/templates'
debug: '%kernel.debug%'
Expand All @@ -22,6 +32,7 @@ twig:
app_env: '%env(APP_ENV)%'
app_debug: '%env(APP_DEBUG)%'
app_domain: '%env(APP_DOMAIN)%'
app_domains: '%env(json:APP_DOMAINS)%'
app_demo: '%env(APP_DEMO)%'
app_repro: '%env(APP_REPRO)%'
app_description: '%env(APP_DESCRIPTION)%'
Expand Down
7 changes: 7 additions & 0 deletions api/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ settings:
description: ''Naast deze JSON rest API is er ook een [graphql](/graphql) interface beschikbaar.''
repro: 'https://github.com/ConductionNL/Proto-component-commonground'
domain: conduction.nl
domains:
- conduction.nl
- zaakonline.nl
- larping.eu
- common-ground.dev
- trouwplanner.online
- huwelijksplanner.online
organisationName: Conduction
email: [email protected]
country: Netherlands
Expand Down
4 changes: 4 additions & 0 deletions api/templates/helm/Values.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ settings:
description: '{{ app_description }}'
repro: '{{ app_repro }}'
domain: {{ app_domain }}
domains:
{% for domain in app_domains %}
- {{ domain }}
{% endfor %}
organisationName: {{ organization_name }}
email: {{ organization_email }}
country: {{ organization_country }}
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
- APP_NAME=${APP_NAME}
- APP_TITLE=${APP_TITLE}
- APP_DOMAIN=${APP_DOMAIN}
- APP_DOMAINS=${APP_DOMAINS}
- APP_DEMO=${APP_DEMO}
- APP_REPRO=${APP_REPRO}
- APP_DESCRIPTION=${APP_DESCRIPTION}
Expand Down

0 comments on commit 06075d0

Please sign in to comment.