Skip to content

Commit

Permalink
add headers to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 8, 2024
1 parent 6d31ba0 commit 6de5dcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#upstream fishauctions {
# server web:8000;
#}
# redirect all traffic to https
server {
listen 80 default_server;
Expand All @@ -21,14 +18,17 @@ server {
include /config/nginx/ssl.conf;

location / {
#proxy_pass http://fishauctions;
proxy_pass http://web:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name;
proxy_redirect off;
client_max_body_size 20M;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
}
location /static/ {
alias /home/app/web/staticfiles/;
Expand Down

0 comments on commit 6de5dcc

Please sign in to comment.