Add index page with nginx
This commit is contained in:
@@ -23,16 +23,6 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.lightning-charge =
|
||||
{
|
||||
description = "lightning-charge User";
|
||||
group = "lightning-charge";
|
||||
extraGroups = [ "keys" ];
|
||||
};
|
||||
users.groups.lightning-charge = {
|
||||
name = "lightning-charge";
|
||||
};
|
||||
|
||||
systemd.services.lightning-charge =
|
||||
{ description = "Run lightning-charge";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
@@ -42,7 +32,9 @@ in {
|
||||
{
|
||||
EnvironmentFile = "/secrets/lightning-charge-api-token";
|
||||
ExecStart = "${pkgs.lightning-charge.package}/bin/charged -l ${config.services.clightning.dataDir} -d ${config.services.clightning.dataDir}/lightning-charge.db";
|
||||
|
||||
# Unfortunately c-lightning doesn't allow setting the permissions of the rpc socket,
|
||||
# so this must run as the clightning user
|
||||
# https://github.com/ElementsProject/lightning/issues/1366
|
||||
User = "clightning";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "10s";
|
||||
|
||||
Reference in New Issue
Block a user