diff --git a/modules/services/wishthis/default.nix b/modules/services/wishthis/default.nix new file mode 100644 index 0000000..9f45d97 --- /dev/null +++ b/modules/services/wishthis/default.nix @@ -0,0 +1,34 @@ +{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; + }; + }; + }; + }; +}