Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Route /health checks through to the main synapse worker.
Browse files Browse the repository at this point in the history
Avoids the containers being marked unhealthy as the HEALTHCHECK from
matrixdotorg/synapse is inherited by this container.
  • Loading branch information
michaelkaye committed Nov 25, 2021
1 parent e18ce18 commit 05d4115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/conf-workers/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ server {
{{ worker_locations }}

# Send all other traffic to the main process
location ~* ^(\\/_matrix|\\/_synapse) {
location ~* ^(\\/_matrix|\\/_synapse|\\/health) {
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down

0 comments on commit 05d4115

Please sign in to comment.