biotite: move services to new machines and new domain
- related services: forgejo, miniflux, vaultwarden - moved from xinyang.life to xiny.li - clean up modules
This commit is contained in:
parent
947e97ce4e
commit
ad9c205fc5
18 changed files with 263 additions and 670 deletions
25
machines/biotite/services/vaultwarden.nix
Normal file
25
machines/biotite/services/vaultwarden.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, my-lib, ... }:
|
||||
let
|
||||
inherit (my-lib.settings) vaultwardenUrl;
|
||||
in
|
||||
{
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
dbBackend = "sqlite";
|
||||
config = {
|
||||
DOMAIN = "${vaultwardenUrl}";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8222;
|
||||
|
||||
ROCKET_LOG = "normal";
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
virtualHosts.${vaultwardenUrl}.extraConfig = with config.services.vaultwarden.config; ''
|
||||
reverse_proxy ${ROCKET_ADDRESS}:${toString ROCKET_PORT}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue