Multiline variables
I need to provide RSA key for one of my services(https://docs.saleor.io/setup/configuration#rsa_private_key)
I generated key via
openssl genrsa -out private-key.pem 3072
Converted to one liner via awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' private-key.pem
But on deploy getting an error
How I can add variables like this?Environment Variables | Saleor Commerce Documentation
Saleor follows the 12-factor approach, so you can configure Saleor using environment variables.
6 Replies
Try to escape this symbol:
\/
I viewed file via cat, and there is no quotes, I think problem in that

Try to make the value be in a single line
It's already one liner, in portainer I just wrapped it in double quotes
Hmm weird, in one of my projects I’m using a private key and I put in a single line and it works fine
Sounds strange, but I wrapped it in double quotes and single quotes
'"here_is_my_private_key"'
and it works 😂