Skip to content

Commit

Permalink
Merge pull request #27 from ADPRO-C11/staging_new
Browse files Browse the repository at this point in the history
Staging new
  • Loading branch information
sitaamirasyarifah authored May 25, 2024
2 parents 7bac038 + e6e86d2 commit 001007d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
- staging
- staging_new

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ scrape_configs:
metrics_path: '/actuator/prometheus'
scrape_interval: 3s
static_configs:
- targets: ['host.docker.internal:8080']
- targets: ['host.docker.internal:80']
labels:
application: 'snackscription_subscriptionbox'
4 changes: 2 additions & 2 deletions .monitoring/docker-compose.yml → docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./.monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml

grafana:
image: grafana/grafana:9.5.2
Expand All @@ -23,4 +23,4 @@ services:
- "3000:3000"
restart: unless-stopped
volumes:
- ./monitoring/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./.monitoring/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
authorizeRequests
.requestMatchers("/actuator/prometheus").permitAll() // Allow unauthenticated access
.requestMatchers("/subscription-box/**", "/public/**").permitAll()
.requestMatchers("/").permitAll()
.anyRequest().authenticated())
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.addFilterBefore(new JWTAuthFilter(jwtUtils), UsernamePasswordAuthenticationFilter.class);
Expand Down

0 comments on commit 001007d

Please sign in to comment.