Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some configuration changes #155

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 6 additions & 105 deletions src/main/resources/application-metrics.yml
Original file line number Diff line number Diff line change
@@ -1,105 +1,11 @@
# General configuration of the Mobile Access Gateway
# Specific configuration for the metrics endpoint

mag:
homeCommunityId: urn:oid:1.2.3.5
baseurl: http://localhost
documentSourceId: urn:oid:1.3.6.1.4.1.12559.11.13.2.5
client-ssl:
enabled: true
key-store:
path: keystore.jks
password: a1b2c3
truststore:
path: example-client-certificate.jks
password: a1b2c3
cert-alias: gateway
xds:
https: true
iti-18:
url: ehealthsuisse.ihe-europe.net:10443/xdstools7/sim/default__ahdis/reg/sq
iti-43:
url: ehealthsuisse.ihe-europe.net:10443/xdstools7/sim/default__ahdis/rep/ret
iti-41:
url: ehealthsuisse.ihe-europe.net:10443/xdstools7/sim/default__ahdis/rep/prb
iti-57:
url: ehealthsuisse.ihe-europe.net:10443/xdstools7/sim/default__ahdis/rep/prb
retrieve:
url: ${DOCUMENT_RETRIEVE_URL:/camel/xdsretrieve}
repositoryUniqueId: 1.1.4567332.1.2
pix:
https: true
iti-45:
url: ehealthsuisse.ihe-europe.net:10443/PAMSimulator-ejb/PIXManager_Service/PIXManager_PortType
iti-44:
url: ehealthsuisse.ihe-europe.net:10443/PAMSimulator-ejb/PIXManager_Service/PIXManager_PortType
iti-47:
url: ehealthsuisse.ihe-europe.net:10443/PAMSimulator-ejb/PDQSupplier_Service/PDQSupplier_PortType
oids:
sender: 1.3.6.1.4.1.21367.2017.2.2.108
receiver: 1.3.6.1.4.1.12559.11.25.1.10
query: 1.3.6.1.4.1.21367.2017.2.1.104
custodian: 1.3.6.1.4.1.21367.2017.2.5.83
mpi-pid: 1.3.6.1.4.1.12559.11.20.1
iua:
idp:
name: idp-ehealthsuisse
metadata-url: classpath:/idp-metadata.xml
key-store: example-client-certificate.jks
key-store-password: a1b2c3
key-alias: gateway
key-password: a1b2c3
tls-key-alias:
tls-key-password:
sp:
entity-id: mobileaccessgateway.pagekite.me
disable-code-challenge: false
ap:
url: https://epdplayground.i4mi.bfh.ch:7443/EPDSTS/services/SecurityTokenService
wsdl: classpath:/local-WSDL/wsdl/ws-trust-1.3.wsdl
clients:
oauthdebugger:
secret: demosecret
redirect: https://oauthdebugger.com/debug
playground:
secret: secret
redirect: https://developers.google.com/oauthplayground

audit:
audit-enabled: false
audit-tls-enabled: false
# in productive system audit-source-id must be same as audit-enterprise-site-id
audit-enterprise-site-id: 1.3.6.1.4.1.21367.2017.2.7.109
#audit-repository-host: 147.135.232.177
#audit-repository-port: 3001
# audit-repository-transport: UDP

# https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#server-properties

server:
max-http-header-size: 15000
ssl:
key-store: classpath:example-server-certificate.p12
key-store-password: a1b2c3
key-store-type: pkcs12
key-alias: server
port: 9091 # Application listening port for HTTPS
http:
port: 9090 # Application listening port for HTTP. Remove line to disable.
servlet:
session:
timeout: 15m # Session duration must give the users enough time to fill out identity provider login pages
error:
whitelabel:
enabled: false
logging:
level:
root: info

camel:
springboot:
xmlRoutes: false
main-run-controller: true
spring:
config:
activate:
on-profile: metrics

# https://docs.spring.io/spring-boot/reference/actuator/endpoints.html#actuator.endpoints.exposing
management:
endpoint:
health:
Expand All @@ -109,8 +15,3 @@ management:
web:
exposure:
include: ["metrics","prometheus"]

# https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#core-properties
spring:
application:
name: mobile-access-gateway
15 changes: 7 additions & 8 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mag:
iua:
idp:
name: idp-ehealthsuisse
metadata-url: classpath:/idp-metadata.xml
metadata-url: https://ehealthsuisse.ihe-europe.net/metadata/idp-metadata.xml
key-store: example-client-certificate.jks
key-store-password: a1b2c3
key-alias: gateway
Expand All @@ -57,12 +57,12 @@ mag:
url: https://epdplayground.i4mi.bfh.ch:7443/EPDSTS/services/SecurityTokenService
wsdl: classpath:/local-WSDL/wsdl/ws-trust-1.3.wsdl
clients:
oauthdebugger:
secret: demosecret
redirect: https://oauthdebugger.com/debug
playground:
secret: secret
redirect: https://developers.google.com/oauthplayground
# oauthdebugger:
# secret: demosecret
# redirect: https://oauthdebugger.com/debug
# playground:
# secret: secret
# redirect: https://developers.google.com/oauthplayground

audit:
audit-enabled: false
Expand Down Expand Up @@ -97,7 +97,6 @@ logging:

camel:
springboot:
xmlRoutes: false
main-run-controller: true

# https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#core-properties
Expand Down
111 changes: 0 additions & 111 deletions src/main/resources/idp-metadata.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mag:
iua:
idp:
name: idp-ehealthsuisse
metadata-url: classpath:/idp-metadata.xml
metadata-url: https://ehealthsuisse.ihe-europe.net/metadata/idp-metadata.xml
key-store: example-client-certificate.jks
key-store-password: a1b2c3
key-alias: gateway
Expand Down
Loading