mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
* Nginx to caddy (#5) Convert all nginx instances to caddy instances, setup acme as well * matrix implemented
22 lines
369 B
Nix
22 lines
369 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
services = {
|
|
trilium-server = {
|
|
enable = true;
|
|
package = pkgs.trilium-next-server;
|
|
instanceName = "WanderingCrow";
|
|
port = 8090;
|
|
};
|
|
|
|
caddy = {
|
|
enable = true;
|
|
virtualHosts."notes.wanderingcrow.net".extraConfig = ''
|
|
reverse_proxy http://127.0.0.1:8090
|
|
'';
|
|
};
|
|
};
|
|
}
|