audiobookshelf: fix websockets and CSP
This commit is contained in:
parent
b893da35be
commit
9b63a5e56f
2 changed files with 9 additions and 2 deletions
|
@ -19,7 +19,14 @@ in
|
|||
${cfg.domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:8234/";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8234/";
|
||||
extraConfig = ''
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue