refactoring for iServer and isWorkstation: part 3
This commit is contained in:
parent
021ab24e79
commit
6addea64c4
36 changed files with 236 additions and 227 deletions
22
hosts/alexandria/librespeed.nix
Normal file
22
hosts/alexandria/librespeed.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers."librespeed" = {
|
||||
image = "lscr.io/linuxserver/librespeed:latest";
|
||||
environment = {
|
||||
TZ = "America/Bahia";
|
||||
};
|
||||
ports = [ "${config.ports.librespeed}:80" ];
|
||||
extraOptions = [
|
||||
"--pull=newer"
|
||||
"--label=io.containers.autoupdate=registry"
|
||||
];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."speed.baduhai.dev" = {
|
||||
useACMEHost = "baduhai.dev";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue