This commit is contained in:
2025-09-23 23:25:45 +03:00
parent 097d8c6903
commit 8ff84c3c87
4 changed files with 19 additions and 10 deletions
+7 -7
View File
@@ -8,18 +8,18 @@
enable = true;
openFirewall = true;
settings = {
MEMOS_MODE = "prod";
MEMOS_ADDR = "0.0.0.0";
MEMOS_PORT = "5230";
MEMOS_DATA = config.services.memos.dataDir;
MEMOS_DRIVER = "sqlite";
MEMOS_INSTANCE_URL = "http://0.0.0.0:5230";
MEMOS_MODE = "prod";
MEMOS_ADDR = "0.0.0.0";
MEMOS_PORT = "5230";
MEMOS_DATA = config.services.memos.dataDir;
MEMOS_DRIVER = "sqlite";
MEMOS_INSTANCE_URL = "http://0.0.0.0:5230";
};
# user = "${xlib.device.username}";
# group = "users";
dataDir = "/mnt/services/memos";
};
systemd.tmpfiles.rules = [
"z /mnt/services/memos 0750 memos memos -"
];
+4 -1
View File
@@ -7,7 +7,10 @@
...
}:
let
stable = import inputs.nixpkgs-stable { system = "x86_64-linux"; };
stable = import inputs.nixpkgs-stable {
system = "x86_64-linux";
config.allowUnfree = true;
};
in
{
services = {
+7 -1
View File
@@ -41,7 +41,7 @@
# }
# ];
# };
"onlyoffice" = {
"onlyoffice.local" = {
forceSSL = false;
enableACME = false;
listen = [
@@ -54,6 +54,12 @@
port = 8000;
}
];
extraConfig = ''
# Force nginx to return relative redirects. This lets the browser
# figure out the full URL. This ends up working better because it's in
# front of the reverse proxy and has the right protocol, hostname & port.
absolute_redirect off;
'';
};
# "localhost:9980" = {
# forceSSL = false;
+1 -1
View File
@@ -13,7 +13,7 @@
host = "0.0.0.0";
dataDir = "/mnt/services/trilium";
};
systemd.tmpfiles.rules = [
"z /mnt/services/trilium 0750 trilium trilium -"
];