JWT-Secrets as Environment Variables
When using Shopware 6.6 in a dockerized or cluster setup, you may want to use env vars in lieu of files for your JWT keys. This is how convert your keys.
shopware:
api:
jwt_key:
use_app_secret: truephp -r "echo bin2hex(random_bytes(32));"shopware:
api:
jwt_key:
private_key_path: '%env(base64:JWT_PRIVATE_KEY)%'
public_key_path: '%env(base64:JWT_PUBLIC_KEY)%'shopware-cli project generate-jwt --envLast updated