projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59680f2
)
Add FedSockets config
author
Mark Felder
<feld@FreeBSD.org>
Mon, 21 Sep 2020 21:10:31 +0000
(16:10 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Mon, 21 Sep 2020 21:10:31 +0000
(16:10 -0500)
installation/pleroma.nginx
patch
|
blob
|
history
diff --git
a/installation/pleroma.nginx
b/installation/pleroma.nginx
index d301ca615e99bc7ba3917a62d7b89b9e56ef9ee3..a3b3394f1a4c1c532345e4afb478e2bed341e620 100644
(file)
--- 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;
# 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;
location / {
proxy_http_version 1.1;
@@
-91,4
+92,17
@@
server {
chunked_transfer_encoding on;
proxy_pass http://127.0.0.1:4000;
}
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;
+ }
}
}