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

Configure Feed

Select the types of activity you want to include in your feed.

seber: static robin yet again

june (Jul 13, 2026, 5:25 PM +0200) 35a5c119 cf805ea0

+33 -7
+33 -7
systems/seber/services/robin.nix
··· 41 41 services.nginx.virtualHosts = { 42 42 "robinwobin.dev" = ( 43 43 { 44 - locations."/" = { 45 - proxyPass = "http://127.0.0.1:5452"; 46 - extraConfig = '' 47 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 48 - proxy_set_header X-Forwarded-Proto $scheme; 49 - proxy_set_header Host $host; 50 - ''; 44 + # locations."/" = { 45 + # proxyPass = "http://127.0.0.1:5452"; 46 + # extraConfig = '' 47 + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 48 + # proxy_set_header X-Forwarded-Proto $scheme; 49 + # proxy_set_header Host $host; 50 + # ''; 51 + # }; 52 + 53 + # STATIC START ========================================================================== 54 + 55 + locations = { 56 + "/" = { 57 + root = "/var/ebil.club/robin/root"; 58 + index = "index.html"; 59 + extraConfig = "try_files $uri $uri/ =404;"; 60 + }; 61 + "= /" = { 62 + extraConfig = '' 63 + if ($http_user_agent ~* "curl") { 64 + return 302 /index.txt; 65 + } 66 + ''; 67 + }; 68 + "/index.txt" = { 69 + root = "/var/ebil.club/robin/root"; 70 + extraConfig = "try_files /index.txt @curl_fallback;"; 71 + }; 72 + "@curl_fallback".return = 73 + "200 'hi! this site is best viewed in a web browser :3 if u still want to curl it, try setting a different user-agent header'"; 51 74 }; 75 + extraConfig = "error_page 404 /404.html;"; 76 + 77 + # STATIC END ============================================================================ 52 78 } 53 79 // tls 54 80 );