Skip to content

Commit

Permalink
Expose mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 3, 2023
1 parent 9461928 commit 4261625
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion myconext-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
Expand Down Expand Up @@ -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

0 comments on commit 4261625

Please sign in to comment.