Skip to content

Commit

Permalink
refactor: reformat file
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Choiński <[email protected]>
  • Loading branch information
Wallted committed Jan 27, 2024
1 parent 6e4f923 commit 8cd683b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
worker_processes 1;

events { worker_connections 1024; }
events {
worker_connections 1024;
}

http {

sendfile on;

upstream api {
Expand All @@ -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;
}
}
}

0 comments on commit 8cd683b

Please sign in to comment.