[PR #1169] [MERGED] Update README.md #1105

Closed
opened 2026-02-25 21:30:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/1169
Author: @aminsaedi
Created: 7/16/2024
Status: Merged
Merged: 9/30/2024
Merged by: @benbusby

Base: mainHead: aminsaedi-patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

Added X-Forwarded-Host to the nginx reverse proxy options as it's used in the code (app/utils/misc.py - line 84)

If X-Forwarded-Host is not set and the app is running behind nginx on any ports other than 80/433, then the port number in the URL returned by get_proxy_host_url function will be ignored

I'm running the Whoogle behind nginx reverse proxy on port 2053, The images were not displayed for me because url of images was https://mydomain.com/element?... instead of https://mydomain.com:2053/element?.... After checking the code I was able to resolve it by adding proxy_set_header X-Forwarded-Host $http_host; to my nginx config file


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/benbusby/whoogle-search/pull/1169 **Author:** [@aminsaedi](https://github.com/aminsaedi) **Created:** 7/16/2024 **Status:** ✅ Merged **Merged:** 9/30/2024 **Merged by:** [@benbusby](https://github.com/benbusby) **Base:** `main` ← **Head:** `aminsaedi-patch-1` --- ### 📝 Commits (1) - [`bb21526`](https://github.com/benbusby/whoogle-search/commit/bb215266eb146bd3ab185158bb9aa931615575ae) Update README.md ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description Added X-Forwarded-Host to the nginx reverse proxy options as it's used in the code (app/utils/misc.py - line 84) If X-Forwarded-Host is not set and the app is running behind nginx on any ports other than 80/433, then the port number in the URL returned by `get_proxy_host_url` function will be ignored I'm running the Whoogle behind nginx reverse proxy on port 2053, The images were not displayed for me because url of images was `https://mydomain.com/element?...` instead of `https://mydomain.com:2053/element?...`. After checking the code I was able to resolve it by adding `proxy_set_header X-Forwarded-Host $http_host;` to my nginx config file --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:30:12 +03:00
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#1105
No description provided.