Skip to content

Commit

Permalink
refactor: nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Armadillidiid committed Mar 10, 2024
1 parent c66ac4b commit 46fdf56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nginx/default.staging.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ server {
root /var/www/certbot;
}

location /static {
alias /app/staticfiles/;
}

location /media {
alias /app/media/;
}

location / {
return 301 https://$host$request_uri;
proxy_pass http://${APP_HOST}:${APP_PORT};
include /etc/nginx/proxy_params;
}
}

0 comments on commit 46fdf56

Please sign in to comment.