[PR #123] [CLOSED] Using HAPROXY as Reverse Proxy #140

Closed
opened 2026-03-02 16:47:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/photoprism/photoprism-docs/pull/123
Author: @mamema
Created: 6/27/2022
Status: Closed

Base: userguideHead: master


📝 Commits (10+)

📊 Changes

7750 files changed (+11270 additions, -11989 deletions)

View changed files

.dockerignore (+9 -0)
.github/workflows/ci.yml (+19 -0)
📝 .gitignore (+1 -0)
Dockerfile (+1 -0)
📝 LICENSE (+100 -58)
Makefile (+43 -0)
📝 README.md (+81 -31)
docs/contact.md (+0 -62)
📝 docs/credits.md (+18 -13)
docs/css/custom.css (+274 -0)
docs/developer-guide/checklists/web-security.md (+1 -0)
docs/developer-guide/clients/go.md (+111 -0)
📝 docs/developer-guide/code-quality.md (+111 -20)
📝 docs/developer-guide/configuration.md (+3 -2)
📝 docs/developer-guide/directories.md (+1 -1)
📝 docs/developer-guide/documentation.md (+17 -58)
docs/developer-guide/faq.md (+11 -0)
docs/developer-guide/img/CLA.png (+0 -0)
docs/developer-guide/img/CLAAgree.png (+0 -0)
docs/developer-guide/img/DashboardUntranslated.png (+0 -0)

...and 80 more files

📄 Description

This explains, how to configure HAPROXY (WebSocket) connections between your client and backend services.

Example:

frontend connection handling

'photo' is the name of the subdomain

acl photo hdr(host) -i photo.example.com
use_backend be_photo_ipvANY if photo aclcrt_fe_http

backend config

be_photo is the name of the backend

backend be_photo_ipvANY
mode http
id 112
log global
timeout connect 30000
timeout server 30000
retries 3
load-server-state-from-file global
timeout queue 5s
timeout tunnel 2m
option redispatch

	 mode http
	 option forwardfor
	 no option httpclose

	 http-request set-header Host photo.example.com
	 http-request del-header  X-Frame-Options
	 http-request del-header  Connection
	 http-request add-header  X-Frame-Options SAMEORIGIN
	 http-request add-header  Connection Upgrade
	
             # Websocket configuration
             acl is_websocket hdr(Upgrade) -i WebSocket
	acl is_websocket hdr_beg(Host) -i ws
             # photoprism ip address and port
	server			photo x.x.x.x:2342 id 106  

🔄 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/photoprism/photoprism-docs/pull/123 **Author:** [@mamema](https://github.com/mamema) **Created:** 6/27/2022 **Status:** ❌ Closed **Base:** `userguide` ← **Head:** `master` --- ### 📝 Commits (10+) - [`0574089`](https://github.com/photoprism/photoprism-docs/commit/0574089c0103cf9e1d524ad11f6d007ccb17f67f) Update release-notes.md - [`c678e4e`](https://github.com/photoprism/photoprism-docs/commit/c678e4e80ad80250cb6532cfc2deb9116495311e) Update release-notes.md - [`64c15cc`](https://github.com/photoprism/photoprism-docs/commit/64c15cc757f79f090043051ccdcb197ac7bde9ca) Update release-notes.md - [`951cac5`](https://github.com/photoprism/photoprism-docs/commit/951cac50215d25ed08b3f187544c5f1503d20ad6) Update release-notes.md - [`cf0af76`](https://github.com/photoprism/photoprism-docs/commit/cf0af76098cb2d195e3727e54bedfbb920c96322) Update release-notes.md - [`b432763`](https://github.com/photoprism/photoprism-docs/commit/b43276347b8cb39a8ca7e3c996b98d9d761178e3) Update release-notes.md - [`bd169aa`](https://github.com/photoprism/photoprism-docs/commit/bd169aa4242573c72655bf6079ab62972da635ec) Update release-notes.md - [`e2b4777`](https://github.com/photoprism/photoprism-docs/commit/e2b4777d90c9de9a8a6c9cddabaa8f92f5fd7525) Update release-notes.md - [`c5ccd22`](https://github.com/photoprism/photoprism-docs/commit/c5ccd226ea0b989b1bc12347373deaf7ec15f484) Update release-notes.md - [`4cea7b4`](https://github.com/photoprism/photoprism-docs/commit/4cea7b4c19dc89ebb2c3eb380b2b32d0d10e2133) Update release-notes.md ### 📊 Changes **7750 files changed** (+11270 additions, -11989 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+9 -0) ➕ `.github/workflows/ci.yml` (+19 -0) 📝 `.gitignore` (+1 -0) ➕ `Dockerfile` (+1 -0) 📝 `LICENSE` (+100 -58) ➕ `Makefile` (+43 -0) 📝 `README.md` (+81 -31) ➖ `docs/contact.md` (+0 -62) 📝 `docs/credits.md` (+18 -13) ➕ `docs/css/custom.css` (+274 -0) ➕ `docs/developer-guide/checklists/web-security.md` (+1 -0) ➕ `docs/developer-guide/clients/go.md` (+111 -0) 📝 `docs/developer-guide/code-quality.md` (+111 -20) 📝 `docs/developer-guide/configuration.md` (+3 -2) 📝 `docs/developer-guide/directories.md` (+1 -1) 📝 `docs/developer-guide/documentation.md` (+17 -58) ➕ `docs/developer-guide/faq.md` (+11 -0) ➕ `docs/developer-guide/img/CLA.png` (+0 -0) ➕ `docs/developer-guide/img/CLAAgree.png` (+0 -0) ➕ `docs/developer-guide/img/DashboardUntranslated.png` (+0 -0) _...and 80 more files_ </details> ### 📄 Description This explains, how to configure HAPROXY (WebSocket) connections between your client and backend services. Example: # frontend connection handling # 'photo' is the name of the subdomain acl photo hdr(host) -i photo.example.com use_backend be_photo_ipvANY if photo aclcrt_fe_http # backend config # be_photo is the name of the backend backend be_photo_ipvANY mode http id 112 log global timeout connect 30000 timeout server 30000 retries 3 load-server-state-from-file global timeout queue 5s timeout tunnel 2m option redispatch mode http option forwardfor no option httpclose http-request set-header Host photo.example.com http-request del-header X-Frame-Options http-request del-header Connection http-request add-header X-Frame-Options SAMEORIGIN http-request add-header Connection Upgrade # Websocket configuration acl is_websocket hdr(Upgrade) -i WebSocket acl is_websocket hdr_beg(Host) -i ws # photoprism ip address and port server photo x.x.x.x:2342 id 106 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 16:47:54 +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/photoprism-docs#140
No description provided.