Skip to content

Commit

Permalink
Move demo into own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Oct 28, 2021
1 parent 3922df4 commit f2a4c88
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# Docker
```bash
# Run the following commands to build a docker image
./gradlew build
docker build -t repository/tag .

# Map a custom application.yml into /config and a news folder to /news. For example:
docker run -p 8080:8080 -v path/to/news:/news -v path/to/src/main/resources:/config repository/tag
# Newslist gets executed at /usr/src/newslist/news.jar
# Map a custom application.yml into /usr/src/newslist/config. For example:
docker run -p 8080:8080 -v $(pwd)/demo/:/usr/src/newslist/config/ repository/tag
```
23 changes: 23 additions & 0 deletions demo/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
spring:
security:
saml2:
relyingparty:
registration:
one:
signing.credentials:
- private-key-location: file:/usr/src/newslist/config/credentials/rp-private.key
certificate-location: file:/usr/src/newslist/config/credentials/rp-certificate.crt
identityprovider:
metadata-uri: https://simplesaml-for-spring-saml.apps.pcfone.io/saml2/idp/metadata.php

news:
# path to csv files containing (key, message) pairs
csv-path: /usr/src/newslist/config/news
# One of http://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html
csv-format: Default
# The saml2 attribute used as key
saml2-key: uid

logging.level:
org.springframework.security: TRACE
edu.kit: DEBUG
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ spring:
saml2:
relyingparty:
registration:
one:
signing.credentials:
- private-key-location: classpath:credentials/rp-private.key
certificate-location: classpath:credentials/rp-certificate.crt
identityprovider:
metadata-uri: https://simplesaml-for-spring-saml.apps.pcfone.io/saml2/idp/metadata.php
# somerelayingpartyname: # This decides on the callback url!
# signing.credentials:
# - private-key-location: # file:path/to/private.key
# certificate-location: # file:path/to/certificate.crt
# identityprovider:
# metadata-uri: # https://../metadata.php

news:
# path to csv files containing (key, message) pairs
csv-path: news/
csv-path: # Path to the csv files
# One of http://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html
csv-format: Default
# The saml2 attribute used as key
saml2-key: uid
saml2-key: # the saml2 key to use as key in csv files

logging.level:
org.springframework.security: TRACE
edu.kit: DEBUG
org.springframework.security: WARN
edu.kit: WARN

0 comments on commit f2a4c88

Please sign in to comment.