diff --git a/nginx/nginx.conf b/nginx/nginx.conf index bfe7e11..0797ce2 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,9 +1,10 @@ worker_processes 1; -events { worker_connections 1024; } +events { + worker_connections 1024; +} http { - sendfile on; upstream api { @@ -27,17 +28,17 @@ http { ssl_certificate_key /etc/ssl/private/localhost.key; location / { - proxy_pass http://api; - proxy_redirect off; + proxy_pass http://api; + proxy_redirect off; proxy_http_version 1.1; proxy_cache_bypass $http_upgrade; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection keep-alive; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $server_name; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection keep-alive; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $server_name; } } }