k0a1a / hotglue2

HOTGLUE is a Content Manipulation System which allows to construct websites directly in a web-browser.
http://hotglue.me/demo
GNU General Public License v3.0
275 stars 38 forks source link

Allow Hotglue to work behind a load balancer or a reverse proxy #8

Closed dereckson closed 7 years ago

dereckson commented 8 years ago

This PR depends of #7. I'll rebase it if #7 isn't merge in fast-forward mode.

57deffdb allows to put Hotglue in a Docker container with nginx at the front: front-end WONT define HTTPS to 1, but WILL define X-Forwarded-Proto to 'https'.

So, currently, Hotglue serves http:// links. This change allows to detect this situation and correctly serve https:// links.

k0a1a commented 8 years ago

thanks for this. i will test and merge based on results

dereckson commented 8 years ago

You're welcome. Rebased against 6b4da6c.