-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adjust cache duration in application.yml
- Loading branch information
1 parent
a8b4696
commit 8383b7b
Showing
3 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ spring: | |
config.import: classpath:private.yml # Variables privées à ne pas diffuser. | ||
|
||
service-gar-http-get: | ||
cache-duration: 86400 # 24h. | ||
ressources-diffusables-uri: '=== Ressources Diffusables URI ===' # Variable privée surchargée dans private.yml. | ||
download-location-path: 'src/main/resources/downloads/ressourcesDiffusables.json' # Le fichier sera toujours JSON. | ||
|
||
|
@@ -28,9 +29,8 @@ security-configuration: | |
cors: | ||
enable: true | ||
allow-credentials: true | ||
allowed-origins: > # IP = PC de Anaël via VPN. | ||
http://localhost:8080, | ||
http://192.168.36.10:8080, | ||
allowed-origins: > | ||
http://localhost:5173, | ||
This comment has been minimized.
Sorry, something went wrong.
jgribonvald
Member
|
||
https://*.giprecia.net | ||
exposed-headers: > | ||
x-auth-token, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
package fr.recia.ressourcesdiffusablesapi.web.rest; | ||
|
||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | ||
|
||
import javax.annotation.PostConstruct; | ||
|
||
import fr.recia.ressourcesdiffusablesapi.service.gar.ServiceGar; | ||
import fr.recia.ressourcesdiffusablesapi.test.TestUtil; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
@@ -22,6 +15,11 @@ | |
import org.springframework.test.web.servlet.result.MockMvcResultHandlers; | ||
import org.springframework.test.web.servlet.setup.MockMvcBuilders; | ||
|
||
import javax.annotation.PostConstruct; | ||
|
||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; | ||
This comment has been minimized.
Sorry, something went wrong.
jgribonvald
Member
|
||
|
||
@ExtendWith(SpringExtension.class) | ||
@Slf4j | ||
@SpringBootTest | ||
|
Peut-être remplacé par
service-gar-http-get.cache-duration:86400
pour définir une valeur par défaut et surchargeable via les fichier de properties