Compare commits
2 Commits
cc03fd808c
...
72e912facb
Author | SHA1 | Date |
---|---|---|
Matthieu Lamalle | 72e912facb | |
Matthieu Lamalle | abb1adecb7 |
2
.env
2
.env
|
@ -40,4 +40,4 @@ LOCK_DSN=flock
|
|||
###> sentry/sentry-symfony ###
|
||||
SENTRY_DSN=
|
||||
###< sentry/sentry-symfony ###
|
||||
REDIS_URL=redis://redis:6379
|
||||
REDIS_DSN=redis://redis:6379
|
||||
|
|
|
@ -9,7 +9,7 @@ framework:
|
|||
|
||||
# Redis
|
||||
app: cache.adapter.redis
|
||||
default_redis_provider: '%env(REDIS_URL)%'
|
||||
default_redis_provider: '%env(REDIS_DSN)%'
|
||||
|
||||
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
||||
#app: cache.adapter.apcu
|
||||
|
|
|
@ -12,7 +12,7 @@ framework:
|
|||
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
||||
# Remove or comment this section to explicitly disable session support.
|
||||
session:
|
||||
handler_id: '%env(REDIS_URL)%'
|
||||
handler_id: '%env(REDIS_DSN)%'
|
||||
cookie_secure: auto
|
||||
cookie_samesite: lax
|
||||
storage_factory_id: session.storage.factory.native
|
||||
|
|
|
@ -36,6 +36,7 @@ DSN_REMOTE_DATABASE="pgsql:host='postgres';port=5432;dbname=lasql"
|
|||
APP_LOCALES="fr,en"
|
||||
HASH_ALGO_LEGACY="sha256, bcrypt"
|
||||
SECURITY_PATTERN="password,salt,pepper"
|
||||
REDIS_DSN="redis://redis:6379
|
||||
PEPPER=
|
||||
```
|
||||
## Tests password
|
||||
|
@ -59,6 +60,12 @@ et conserver le pepper dans service.yaml
|
|||
env(PEPPER): "257d62c24cd352c21b51c26dba678c8ff05011a89022aec106185bf67c69aa8b"
|
||||
|
||||
```
|
||||
|
||||
### Redis
|
||||
|
||||
La variable `REDIS_DSN` est obligatoire. Hydra-sql utilise dorénavant Redis pour le stockage du cache et des session. Compatible Redis Sentinel
|
||||
ex : `'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster'`
|
||||
|
||||
### mariadb
|
||||
```
|
||||
En plus de tester la connexion à une différente base de donnée, on teste le hashage de password sans salt ni pepper
|
||||
|
|
Loading…
Reference in New Issue