정답은 아닙니다.
하지만 docker나 linux에서 환경변수를 설정하여 받아올수는 있습니다.
https://linuxhint.com/nginx-use-environment-variables/
Can Nginx Use Environment Variables?
Nginx is a powerful web server and reverse proxy that has become a default choice for most developers. With the rise of cloud computing and containers such as Docker, deploying multiple applications using Nginx is easy and efficient. However, when you run
linuxhint.com
https://stackoverflow.com/questions/21866477/nginx-use-environment-variables
nginx: use environment variables
I have the following scenario: I have an env variable $SOME_IP defined and want to use it in a nginx block. Referring to the nginx documentation I use the env directive in the nginx.conf file like ...
stackoverflow.com
'WEB,WAS > Nginx' 카테고리의 다른 글
nginx ssl 갱신 설정 (0) | 2023.05.31 |
---|---|
nginx forbidden 403 error 에러 (0) | 2023.02.16 |
nginx 업로드 파일 size 변경 (0) | 2023.02.08 |
nginx 압축전송 (0) | 2023.01.30 |
[Nginx]upstream timed out, no live upstreams (0) | 2023.01.12 |
댓글