From c022f2ba2e574cdc6df01fd6302032640c12cdd4 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 4 Jan 2022 12:41:22 -0800 Subject: feat(wpcarro/diogenes): Support monsterpoker.app 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 Autosubmit: wpcarro --- users/wpcarro/clients/monsterpoker/default.nix | 6 ++++++ users/wpcarro/clients/monsterpoker/index.html | 24 ++++++++++++++++++++++++ users/wpcarro/nixos/diogenes/default.nix | 20 ++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 users/wpcarro/clients/monsterpoker/default.nix create mode 100644 users/wpcarro/clients/monsterpoker/index.html (limited to 'users') 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 @@ + + + + Buy Monster Poker + + + + + + +

+ + Buy Monster Poker today! + +

+ + 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; + }; }; }; }; -- cgit 1.4.1