From 887ad90ac7e2016e86bb4c75dbcfb5c2344f0d6e Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Sat, 12 Jul 2025 01:04:58 -0400 Subject: [PATCH] todo: finish wishthis service --- modules/services/wishthis/default.nix | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/services/wishthis/default.nix 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; + }; + }; + }; + }; +}