Skip to content

Commit

Permalink
switch to permissions-ui images on minimal setup
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Jun 25, 2024
1 parent 8b58f8d commit a863343
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 22 deletions.
10 changes: 5 additions & 5 deletions minimal-setup/keycloak/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: "3"
services:

nginx:
image: orthancteam/orthanc-nginx:24.5.1
image: orthancteam/orthanc-nginx:permissions-ui
depends_on: [orthanc, orthanc-auth-service, keycloak]
restart: unless-stopped
ports: ["80:80"]
Expand All @@ -25,8 +25,8 @@ services:

orthanc:
# to use OHIF-plugin: use the master-unstable image
# image: orthancteam/orthanc-pre-release:master-unstable
image: orthancteam/orthanc:24.5.1
image: orthancteam/orthanc-pre-release:permissions-ui
# image: orthancteam/orthanc:24.5.1
volumes:
- orthanc-storage:/var/lib/orthanc/db
depends_on: [orthanc-db]
Expand Down Expand Up @@ -92,7 +92,7 @@ services:
}
orthanc-auth-service:
image: orthancteam/orthanc-auth-service:24.5.1
image: orthancteam/orthanc-auth-service:permissions-ui
# always disable port mapping in production !!!
# ports: ["8000:8000"]
# permissions can be customized in the permissions.json file
Expand Down Expand Up @@ -132,7 +132,7 @@ services:


keycloak:
image: orthancteam/orthanc-keycloak:24.5.1
image: orthancteam/orthanc-keycloak:permissions-ui
depends_on: [keycloak-db]
restart: unless-stopped
# healthcheck:
Expand Down
52 changes: 35 additions & 17 deletions minimal-setup/keycloak/permissions.jsonc
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
// "SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]>"
// SPDX-License-Identifier: CC0-1.0
{
"roles" : {
"admin-role": {
"permissions": ["all", "admin-permissions"],
"authorized_labels": ["*"]
},
"doctor-role": {
"permissions":["view", "download", "share", "send"],
"authorized_labels": ["*"]
},
"external-role": {
"permissions":["view", "download"],
"authorized_labels": ["external"]
}
}
// "SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]>"
// SPDX-License-Identifier: CC0-1.0
{
"roles": {
"admin-role": {
"authorized-labels": [
"*"
],
"permissions": [
"all",
"admin-permissions"
]
},
"doctor-role": {
"authorized-labels": [
"*"
],
"permissions": [
"view",
"download",
"share",
"send"
]
},
"external-role": {
"authorized-labels": [
"external"
],
"permissions": [
"view",
"download"
]
}
},
"available-labels": []
}

0 comments on commit a863343

Please sign in to comment.