about summary refs log tree commit diff
path: root/users/wpcarro/nixos/diogenes
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-01-04T20·41-0800
committerclbot <clbot@tvl.fyi>2022-01-08T05·33+0000
commitc022f2ba2e574cdc6df01fd6302032640c12cdd4 (patch)
treefe7bebb6d837a15cb6f27de18e4c20b75554ccd2 /users/wpcarro/nixos/diogenes
parent9ea66aee06b49653fe990fa9c81e2687c80f8327 (diff)
feat(wpcarro/diogenes): Support monsterpoker.app r/3541
Deploy dummy Shopify site as both a learning exercise and proof-of-concept for
Raf's card game, Monster Poker.

Change-Id: I7bc91dcbf4e171c5e169140f5e9d811303e1285f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4787
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/nixos/diogenes')
-rw-r--r--users/wpcarro/nixos/diogenes/default.nix20
1 files changed, 20 insertions, 0 deletions
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;
+          };
         };
       };
     };