mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
- Enable trilium-server on 127.0.0.1:8080 - Update Caddy to proxy trilium
25 lines
728 B
Nix
25 lines
728 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.caddy = {
|
|
enable = true;
|
|
|
|
# zipline
|
|
virtualHosts."i.toast.name".extraConfig = ''
|
|
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:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
|
'';
|
|
|
|
# tailscale
|
|
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
|
|
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}
|
|
}
|
|
'';
|
|
};
|
|
}
|