From 6d99b93f1a45cff91f369dc7c53bdc724d68d092 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 28 Jun 2022 10:32:41 -0700 Subject: feat(wpcarro/website): Support SSL certs for wpcarro.dev This has been sloppy for awhile... While I'm at it modularize some of my Nginx configuration. Side note: might be time to decouple the Terraform provisioning stuffs from the NixOS configuration, and this feels *too* tightly coupled. Change-Id: Ida0da5462d938b956571321a67ba1f026fb0a7de Reviewed-on: https://cl.tvl.fyi/c/depot/+/5902 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix (limited to 'users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix') diff --git a/users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix b/users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix new file mode 100644 index 0000000000..ec4e5d7302 --- /dev/null +++ b/users/wpcarro/nixos/modules/www/billandhiscomputer.com.nix @@ -0,0 +1,11 @@ +{ pkgs, depot, ... }: + +{ + config = { + services.nginx.virtualHosts."billandhiscomputer.com" = { + enableACME = true; + forceSSL = true; + root = depot.users.wpcarro.website.root; + }; + }; +} -- cgit 1.4.1