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