diff options
author | tdback <tyler@tdback.net> | 2025-03-11 19:46:10 -0400 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-03-11 19:46:10 -0400 |
commit | a9ed765caf5b36d10e28452800b060b1404e19a5 (patch) | |
tree | b7a4a480463596fc4f08731fbbed4516fcc9d7d7 /content/posts/switching-to-hugo-two/index.md | |
parent | 1c84f09b044250b2414af00f54bd5081f41b9d0c (diff) |
set codeberg as primary remote forge
Diffstat (limited to 'content/posts/switching-to-hugo-two/index.md')
-rw-r--r-- | content/posts/switching-to-hugo-two/index.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/content/posts/switching-to-hugo-two/index.md b/content/posts/switching-to-hugo-two/index.md index 22f7d56..f7a68bb 100644 --- a/content/posts/switching-to-hugo-two/index.md +++ b/content/posts/switching-to-hugo-two/index.md @@ -26,7 +26,7 @@ same, regardless of the server it's running on. This alleviates the headache of dependency management and reduces setup times down to just `nixos-rebuild switch`, should I have the need to move my website to different hardware. The [nix flake for my system -configurations](https://github.com/tdback/nix-config) is tracked in a remote +configurations](https://git.tdback.net/nix-config) is tracked in a remote repository with `git`, making configuration changes a single `git pull` away. The following module defined in `modules/services/proxy/default.nix` enables @@ -34,14 +34,20 @@ the caddy service using the `caddy` package found in [nixpkgs](https://search.nixos.org/packages?channel=24.11&query=caddy), and opens up both TCP ports 80 and 443 to accept inbound HTTP/S traffic. ```nix -{ pkgs, ... }: +{ + pkgs, + ... +}: { services.caddy = { enable = true; package = pkgs.caddy; }; - networking.firewall.allowTCPPorts = [ 80 443 ]; + networking.firewall.allowTCPPorts = [ + 80 + 443 + ]; } ``` @@ -53,7 +59,6 @@ server. I've also enabled both gzip and zstd support for compressing web server responses. ```nix -{ ... }: { services.caddy.virtualHosts = { "tdback.net".extraConfig = '' |