mirror of https://gitlab.crans.org/nounous/nixos
vaultwarden: ajout nginx
parent
4742dfdf7a
commit
a5ee12226c
|
@ -1,6 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./nginx.nix
|
||||
];
|
||||
|
||||
age.secrets = {
|
||||
env = {
|
||||
file = ../../secrets/vaultwarden/env.age;
|
||||
|
@ -13,6 +17,13 @@
|
|||
environmentFile = config.age.secrets.env.path;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."vaultwarden.crans.org" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8222";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.vaultwarden = {
|
||||
path = with pkgs; [ postfix ];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue