1
0
Fork 0

anonymous-overflow: Include static files

This commit is contained in:
Daniel Kempkens 2023-02-15 22:04:11 +01:00
parent 0d1181815a
commit bb911d8842
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 14 additions and 8 deletions

View file

@ -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": {

View file

@ -16,7 +16,7 @@ in
../nixos/cloudflared.nix
#../nixos/anonymous-overflow.nix
../nixos/anonymous-overflow.nix
(import ../nixos/freshrss.nix (args // { inherit secret; }))

View file

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