Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #45 from admin-ch/feature/PTAPP-1049-m2m-sperre
Browse files Browse the repository at this point in the history
changed lockdown configuration to reflect environment needs
  • Loading branch information
Armin-Isenring-Bit authored Mar 23, 2022
2 parents a66247d + 38e8336 commit 51f3955
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions src/main/resources/application-lockdown.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@

# the order of active profiles is IMPORTANT: SPRING_PROFILES_ACTIVE: prod,lockdown
# ONLY this activates the lockdowwn configuration for the profile prod
# reversed order will simply activate lockdown configuration of abn for EVERY environment!

---
spring.profiles: prod,local
lockdown:
endpoints:
-
uri: v1/authcode
applicable:
-
from: 2022-04-01T00:00:00.000Z
-
uri: v1/onset
applicable:
-
from: 2022-04-01T00:00:00.000Z
-
uri: v2/onset
applicable:
-
from: 2022-04-01T00:00:00.000Z

---
spring.profiles: abn
lockdown:
endpoints:
-
Expand All @@ -7,20 +34,20 @@ lockdown:
from: 2022-03-22T00:00:00.000Z
until: 2022-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z
from: 2022-03-28T00:00:00.000Z
-
uri: v1/onset
applicable:
-
from: 2022-03-22T00:00:00.000Z
until: 2022-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z
from: 2022-03-28T00:00:00.000Z
-
uri: v2/onset
applicable:
-
from: 2022-03-22T00:00:00.000Z
until: 2022-03-23T23:59:59.000Z
-
from: 2022-04-01T00:00:00.000Z
from: 2022-03-28T00:00:00.000Z

0 comments on commit 51f3955

Please sign in to comment.