zooniverse / theia

Building the next-generation Floating Forests pipeline
3 stars 2 forks source link

Set Host headers #135

Closed zwolf closed 3 years ago

zwolf commented 3 years ago

Getting a lot of these now that nginx is in front:

[ff-import django.security.DisallowedHost] ERROR 2021-06-23 23:06:38,754 Invalid HTTP_HOST header: '[ip]:80'. You may need to add '[ip]' to ALLOWED_HOSTS.
[ff-import django.request] WARNING 2021-06-23 23:06:38,765 Bad Request: /

So this sets the proxy_pass_header Host straight to theia.zooniverse.org. Also updated the readiness/liveness probes to do the same.