mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
feat(vps): add trilium server
- Enable trilium-server on 127.0.0.1:8080 - Update Caddy to proxy trilium
This commit is contained in:
parent
31ab76fb33
commit
998f0faab6
3 changed files with 16 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.caddy = {
|
||||
|
|
@ -6,17 +6,20 @@
|
|||
|
||||
# zipline
|
||||
virtualHosts."i.toast.name".extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:3000
|
||||
reverse_proxy http://127.0.0.1:${toString config.services.zipline.settings.CORE_PORT}
|
||||
'';
|
||||
|
||||
# forgejo
|
||||
virtualHosts."git.toast.name".extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:3001
|
||||
reverse_proxy http://127.0.0.1:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
||||
'';
|
||||
|
||||
# vaultwarden
|
||||
# tailscale
|
||||
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
|
||||
reverse_proxy /vaultwarden/* http://127.0.0.1:8222
|
||||
reverse_proxy /vaultwarden/* http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}
|
||||
handle_path /trilium/* {
|
||||
reverse_proxy http://127.0.0.1:${toString config.services.trilium-server.port}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
./zipline.nix
|
||||
./caddy.nix
|
||||
./forgejo.nix
|
||||
./trilium-server.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
7
hosts/vps/modules/services/trilium-server.nix
Normal file
7
hosts/vps/modules/services/trilium-server.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.trilium-server = {
|
||||
enable = true;
|
||||
host = "127.0.0.1";
|
||||
port = 8080;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue