anonymous-overflow: Include static files
This commit is contained in:
parent
0d1181815a
commit
bb911d8842
3 changed files with 14 additions and 8 deletions
12
flake.lock
12
flake.lock
|
@ -140,11 +140,11 @@
|
|||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1675935446,
|
||||
"narHash": "sha256-WajulTn7QdwC7QuXRBavrANuIXE5z+08EdxdRw1qsNs=",
|
||||
"lastModified": 1676367705,
|
||||
"narHash": "sha256-un5UbRat9TwruyImtwUGcKF823rCEp4fQxnsaLFL7CM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "2dce7f1a55e785a22d61668516df62899278c9e4",
|
||||
"rev": "da72e6fc6b7dc0c3f94edbd310aae7cd95c678b5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -206,11 +206,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1676469915,
|
||||
"narHash": "sha256-a+ttl8K0ZpuAa8aGNRkLs96kDJucYQuSk0nOXANimr4=",
|
||||
"lastModified": 1676494809,
|
||||
"narHash": "sha256-fiYopmCvMsd1Th+TpuVx6ASZe/8Y2UQoYmwuCDR5Les=",
|
||||
"owner": "nifoc",
|
||||
"repo": "nix-overlay",
|
||||
"rev": "b0326fc178ccb03207dfcc931c18a3c2c75ef003",
|
||||
"rev": "323457d116a0befd8a051655d224b3bb389ec909",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -16,7 +16,7 @@ in
|
|||
|
||||
../nixos/cloudflared.nix
|
||||
|
||||
#../nixos/anonymous-overflow.nix
|
||||
../nixos/anonymous-overflow.nix
|
||||
|
||||
(import ../nixos/freshrss.nix (args // { inherit secret; }))
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ in
|
|||
DynamicUser = true;
|
||||
StateDirectory = "anonymous-overflow";
|
||||
EnvironmentFile = [ config.age.secrets.anonymous-overflow-config.path ];
|
||||
WorkingDirectory = "${anonymous-overflow-pkg}/share/anonymous-overflow";
|
||||
ExecStart = "${anonymous-overflow-pkg}/bin/anonymousoverflow";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
|
@ -28,11 +29,16 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
root = "${anonymous-overflow-pkg}/share/anonymous-overflow/public/";
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
|
||||
|
||||
locations."/" = {
|
||||
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
|
||||
tryFiles = "$uri @proxy";
|
||||
};
|
||||
|
||||
locations."@proxy" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:8003";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue