mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #678] Support for HTTPS without reverse proxy #489
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stevenengland on GitHub (Jul 26, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/678
Hi,
is there a recommended way to enable HTTPS without using a reverse proxy?
I fiddled around altering the uwsgi.ini like this:
But that won't finally start a server instance. I end up in a loop that is as follows:
switching back from https to http-socket brings up the server again.
I am fairly new to the combination of uwsgi, django etc. so I am not sure where to start my HTTPS journey.
Thanks in advance!
@cuu508 commented on GitHub (Jul 26, 2022):
Can you share your complete uwsgi.ini?
@stevenengland commented on GitHub (Jul 26, 2022):
Hi, thank you for coming back to me.
I must admit that I use the linuxserver.io image based on yours.
Therefore I use the uWSGI ini from there:
https://github.com/linuxserver/docker-healthchecks/blob/master/root/defaults/uwsgi.ini
With the slight difference I mentioned above (https instead of http-socket).
I thought it might be a good idea to ask here first if there is a recommended way to use HTTPS directly (without another webserver in front of uWSGI).
@cuu508 commented on GitHub (Jul 27, 2022):
To be honest, I didn't know uwsgi can terminate TLS. As a quick experiment, I took the linuxserver uwsgi.ini and edited it like so:
I placed it in the project directory (next to manage.py) and then ran it with:
The output for me was:
And it did work in the browser (I was getting warnings about using a self-signed certificate, but that's expected).
It's not immediately clear to me what's causing the failure in the linuxserver image.
@stevenengland commented on GitHub (Jul 27, 2022):
Thank you very much. Then I will try your Dockerfile, create an image respectively and try this combination by myself. If I am not successful I will open another issue for linuxserver. Can this issue here be left open if anything else occurs?
@cuu508 commented on GitHub (Jul 27, 2022):
Sure, if the issue you reported turns out to be something that must be fixed in Healthchecks, we can handle it here.
If you run into a different problem, please create a separate ticket for it. And if you need advice on how to do something, please use discussions!
@stevenengland commented on GitHub (Jul 31, 2022):
Well... Pulled your image, added the certs, altered the uwsgi.ini to use the certs and it works like a charm out of the box. So the problem most likely is on the linuxserver.io side... :(
Thank you for helping me out!!!