Here it is (yeah I should have gone for socketed setup but I ran into trouble a while ago):
location / {
proxy_pass http://127.0.0.1:8002;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Actually thanks for the hint, looking there solved my problem! I added:
proxy_set_header X-Forwarded-Proto $scheme;
As a side note I still couldn’t build a container based on the stable branch… It my be worth to look at.