summaryrefslogtreecommitdiff
path: root/installation
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-09-21 16:10:31 -0500
committerMark Felder <feld@FreeBSD.org>2020-09-21 16:10:31 -0500
commit75f6e5e8b7e0408241a633daba7fde8b51dde8ca (patch)
tree160e70ea198a28c7e1c3efb1fd3b63bed7647c90 /installation
parent59680f27ff0e1da2eb3c0506e3655f5c7b86a7ec (diff)
Add FedSockets config
Diffstat (limited to 'installation')
-rw-r--r--installation/pleroma.nginx14
1 files changed, 14 insertions, 0 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
index d301ca615..a3b3394f1 100644
--- a/installation/pleroma.nginx
+++ b/installation/pleroma.nginx
@@ -63,6 +63,7 @@ server {
# the nginx default is 1m, not enough for large media uploads
client_max_body_size 16m;
+ ignore_invalid_headers off;
location / {
proxy_http_version 1.1;
@@ -91,4 +92,17 @@ server {
chunked_transfer_encoding on;
proxy_pass http://127.0.0.1:4000;
}
+
+ location /api/fedsocket/v1 {
+ proxy_http_version 1.1;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header Host $host;
+
+ # The Important Websocket Bits!
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "Upgrade";
+ proxy_request_buffering off;
+ proxy_pass http://127.0.0.1:4000/api/fedsocket/v1;
+ }
}