configuration.nix/hosts/rico2/containers/adtya.xyz.nix

15 lines
336 B
Nix
Raw Normal View History

2023-06-02 12:45:51 +05:30
{...}: {
virtualisation.oci-containers.containers."adtya.xyz" = {
image = "ghcr.io/adtya/adtya.xyz:latest";
ports = ["3000:80"];
};
services.caddy.virtualHosts."adtya.xyz" = {
hostName = "adtya.xyz";
2023-06-02 12:52:48 +05:30
serverAliases = ["www.adtya.xyz"];
2023-06-02 12:45:51 +05:30
extraConfig = ''
reverse_proxy http://127.0.0.1:3000
'';
};
}