Skip to content

Commit

Permalink
Fix to nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalaldo committed Dec 11, 2024
1 parent 7aa65c2 commit 094460d
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ upstream django {

server {
listen 80;
listen [::]:80;

server_name pankb.org www.pankb.org;
server_tokens off;

location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

location /static/ {
alias /static/;
}

location / {
return 301 https://$server_name$request_uri;
}
proxy_pass http://django;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
}
location /static/ {
alias /static/;
}
}

0 comments on commit 094460d

Please sign in to comment.