Skip to content

Commit

Permalink
Merge pull request #17 from Signalen/feat/feedback-settings
Browse files Browse the repository at this point in the history
Make ENVIRONMENT and FEEDBACK_ENV_FE_MAPPING configurable
  • Loading branch information
bartjkdp authored Jan 19, 2021
2 parents b99c0d4 + b872a6f commit 95851ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The backend Helm chart installs the Signalen API and the by default the followin
| `settings.secretKey` | The secret key of the backend | `change-to-something-secret` |
| `settings.allowedHosts` | Restrict the allowed hosts of the API | `*` |
| `settings.defaultPdokMunicipalities` | A (comma-seperated) list of [PDOK municipalities](https://www.pdok.nl/introductie/-/article/cbs-wijken-en-buurten) the API allows complaints for (e.g. `"Amsterdam,'s-Hertogenbosch"`) | `""` |
| `settings.environment` | The environment name. Can be acceptance or production. | `"production"` |
| `settings.organizationName` | The name of the organization | `"Signalen"` |
| `settings.defaultFromEmail` | The default from e-mail | `"webmaster@localhost"` |
| `settings.apiTransformSourceBasedOnReporter` | Transform the source of a complaint when a complaint comes from a particular e-mail domain | `false` |
Expand All @@ -41,6 +42,7 @@ The backend Helm chart installs the Signalen API and the by default the followin
| `settings.email.port` | The port of the SMTP server | `""` |
| `settings.email.useTLS` | Use TLS while connecting to the SMTP server | `false` |
| `settings.email.useSSL` | Use SSL while connecting to the SMTP server | `false` |
| `settings.feedbackEnvFeMapping` | The URL of the frontend | `https://meldingen.amsterdam.nl` |
| `settings.classificationService` | Use SSL while connecting to the SMTP server | `https://api.data.amsterdam.nl/signals_mltool` |
| `sigmax.enabled` | Enable the connection with Sigmax City Control | `false` |
| `sigmax.serverUrl` | The server URL of Sigmax | `` |
Expand Down
2 changes: 2 additions & 0 deletions backend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ data:
EMAIL_USE_SSL: {{ if .Values.settings.email.useSSL }}"True"{{ else }}"False"{{ end }}
ELASTICSEARCH_HOST: {{ .Values.settings.elasticsearch.host | quote }}
ELASTICSEARCH_INDEX: {{ .Values.settings.elasticsearch.index | quote }}
ENVIRONMENT: {{ .Values.settings.environment | quote }}
FEEDBACK_ENV_FE_MAPPING: {{ .Values.settings.feedbackEnvFeMapping | quote }}
JWKS_URL: {{ .Values.settings.jwksUrl | quote }}
ORGANIZATION_NAME: {{ .Values.settings.organizationName | quote }}
PUB_JWKS: {{ .Values.settings.pubJwks | quote }}
Expand Down
3 changes: 3 additions & 0 deletions backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ settings:
jwksUrl: ""
userIdField: "sub"

environment: "production"

organizationName: "Signalen"
defaultFromEmail: "webmaster@localhost"

Expand Down Expand Up @@ -90,6 +92,7 @@ settings:
useSSL: false

datapuntApiUrl: https://api.data.amsterdam.nl/
feedbackEnvFeMapping: https://meldingen.amsterdam.nl

classificationEndpoint: https://api.data.amsterdam.nl/signals_mltool

Expand Down

0 comments on commit 95851ba

Please sign in to comment.