Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
7c1c0119
Unverified
Commit
7c1c0119
authored
1 year ago
by
Georg
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add HAProxy example for single port operation (#16768)
parent
cdbbf365
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/16768.doc
+1
-0
1 addition, 0 deletions
changelog.d/16768.doc
docs/reverse_proxy.md
+19
-0
19 additions, 0 deletions
docs/reverse_proxy.md
with
20 additions
and
0 deletions
changelog.d/16768.doc
0 → 100644
+
1
−
0
View file @
7c1c0119
Add HAProxy example for single port operation to reverse proxy documentation. Contributed by Georg Pfuetzenreuter (@tacerus).
This diff is collapsed.
Click to expand it.
docs/reverse_proxy.md
+
19
−
0
View file @
7c1c0119
...
@@ -186,6 +186,25 @@ Example configuration, if using a UNIX socket. The configuration lines regarding
...
@@ -186,6 +186,25 @@ Example configuration, if using a UNIX socket. The configuration lines regarding
backend matrix
backend matrix
server matrix unix@/run/synapse/main_public.sock
server matrix unix@/run/synapse/main_public.sock
```
```
Example configuration when using a single port for both client and federation traffic.
```
frontend https
bind *:443,[::]:443 ssl crt /etc/ssl/haproxy/ strict-sni alpn h2,http/1.1
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
http-request set-header X-Forwarded-For %[src]
acl matrix-host hdr(host) -i matrix.example.com matrix.example.com:443
acl matrix-sni ssl_fc_sni matrix.example.com
acl matrix-path path_beg /_matrix
acl matrix-path path_beg /_synapse/client
use_backend matrix if matrix-host matrix-path
use_backend matrix if matrix-sni
backend matrix
server matrix 127.0.0.1:8008
```
[
Delegation
](
delegate.md
)
example:
[
Delegation
](
delegate.md
)
example:
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment