diff --git a/README.md b/README.md index a9fdd239..535bd138 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ deploy the application in an environment where the certificate needs to be regis then you can generate a key pair with the following commands: ``` cd myconext/myconext-server/src/main/resources -openssl genrsa -out myconext.pem 2048 +openssl genrsa -traditional -out myconext.pem 2048 openssl req -subj '/O=Organization, CN=OIDC/' -key myconext.pem -new -x509 -days 365 -out myconext.crt ``` Add the key pair to the [application.yml](myconext-server/src/main/resources/application.yml) file: diff --git a/myconext-server/src/main/java/myconext/SwaggerOpenIdConfig.java b/myconext-server/src/main/java/myconext/SwaggerOpenIdConfig.java index e0adb881..65599375 100644 --- a/myconext-server/src/main/java/myconext/SwaggerOpenIdConfig.java +++ b/myconext-server/src/main/java/myconext/SwaggerOpenIdConfig.java @@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; import org.springframework.web.filter.ForwardedHeaderFilter; @Configuration diff --git a/myconext-server/src/main/resources/application.yml b/myconext-server/src/main/resources/application.yml index 6238b086..133841bd 100644 --- a/myconext-server/src/main/resources/application.yml +++ b/myconext-server/src/main/resources/application.yml @@ -18,9 +18,11 @@ springdoc: pathsToMatch: "/mobile/**" api-docs: path: "/myconext/api/mobile/api-docs" + enabled: true swagger-ui: path: "/myconext/api/mobile/api-ui.html" operationsSorter: method + enabled: true email: from: noreply@surfconext.nl @@ -175,11 +177,13 @@ management: endpoints: web: exposure: - include: "health,info" + include: "health,info,mappings" base-path: "/internal" endpoint: info: enabled: true + mappings: + enabled: true info: git: mode: full