Skip to content

Commit

Permalink
trying to fix the 500s
Browse files Browse the repository at this point in the history
  • Loading branch information
cvalaas committed Jan 30, 2025
1 parent 64ba559 commit 92c5997
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ backend mastodon-report-api
http-request set-header X-Forwarded-Proto https if { ssl_fc } # For Proto
http-request add-header X-Real-Ip %[src] # Custom header with src IP
option forwardfor if-none # X-forwarded-for
server mastodon "${MASTODON_SERVICE_AND_PORT-web.moztodon-stage.svc.cluster.local:8080}" maxconn "${MAXCONN_MASTODON-50}"
#server mastodon "${MASTODON_SERVICE_AND_PORT-web.moztodon-stage.svc.cluster.local:8080}" maxconn "${MAXCONN_MASTODON-50}"
server mastodon "www.mozilla.org"
http-response set-header X-Server mastodon

backend fxa-redirs
Expand Down Expand Up @@ -85,7 +86,8 @@ backend mastodon
http-request set-header X-Forwarded-Proto https if { ssl_fc } # For Proto
http-request add-header X-Real-Ip %[src] # Custom header with src IP
option forwardfor if-none # X-forwarded-for
server mastodon "${MASTODON_SERVICE_AND_PORT-web.moztodon-stage.svc.cluster.local:8080}" maxconn "${MAXCONN_MASTODON-50}"
#server mastodon "${MASTODON_SERVICE_AND_PORT-web.moztodon-stage.svc.cluster.local:8080}" maxconn "${MAXCONN_MASTODON-50}"
server mastodon "www.mozilla.org"
http-response set-header X-Server mastodon

backend streaming
Expand All @@ -95,5 +97,6 @@ backend streaming
http-request set-header X-Forwarded-Proto https if { ssl_fc } # For Proto
http-request add-header X-Real-Ip %[src] # Custom header with src IP
option forwardfor if-none # X-forwarded-for
server mastodon "${MASTODON_STREAMING_SERVICE_AND_PORT-streaming.moztodon-stage.svc.cluster.local:4000}" maxconn "${MAXCONN_MASTODON_STREAMING-50}"
#server mastodon "${MASTODON_STREAMING_SERVICE_AND_PORT-streaming.moztodon-stage.svc.cluster.local:4000}" maxconn "${MAXCONN_MASTODON_STREAMING-50}"
server mastodon "www.mozilla.org"
http-response set-header X-Server mastodon-streaming

0 comments on commit 92c5997

Please sign in to comment.