diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-30T14·20-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-08T05·31+0000 |
commit | 504a409bd224a88fa98fbf86ff0a6bac3d4a111d (patch) | |
tree | d285ca166d373dd4cbac59718a796a009e630479 | |
parent | 39e59c740d9e9a921fe7009453724776adc8feb5 (diff) |
fix(wpcarro/diogenes): Launch billandhiscomputer.com r/3532
These are now available at https://billandhiscomputer.com. I still need to update the website copy and transfer wpcarro.dev over from Google Domains. I think I prefer billandhiscomputer (username bill, bill_and_his_computer, bill-and-his-computer, the_real_bill), so I may deprecate wpcarro. We'll see... Change-Id: Ia7831ee4813e2cf639047d22d59d302a50e06e66 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4748 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
-rw-r--r-- | users/wpcarro/nixos/diogenes/default.nix | 103 |
1 files changed, 51 insertions, 52 deletions
diff --git a/users/wpcarro/nixos/diogenes/default.nix b/users/wpcarro/nixos/diogenes/default.nix index 7cc6443a568d..13fb046a2457 100644 --- a/users/wpcarro/nixos/diogenes/default.nix +++ b/users/wpcarro/nixos/diogenes/default.nix @@ -18,7 +18,7 @@ in wpcarro.terraform.googleCloudVM { }; resource.google_dns_record_set."${name}" = { - name = "${name}.${domainName}."; + name = "${domainName}."; type = "A"; ttl = 300; # 5m managed_zone = "\${google_dns_managed_zone.${name}.name}"; @@ -92,57 +92,56 @@ in wpcarro.terraform.googleCloudVM { # }; # TODO(wpcarro): Re-enable this after debugging ACME and NXDOMAIN. - # depot.quassel = { - # enable = true; - # acmeHost = domainName; - # bindAddresses = [ - # "0.0.0.0" - # ]; - # }; - # - # journaldriver = { - # enable = true; - # logStream = "home"; - # googleCloudProject = "wpcarros-infrastructure"; - # applicationCredentials = "/etc/gcp/key.json"; - # }; - # - # - # nginx = { - # enable = true; - # enableReload = true; - # - # recommendedTlsSettings = true; - # recommendedGzipSettings = true; - # recommendedProxySettings = true; - # - # # for journaldriver - # commonHttpConfig = '' - # log_format json_combined escape=json - # '{' - # '"remote_addr":"$remote_addr",' - # '"method":"$request_method",' - # '"host":"$host",' - # '"uri":"$request_uri",' - # '"status":$status,' - # '"request_size":$request_length,' - # '"response_size":$body_bytes_sent,' - # '"response_time":$request_time,' - # '"referrer":"$http_referer",' - # '"user_agent":"$http_user_agent"' - # '}'; - # - # access_log syslog:server=unix:/dev/log,nohostname json_combined; - # ''; - # - # virtualHosts = { - # "${domainName}" = { - # addSSL = true; - # enableACME = true; - # root = wpcarro.website.root; - # }; - # }; - # }; + depot.quassel = { + enable = true; + acmeHost = domainName; + bindAddresses = [ + "0.0.0.0" + ]; + }; + + journaldriver = { + enable = true; + logStream = "home"; + googleCloudProject = "wpcarros-infrastructure"; + applicationCredentials = "/etc/gcp/key.json"; + }; + + nginx = { + enable = true; + enableReload = true; + + recommendedTlsSettings = true; + recommendedGzipSettings = true; + recommendedProxySettings = true; + + # for journaldriver + commonHttpConfig = '' + log_format json_combined escape=json + '{' + '"remote_addr":"$remote_addr",' + '"method":"$request_method",' + '"host":"$host",' + '"uri":"$request_uri",' + '"status":$status,' + '"request_size":$request_length,' + '"response_size":$body_bytes_sent,' + '"response_time":$request_time,' + '"referrer":"$http_referer",' + '"user_agent":"$http_user_agent"' + '}'; + + access_log syslog:server=unix:/dev/log,nohostname json_combined; + ''; + + virtualHosts = { + "${domainName}" = { + addSSL = true; + enableACME = true; + root = wpcarro.website.root; + }; + }; + }; }; system.stateVersion = "21.11"; |