Add LNBits service configuration and Nginx integration
Introduced a new configuration for the LNBits service, enabling it with customizable options such as host, port, and environment variables. The Nginx configuration has been updated to include WebSocket support and proxy settings for LNBits, ensuring secure and efficient handling of requests. This enhances the overall web service management and modularity of the NixOS setup.
This commit is contained in:
parent
ef87fc5906
commit
0c22db4d7b
3 changed files with 208 additions and 10 deletions
|
|
@ -4,6 +4,8 @@
|
|||
imports = [
|
||||
./nginx.nix
|
||||
./pict-rs.nix
|
||||
./modules/lnbits-service.nix
|
||||
./lnbits.nix
|
||||
];
|
||||
|
||||
# Set hostname (passed as parameter)
|
||||
|
|
@ -31,16 +33,6 @@
|
|||
tryFiles = "$uri $uri/ /index.html";
|
||||
};
|
||||
};
|
||||
|
||||
# LNbits service (adjust port as needed)
|
||||
"lnbits.${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:5000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# NixOS release version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue