mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-12 02:04:09 -05:00
30 lines
577 B
Nix
30 lines
577 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
services = {
|
|
trilium-server = {
|
|
enable = true;
|
|
package = pkgs.trilium-next-server;
|
|
instanceName = "WanderingCrow";
|
|
port = 8090;
|
|
};
|
|
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"notes.wanderingcrow.net" = {
|
|
forceSSL = true;
|
|
useACMEHost = "notes.wanderingcrow.net";
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8090";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|