Skip to content

Commit

Permalink
Merge pull request #1104 from open-dynaMIX/update_dms
Browse files Browse the repository at this point in the history
chore: update DMS and also enable error mailing
  • Loading branch information
open-dynaMIX authored Jul 1, 2024
2 parents 2e59653 + 547a457 commit aa88f08
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 189 deletions.
11 changes: 11 additions & 0 deletions .envs/.production.example/.dms
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ ALLOWED_HOSTS=yourdomain.tld,www.yourdomain.tdl
DATABASE_PASSWORD=alsoverysecure
OIDC_USERINFO_ENDPOINT=https://yourdomain.tld/auth/realms/mysagw/protocol/openid-connect/userinfo
ADMINS=Test Example <[email protected]>,Test2 <[email protected]>

# Mailing
EMAIL_HOST=mail
EMAIL_PORT=25
[email protected]
EMAIL_HOST_PASSWORD=verysecure
EMAIL_USE_TLS=true
MAILING_FROM_NAME=mySAGW
[email protected]
MAILING_SENDER="mySAGW <[email protected]>"
ENABLE_ADMIN_EMAIL_LOGGING=true
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:
- minio

dms:
image: ghcr.io/adfinis/document-merge-service:6.5.2
image: ghcr.io/adfinis/document-merge-service:6.6.1
depends_on:
- db
volumes:
Expand Down
191 changes: 3 additions & 188 deletions next_deployment.md
Original file line number Diff line number Diff line change
@@ -1,192 +1,7 @@
# Manual steps for next deployment


## Keycloak profile setup
## Enable email logging for DMS

### Realm settings -> User profile

Add following JSON into the JSON editor:

```json
{
"attributes": [
{
"name": "username",
"displayName": "${username}",
"validations": {
"length": {
"min": 3,
"max": 255
},
"username-prohibited-characters": {},
"up-username-not-idn-homograph": {}
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
},
{
"name": "email",
"displayName": "${email}",
"validations": {
"email": {},
"length": {
"max": 255
}
},
"required": {
"roles": [
"user"
]
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
},
{
"name": "salutation",
"displayName": "Salutation",
"validations": {
"options": {
"options": [
"Mrs.",
"Mr.",
"neutral"
]
}
},
"annotations": {
"inputType": "select"
},
"required": {
"roles": [
"admin",
"user"
]
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
},
{
"name": "firstName",
"displayName": "${firstName}",
"validations": {
"length": {
"max": 255
},
"person-name-prohibited-characters": {}
},
"annotations": {},
"required": {
"roles": [
"admin",
"user"
]
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
},
{
"name": "title",
"displayName": "Title",
"validations": {
"options": {
"options": [
"Dr.",
"Prof.",
"Prof. Dr.",
"PD Dr."
]
}
},
"annotations": {
"inputType": "select"
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
},
{
"name": "lastName",
"displayName": "${lastName}",
"validations": {
"length": {
"max": 255
},
"person-name-prohibited-characters": {}
},
"annotations": {},
"required": {
"roles": [
"admin",
"user"
]
},
"permissions": {
"view": [
"admin",
"user"
],
"edit": [
"admin",
"user"
]
},
"multivalued": false
}
],
"groups": [
{
"name": "user-metadata",
"displayHeader": "User metadata",
"displayDescription": "Attributes, which refer to user metadata"
}
]
}
```

### Clients -> mysagw -> Client scopes -> mysagw-dedicated

Add mappers for `salutation` and `title`.
Configure email settings in the DMS env file according to the new settings added to
`.envs/.production.example/.dms`.

0 comments on commit aa88f08

Please sign in to comment.