Welcome! Log In Create A New Profile

Advanced

What is the path for the environmental variables file in Nginx?

Posted by blsn 
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: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready