[GH-ISSUE #87] [BUG] https not available with --build-arg use_https=1 #61

Closed
opened 2026-02-25 20:34:49 +03:00 by kerem · 4 comments
Owner

Originally created by @gotchai on GitHub (Jun 9, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/87

Describe the bug
Cannot access to https following the documentation regarding whoogle and docker

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
docker build --build-arg use_https=1 --tag whoogle-search:1.0 .
docker run --publish 5000:5000 --detach --name whoogle-search whoogle-search:1.0

Opening a firefox browser :
https://host:5000 does not work
http://host:5000 is ok

Deployment Method

  • [X ] Docker

Version of Whoogle Search

  • [X ] Not sure

Desktop (please complete the following information):

  • OS: Arch linux
  • Browser Firefox
  • Version last stable
Originally created by @gotchai on GitHub (Jun 9, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/87 **Describe the bug** Cannot access to https following the documentation regarding whoogle and docker **To Reproduce** Steps to reproduce the behavior: git clone https://github.com/benbusby/whoogle-search.git cd whoogle-search docker build **--build-arg use_https=1** --tag whoogle-search:1.0 . docker run --publish 5000:5000 --detach --name whoogle-search whoogle-search:1.0 Opening a firefox browser : https://host:5000 does not work http://host:5000 is ok **Deployment Method** - [X ] Docker **Version of Whoogle Search** - [X ] Not sure **Desktop (please complete the following information):** - OS: Arch linux - Browser Firefox - Version last stable
kerem 2026-02-25 20:34:49 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@benbusby commented on GitHub (Jun 9, 2020):

It looks like you're accessing your whoogle instance using the host address over HTTPS but without generating a certificate beforehand (which would also require a domain name). I'll update the README to clarify that, sorry for the confusion.

If you need HTTPS, you'd want to buy a domain name, make sure the domain points to your hosting setup, and generate a certificate with something like LetsEncrypt to allow HTTPS access with Nginx/Apache/etc.

<!-- gh-comment-id:641441645 --> @benbusby commented on GitHub (Jun 9, 2020): It looks like you're accessing your whoogle instance using the host address over HTTPS but without generating a certificate beforehand (which would also require a domain name). I'll update the README to clarify that, sorry for the confusion. If you need HTTPS, you'd want to buy a domain name, make sure the domain points to your hosting setup, and generate a certificate with something like [LetsEncrypt](https://letsencrypt.org/getting-started/) to allow HTTPS access with Nginx/Apache/etc.
Author
Owner

@benbusby commented on GitHub (Jun 9, 2020):

README updated. Thanks for the report!

<!-- gh-comment-id:641446498 --> @benbusby commented on GitHub (Jun 9, 2020): README updated. Thanks for the report!
Author
Owner

@gotchai commented on GitHub (Jun 9, 2020):

It looks like you're accessing your whoogle instance using the host address over HTTPS but without generating a certificate beforehand (which would also require a domain name). I'll update the README to clarify that, sorry for the confusion.

If you need HTTPS, you'd want to buy a domain name, make sure the domain points to your hosting setup, and generate a certificate with something like LetsEncrypt to allow HTTPS access with Nginx/Apache/etc.

Hi thank you for the update

If I use self-signed certificate with mkcert for example on my host, are there any settings to add to the build in docker ?

<!-- gh-comment-id:641529136 --> @gotchai commented on GitHub (Jun 9, 2020): > It looks like you're accessing your whoogle instance using the host address over HTTPS but without generating a certificate beforehand (which would also require a domain name). I'll update the README to clarify that, sorry for the confusion. > > If you need HTTPS, you'd want to buy a domain name, make sure the domain points to your hosting setup, and generate a certificate with something like [LetsEncrypt](https://letsencrypt.org/getting-started/) to allow HTTPS access with Nginx/Apache/etc. Hi thank you for the update If I use self-signed certificate with mkcert for example on my host, are there any settings to add to the build in docker ?
Author
Owner

@benbusby commented on GitHub (Jun 10, 2020):

You'd have to make some modifications to get that working. Since waitress doesn't support decoding https requests, you'd need to use the built in flask server (which isn't very stable, but does have support for decoding these requests). You'd need to always run the instance using the --debug flag and update the debug server to include an argument like ssl_context=('cert.pem', 'key.pem').

You'd likely want to add this in routes.py towards the bottom of run_app():

if args.debug:
    app.run(host=args.host, port=args.port, ssl_context=('cert.pem', 'key.pem'))
else:
    ...
<!-- gh-comment-id:642128902 --> @benbusby commented on GitHub (Jun 10, 2020): You'd have to make some modifications to get that working. Since waitress doesn't support decoding https requests, you'd need to use the built in flask server (which isn't very stable, but does have support for decoding these requests). You'd need to always run the instance using the `--debug` flag and update the debug server to include an argument like `ssl_context=('cert.pem', 'key.pem')`. You'd likely want to add this in `routes.py` towards the bottom of `run_app()`: ```python if args.debug: app.run(host=args.host, port=args.port, ssl_context=('cert.pem', 'key.pem')) else: ... ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#61
No description provided.