Generated links in CV are not https
Today when I lookup the entries in the central sms cv the backend generates links that are not https.
For example: https://sms-cv.helmholtz.cloud/sms/cv/api/v1/measuredquantities/
"links": {
"self": "http://sms-cv.helmholtz.cloud/sms/cv/api/v1/measuredquantities/173/"
},
In general there is a middleware in django that cares about the headers that are set from an reverse proxy. From what I can see for the nginx config of the pod in the desy-rancher, then it sets all the headers that we set at GFZ too.
location /cv {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://vocabulary:8001;
}
All of them are included in the current default.conf at the pod:
location /sms/cv/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8000/sms/cv/;
}
Still, there seems to be a problem here.