docs : fix JWT key generation and permissions in deployment doc
This commit is contained in:
@@ -136,10 +136,15 @@ HOLIDAY_URL="https://calendrier.api.gouv.fr/jours-feries/"
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir -p config/jwt
|
mkdir -p config/jwt
|
||||||
docker run --rm -v $(pwd)/config/jwt:/jwt php:8.4-cli bash -c \
|
openssl genpkey -algorithm RSA -out config/jwt/private.pem -pkeyopt rsa_keygen_bits:4096
|
||||||
"apt-get update -qq && apt-get install -y -qq openssl > /dev/null && \
|
openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
|
||||||
openssl genpkey -algorithm RSA -out /jwt/private.pem -pkeyopt rsa_keygen_bits:4096 && \
|
```
|
||||||
openssl rsa -pubout -in /jwt/private.pem -out /jwt/public.pem"
|
|
||||||
|
Rendre les cles lisibles par le conteneur (www-data = uid 33) :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo chown 33:33 config/jwt/private.pem config/jwt/public.pem
|
||||||
|
sudo chmod 644 config/jwt/private.pem config/jwt/public.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
### 5. Creer le dossier uploads
|
### 5. Creer le dossier uploads
|
||||||
|
|||||||
Reference in New Issue
Block a user