25 lines
450 B
Nix
25 lines
450 B
Nix
|
{ pkgs, config, ... }: {
|
||
|
|
||
|
virtualisation.oci-containers.containers = {
|
||
|
binternet = {
|
||
|
image = "ghcr.io/ahwxorg/binternet:latest";
|
||
|
ports = [
|
||
|
"7382:80"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
services.nginx = {
|
||
|
virtualHosts = {
|
||
|
"binternet.${config.networking.domain}" = {
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
|
||
|
locations."/" = {
|
||
|
proxyPass = " http://127.0.0.1:7382";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|