nix-config/hosts/servers/alexandria/librespeed.nix
2023-09-01 10:47:47 -03:00

17 lines
534 B
Nix

{ inputs, config, pkgs, lib, ... }:
{
virtualisation.oci-containers.containers."librespeed" = {
image = "lscr.io/linuxserver/librespeed:latest";
environment = { TZ = "America/Bahia"; };
ports = [ "${config.ports.librespeed}:80" ];
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."librespeed.baduhai.dev" = {
useACMEHost = "baduhai.dev";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}";
};
}