I’ve got a kubernetes instance on GCP. Everything seems fine, but somehow force_https isn’t forcing a redirect and the sill can be retrieved on http://.
My solution for now has been to add this stanza to app.yml.
(And I’d love to understand how to get pups to indent those lines I inserted, but I digress.)
Sometime after that change the ingres controller appears to have stopped serving the site, though it seemed to have been working–and properly redirecting–for at least a while.
Obviously this is unsupported-install, but if anyone has an idea where to look next, I’d appreciate it.
Are you using a HTTP loadbalancer or a TCP loadbalancer? If HTTP, the protocol seen on ingress may be stuffed in a nonstandard header that Discourse isn’t looking for.
Thanks very much, @riking! Yes, it’s the load balancer that seems to be my issue. I think ingress is OK (and now I have some idea that there is a difference). I switched to the setup that you show and am getting the same results as I was with a somewhat more complicated configuration. I guess one next step would be to figure out tcpdump and see what’s in those headers. . .
EDIT: It looks like it should work. Here’s what I see:
@pfaffman I could help with that - I’m on GCP and have solved this issue before. I’m tied up for a few hours though but if you can send me your load balancer setup (along with the health check stuff) here or privately, I can try and find the issue.
Yes. It seems to be working now! I guess I’m confused about the magic port 30182, but I suppose that’s some kind of k8s magic that I’ll understand another day.
I’ll give your after_web_config: stanza a go. It seems a bit cleaner than what I was doing.