mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
big m
This commit is contained in:
@@ -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 -"
|
||||
];
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
host = "0.0.0.0";
|
||||
dataDir = "/mnt/services/trilium";
|
||||
};
|
||||
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"z /mnt/services/trilium 0750 trilium trilium -"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user