mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-19 05:24:12 -05:00
34 lines
723 B
Nix
34 lines
723 B
Nix
{config, ...}: {
|
|
virtualisation.oci-containers = {
|
|
backend = "podman";
|
|
containers = {
|
|
"wishthis" = {
|
|
image = "wishthis:latest";
|
|
extraOptions = [
|
|
"--ip=10.88.0.15"
|
|
];
|
|
};
|
|
"wishthis-db" = {
|
|
image = "mariadb:latest";
|
|
extraOptions = [
|
|
"--ip=10.88.0.16"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"wishlist.wanderingcrow.net" = {
|
|
forceSSL = true;
|
|
useACMEHost = "wishlist.wanderingcrow.net";
|
|
locations."/" = {
|
|
proxyPass = "http://10.88.0.15:80";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|