Remove Content-Length header for requests to /api/lnauth (#413)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-08-15 19:52:56 +02:00 committed by GitHub
parent e4831e65d5
commit 7f5ae916e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;