Skip to content

Commit

Permalink
Add ability to configure IDP internal port so the demo can use https
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed May 1, 2024
1 parent be719b2 commit 35a61f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Environment variables:
* `IDP_HOST=http://localhost:9080`
* `SP_LOGIN=http://localhost:8080/login/saml2/sso/pass`

Separately there is a non-container environment variable `IDP_INTERNAL_PORT` which is used to set the internal port on the IDP container which 9080 maps to.
The default is 8080. This can be used to make 9080 support https by setting it to 4443 in the docker compose environment. One way to do this is by adding
`IDP_INTERNAL_PORT=4443` to the docker compose command. Note that `-e` should not be used because it is for container environment variables.

### [`pass-core`](https://github.com/eclipse-pass/pass-core)

Repository: https://github.com/eclipse-pass/pass-core
Expand Down
4 changes: 1 addition & 3 deletions eclipse-pass.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ services:
- JETTY_BROWSER_SSL_KEYSTORE_PASSWORD=password
- JETTY_BACKCHANNEL_SSL_KEYSTORE_PASSWORD=password
ports:
- 9080:8080
expose:
- "4443"
- 9080:${IDP_INTERNAL_PORT-8080}
env_file:
- .env
- .eclipse-pass.local_env
Expand Down

0 comments on commit 35a61f5

Please sign in to comment.