mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
nginx slash redirect uses https (#1731)
This commit is contained in:
@@ -63,7 +63,12 @@ data:
|
||||
|
||||
location @django2 {
|
||||
if ($uri !~* /$ ) {
|
||||
rewrite ^(.*)$ $1/ redirect;
|
||||
# "basic" redirect, adding a slash:
|
||||
# rewrite ^(.*)$ $1/ redirect;
|
||||
#
|
||||
# instead, redirect everything to https
|
||||
# (since nginx is only seeing http at the pod)
|
||||
rewrite ^(.*)$ https://$host$1/ redirect;
|
||||
}
|
||||
proxy_pass http://unix:/run/gunicorn.sock;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user