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

Configure Feed

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

aaaaaaaaaaaaaaaaaaaa

koi f8cae40c 770d5414

+44 -7
+44 -7
systems/seber/services/robin.nix
··· 40 40 services.nginx.virtualHosts = { 41 41 "robinwobin.dev" = ( 42 42 { 43 - locations."/" = { 44 - proxyPass = "http://127.0.0.1:8008"; 45 - extraConfig = '' 46 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 47 - proxy_set_header X-Forwarded-Proto $scheme; 48 - proxy_set_header Host $host; 49 - ''; 43 + locations = { 44 + "/" = { 45 + root = "/var/ebil.club/robin/robin.ebil.club"; 46 + index = "index.html"; 47 + extraConfig = "try_files $uri $uri/ =404;"; 48 + }; 49 + "= /" = { 50 + extraConfig = '' 51 + if ($http_user_agent ~* "curl") { 52 + return 302 /index.txt; 53 + } 54 + ''; 55 + }; 56 + "/index.txt" = { 57 + root = "/var/ebil.club/robin/robin.ebil.club"; 58 + extraConfig = "try_files /index.txt @curl_fallback;"; 59 + }; 60 + "@curl_fallback".return = 61 + "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'"; 50 62 }; 63 + extraConfig = "error_page 404 /404.html;"; 51 64 } 52 65 // tls 53 66 ); ··· 58 71 // tls 59 72 ); 60 73 }; 74 + 75 + /* 76 + services.nginx.virtualHosts = { 77 + "robinwobin.dev" = ( 78 + { 79 + locations."/" = { 80 + proxyPass = "http://127.0.0.1:8008"; 81 + extraConfig = '' 82 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 83 + proxy_set_header X-Forwarded-Proto $scheme; 84 + proxy_set_header Host $host; 85 + ''; 86 + }; 87 + } 88 + // tls 89 + ); 90 + "robin.ebil.club" = ( 91 + { 92 + locations."/".return = "307 https://robinwobin.dev$request_uri"; 93 + } 94 + // tls 95 + ); 96 + }; 97 + */ 61 98 }