Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadkhalaj committed Oct 12, 2023
1 parent 81f26d3 commit b624a7d
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,16 @@ upstream web {
server web:8000;
}

map $http_x_forwarded_proto $thescheme {
default $scheme;
https https;
}

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;
server_name foodinol.ir www.foodinol.ir;

location / {
proxy_pass http://web;
proxy_connect_timeout 1000s;
proxy_read_timeout 1000s;
proxy_send_timeout 1000s;
client_max_body_size 50000m;
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-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering on;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}

location /static/ {
Expand Down

0 comments on commit b624a7d

Please sign in to comment.