mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-24 13:21:10 +00:00
Fix http_accept header in nginx.conf for docker install (#209)
This commit is contained in:
parent
a9a90568f1
commit
d0ec1a8d2b
1 changed files with 1 additions and 4 deletions
|
@ -59,10 +59,7 @@ http {
|
|||
# don't change lemmy-ui or lemmy here, they refer to the upstream definitions on top
|
||||
set $proxpass "http://lemmy-ui";
|
||||
|
||||
if ($http_accept = "application/activity+json") {
|
||||
set $proxpass "http://lemmy";
|
||||
}
|
||||
if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
|
||||
if ($http_accept ~ "^application/.*$") {
|
||||
set $proxpass "http://lemmy";
|
||||
}
|
||||
if ($request_method = POST) {
|
||||
|
|
Loading…
Reference in a new issue