my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin

seber: redirect only site root to index.txt

+4 -2
+4 -2
systems/seber/services/ebil-club.nix
··· 28 28 "/" = { 29 29 root = rootDir; 30 30 index = "index.html"; 31 + extraConfig = "try_files $uri $uri/ =404;"; 32 + }; 33 + "= /" = { 31 34 extraConfig = '' 32 35 if ($http_user_agent ~* "curl") { 33 - rewrite ^ /index.txt last; 36 + return 302 /index.txt; 34 37 } 35 - try_files $uri $uri/ =404; 36 38 ''; 37 39 }; 38 40 "/index.txt" = {