mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-20 23:20:57 +00:00
1 line
2.7 KiB
JSON
1 line
2.7 KiB
JSON
[{"user_id": 26418, "stars": [], "topic_id": 40559, "date_created": 1309191348.9327731, "message": "I'm trying to setup an ELB for a secure site and want to use SSL termination. In this setup, the django servers will be listening on 80 via HTTP. This will break redirects as request.is_secure will be false so django will send clients to 'http://www.foo...'. Is there a good way to handle this ?", "group_id": 81, "id": 1496743}, {"user_id": 28384, "stars": [], "topic_id": 40559, "date_created": 1309194091.409014, "message": "ELB should send a header with each request named \"X-Forwarded-Proto\" which would be either http or https. In addition to checking request.is_secure, you could also check for that header and value and redirect as needed. http://aws.typepad.com/aws/2010/10/keeping-customers-happy-another-new-elastic-load-balancer-feature.html", "group_id": 81, "id": 1497184}, {"user_id": 11827, "stars": [{"date_created": 1309286082.2157121, "user_id": 1736}, {"date_created": 1309412063.6145141, "user_id": 21184}], "topic_id": 40559, "date_created": 1309242392.9653659, "message": "@drewvolpe it took me some time, but I eventually managed to get it to work. See the snippet that I posted here: http://djangosnippets.org/snippets/2472/", "group_id": 81, "id": 1503766}, {"user_id": 11827, "stars": [], "topic_id": 40559, "date_created": 1309242698.1305461, "message": "BTW, this works for me in production.", "group_id": 81, "id": 1503787}, {"user_id": 26418, "stars": [], "topic_id": 40559, "date_created": 1309296809.441932, "message": "@zvikico - Thanks. I ended up doing the same thing (code is almost line-for-line).", "group_id": 81, "id": 1511594}, {"user_id": 212, "stars": [], "topic_id": 40559, "date_created": 1309333984.727118, "message": "hrm... https://github.com/rossdakin/django-heroism (linked from the snippet) looks very similar, albeit somewhat less customizable", "group_id": 81, "id": 1515574}, {"user_id": 212, "stars": [], "topic_id": 40559, "date_created": 1309333429.0759001, "message": "check out https://bitbucket.org/GabrielGrant/bpssl/overview", "group_id": 81, "id": 1515532}, {"user_id": 212, "stars": [], "topic_id": 40559, "date_created": 1309333788.854986, "message": "docs are here: http://beproud.bitbucket.org/bpssl-1.0/en/", "group_id": 81, "id": 1515559}, {"user_id": 212, "stars": [], "topic_id": 40559, "date_created": 1309333703.171942, "message": "(that is a link to my fork only because I fixed a bug today with specifying a custom SSL header name -- the default is \"X-Forwarded-Proto*col*\")", "group_id": 81, "id": 1515554}, {"user_id": 212, "stars": [], "topic_id": 40559, "date_created": 1309333779.5051501, "message": "hopefully the patch should be merged soon enough and pushed to pypi", "group_id": 81, "id": 1515558}] |