Switch everything to use the OHIF realm; we can't seed the master realm, because it already exists.
This commit is contained in:
1 parent
b1ef87cfce
commit
060882d93a
5 files changed
+793
-849
No files matched your search
@@ -29,30 +29,3 @@ https://github.com/maxmantz/redux-oidc
|
||||
|
||||
- Set admin user/pass in `docker-compose`
|
||||
- What are realms?
|
||||
|
||||
## Useful Commands
|
||||
|
||||
List containers: `docker ps`
|
||||
|
||||
Stop running all containers:
|
||||
|
||||
- Win: `docker ps -a -q | ForEach { docker stop $_ }`
|
||||
- Linux: `docker stop $(docker ps -a -q)`
|
||||
|
||||
Interact w/ running container:
|
||||
|
||||
`docker exec -it CONTAINER_NAME bash`
|
||||
|
||||
To delete containers not in use: `docker prune`
|
||||
|
||||
Test nginx.conf:
|
||||
|
||||
`docker run --rm -t -a stdout --name my-openresty -v $PWD/config/:/usr/local/openresty/nginx/conf/:ro openresty/openresty:alpine-fat openresty -c /usr/local/openresty/nginx/conf/nginx.conf -t`
|
||||
|
||||
## Resources
|
||||
|
||||
- http://www.staticshin.com/programming/definitely-an-open-resty-guide/#access_by_lua
|
||||
|
||||
## TODO
|
||||
|
||||
- Add build step for `authproxy` to docker-compose script
|
||||
@@ -76,10 +76,10 @@ http {
|
||||
access_by_lua_block {
|
||||
local opts = {
|
||||
redirect_uri = "http://127.0.0.1/pacs-admin/admin",
|
||||
discovery = "http://127.0.0.1/auth/realms/master/.well-known/openid-configuration",
|
||||
discovery = "http://127.0.0.1/auth/realms/ohif/.well-known/openid-configuration",
|
||||
token_endpoint_auth_method = "client_secret_basic",
|
||||
client_id = "pacs",
|
||||
client_secret = "a726f5b1-5abd-42c9-b7b1-53a1a17d2ad2",
|
||||
client_secret = "66279641-eba6-47f5-9fdb-70c4ac74d548",
|
||||
client_jwt_assertion_expires_in = 60 * 60,
|
||||
ssl_verify = "no",
|
||||
scope = "openid email profile",
|
||||
@@ -123,7 +123,7 @@ http {
|
||||
location /pacs/ {
|
||||
access_by_lua_block {
|
||||
local opts = {
|
||||
discovery = "http://127.0.0.1/auth/realms/master/.well-known/openid-configuration",
|
||||
discovery = "http://127.0.0.1/auth/realms/ohif/.well-known/openid-configuration",
|
||||
}
|
||||
|
||||
-- call bearer_jwt_verify for OAuth 2.0 JWT validation
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -28,7 +28,7 @@ FROM node:11.2.0-slim as builder
|
||||
RUN mkdir /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
ENV REACT_APP_CONFIG=config/example_openidc.js
|
||||
ENV REACT_APP_CONFIG=config/docker_openresty-orthanc-keycloak.js
|
||||
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
Reference in new issue
Block a user