add memos to alexandria; remove pairdrop from alexandria
This commit is contained in:
parent
3b5c17df7c
commit
a23e7650ea
3 changed files with 25 additions and 14 deletions
23
hosts/servers/alexandria/memos.nix
Normal file
23
hosts/servers/alexandria/memos.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers."memos" = {
|
||||
image = "docker.io/neosmemo/memos:stable";
|
||||
ports = [ "${config.ports.memos}:5230" ];
|
||||
environment = {
|
||||
TZ = "America/Bahia";
|
||||
};
|
||||
volumes = [ "/data/memos/:/var/opt/memos" ];
|
||||
extraOptions = [
|
||||
"--pull=newer"
|
||||
"--label=io.containers.autoupdate=registry"
|
||||
];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."notes.baduhai.dev" = {
|
||||
useACMEHost = "baduhai.dev";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.memos}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue