fix mkNginxVHosts usage; fix librespeed proxy; fix vaultwarden proxy
This commit is contained in:
parent
ee1ed3b88e
commit
c8f1b3a5e0
5 changed files with 39 additions and 11 deletions
|
|
@ -1,14 +1,37 @@
|
|||
{ lib, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
utils = import ../../utils.nix { inherit inputs lib; };
|
||||
inherit (utils) mkNginxVHosts;
|
||||
in
|
||||
|
||||
{
|
||||
systemd.services.init-librespeed-network = {
|
||||
description = "Create the network bridge for librespeed.";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "podman-librespeed.service" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = ''
|
||||
check=$(${config.virtualisation.podman.package}/bin/podman network ls | grep "librespeed" || true)
|
||||
if [ -z "$check" ]; then
|
||||
${config.virtualisation.podman.package}/bin/podman network create librespeed
|
||||
else
|
||||
echo "librespeed network already exists"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers."librespeed" = {
|
||||
image = "lscr.io/linuxserver/librespeed:latest";
|
||||
environment = {
|
||||
TZ = "America/Bahia";
|
||||
};
|
||||
networks = [ "librespeed" ];
|
||||
extraOptions = [
|
||||
"--pull=newer"
|
||||
"--label=io.containers.autoupdate=registry"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue