Remove Content-Length header for requests to /api/lnauth (#413)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
e4831e65d5
commit
7f5ae916e9
|
@ -16,6 +16,7 @@ location / {
|
|||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Content-Length $x_content_length;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
|
|
|
@ -24,6 +24,11 @@ http {
|
|||
default "upgrade";
|
||||
}
|
||||
|
||||
map $uri $x_content_length {
|
||||
default $http_content_length;
|
||||
/api/lnauth '';
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8008 default_server;
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
|
Loading…
Reference in New Issue