From 8ebae209b343a91ba67ed1a1c218b62408f7b8c8 Mon Sep 17 00:00:00 2001 From: "Erwann Lagouche (AirOne01)" <21955960+AirOne01@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:29:35 +0100 Subject: [PATCH] fix: patch some website config issues --- modules/core/shell.nix | 2 ++ modules/srv/traefik.nix | 4 ++-- pkgs/website/config.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/core/shell.nix b/modules/core/shell.nix index 15e79d4..31011e6 100644 --- a/modules/core/shell.nix +++ b/modules/core/shell.nix @@ -41,6 +41,8 @@ gtm = "git merge"; gtma = "git merge --abort"; gtmc = "git merge --continue"; + gtr = "git restore"; + gtrs = "git reset"; # just jts = "just switch"; diff --git a/modules/srv/traefik.nix b/modules/srv/traefik.nix index fa730ac..ffb6655 100644 --- a/modules/srv/traefik.nix +++ b/modules/srv/traefik.nix @@ -86,8 +86,8 @@ in { ]; root = websitePackage; locations."/" = { + # NixOS already handles mime types, no need to add them to the NGINX config extraConfig = '' - include ${pkgs.nginx}/conf/mime.types; autoindex off; try_files $uri $uri/index.html $uri.html =404; ''; @@ -120,7 +120,7 @@ in { rule = "Host(`git.air1.one`)"; service = "gitea"; entryPoints = ["websecure"]; - tls = {}; + tls.certResolver = "le"; }; services.gitea.loadBalancer.servers = [ {url = "http://127.0.0.1:3031";} diff --git a/pkgs/website/config.toml b/pkgs/website/config.toml index af66324..775951b 100644 --- a/pkgs/website/config.toml +++ b/pkgs/website/config.toml @@ -1,4 +1,4 @@ -base_url = "http://localhost" +base_url = "http://air1.one" theme = "zola.386" default_language = "en"