Skip to content

Commit

Permalink
added actuator config and config for new environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Haris Kurspahic committed Nov 20, 2023
1 parent 7b075e0 commit 1cfe175
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
16 changes: 2 additions & 14 deletions Dockerrun.aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,14 @@
"memory": 512,
"portMappings": [
{
"hostPort": 8080,
"hostPort": 80,
"containerPort": 8080
}
],
"environment": [
{
"name": "SPRING_DATASOURCE_URL",
"value": "jdbc:postgresql://awseb-e-xkw6cwxmtq-stack-awsebrdsdatabase-muivvg2bsjex.cwfngv7mxbca.eu-central-1.rds.amazonaws.com:5432/customer"
}
]
},
{
"name": "kursph-react",
"image": "kurshjku/kursph-react:19.11.2023.19.53.54",
"essential": true,
"memory": 256,
"portMappings": [
{
"hostPort": 80,
"containerPort": 5173
"value": "jdbc:postgresql://awseb-e-f3tym6qff2-stack-awsebrdsdatabase-wvtoebgglkgf.cwfngv7mxbca.eu-central-1.rds.amazonaws.com:5432/ebdb"
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<artifactId>spring-security-test</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
"/api/v1/auth/login"
)
.permitAll()
.requestMatchers(HttpMethod.GET, "/actuator/**")
.permitAll()
.anyRequest()
.authenticated()
.and()
Expand Down
8 changes: 7 additions & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ spring:
format_sql: true
show-sql: true
main:
web-application-type: servlet
web-application-type: servlet

management:
endpoints:
web:
exposure:
include: "health,info"

0 comments on commit 1cfe175

Please sign in to comment.