diff --git a/nginx.conf b/nginx.conf index 2e7df9d..573518f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,10 @@ user nginx; worker_processes 1; +# Load environment variables +env BACKEND_ADDRESS; +env BACKEND_PORT; + events { worker_connections 1024; } @@ -9,10 +13,6 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - # Load environment variables - env BACKEND_ADDRESS; - env BACKEND_PORT; - server { listen 80; @@ -25,4 +25,3 @@ http { } } } -