about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/wpcarro/clients/monsterpoker/default.nix6
-rw-r--r--users/wpcarro/clients/monsterpoker/index.html24
-rw-r--r--users/wpcarro/nixos/diogenes/default.nix20
3 files changed, 50 insertions, 0 deletions
diff --git a/users/wpcarro/clients/monsterpoker/default.nix b/users/wpcarro/clients/monsterpoker/default.nix
new file mode 100644
index 000000000000..0e079261fb6a
--- /dev/null
+++ b/users/wpcarro/clients/monsterpoker/default.nix
@@ -0,0 +1,6 @@
+{ depot, pkgs, ... }:
+
+pkgs.runCommandNoCC "monsterpoker.app" {} ''
+  mkdir -p $out
+  cp ${./index.html} $out/index.html
+''
diff --git a/users/wpcarro/clients/monsterpoker/index.html b/users/wpcarro/clients/monsterpoker/index.html
new file mode 100644
index 000000000000..100108c3f2bf
--- /dev/null
+++ b/users/wpcarro/clients/monsterpoker/index.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <title>Buy Monster Poker</title>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <script src="https://cdn.tailwindcss.com"></script>
+    <script>
+      tailwind.config = {
+        theme: {
+          extend: {},
+        },
+      };
+    </script>
+  </head>
+  <body class="bg-cyan-900 container mx-auto">
+    <h1 class="text-cyan-300 text-6xl text-center pt-10">
+      <a class="hover:underline"
+         href="https://monsterpoker.myshopify.com/products/monster-poker-republic">
+        Buy Monster Poker <b>today</b>!
+      </a>
+    </h1>
+  </body>
+</html>
diff --git a/users/wpcarro/nixos/diogenes/default.nix b/users/wpcarro/nixos/diogenes/default.nix
index 2ddc668a5d10..ee4990cc35f4 100644
--- a/users/wpcarro/nixos/diogenes/default.nix
+++ b/users/wpcarro/nixos/diogenes/default.nix
@@ -12,6 +12,7 @@ in wpcarro.terraform.googleCloudVM {
 
   # DNS configuration
   extraConfig = {
+    # billandhiscomputer.com
     resource.google_dns_managed_zone."${name}" = {
       inherit name;
       dns_name = "${domainName}.";
@@ -30,6 +31,20 @@ in wpcarro.terraform.googleCloudVM {
         public_ptr_domain_name = "${domainName}.";
       };
     };
+
+    # monsterpoker.app
+    resource.google_dns_managed_zone."monsterpoker" = {
+      name = "monsterpoker";
+      dns_name = "monsterpoker.app.";
+    };
+
+    resource.google_dns_record_set."monsterpoker" = {
+      name = "monsterpoker.app.";
+      type = "A";
+      ttl = 300; # 5m
+      managed_zone = "\${google_dns_managed_zone.monsterpoker.name}";
+      rrdatas = ["\${google_compute_instance.${name}.network_interface[0].access_config[0].nat_ip}"];
+    };
   };
 
   configuration = {
@@ -149,6 +164,11 @@ in wpcarro.terraform.googleCloudVM {
             enableACME = true;
             root = wpcarro.website.root;
           };
+          "monsterpoker.app" = {
+            addSSL = true;
+            enableACME = true;
+            root = wpcarro.clients.monsterpoker;
+          };
         };
       };
     };