What is the path for the environmental variables file in Nginx?
November 29, 2015 05:33PM
In Apache I store my secret keys for environmental variables in ~/.profile:
export HMAC_SECRET=123

Running the command `printenv | less` in Ubuntu terminal, is giving me the content of the key.

I tried the same in Nginx but I cannot view the key.

How to setup env in Nginx?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready