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.

seber: yay maivi

june dfba010a 7d0683f6

+12 -21
+12 -21
systems/seber/services/robin.nix
··· 25 25 after = [ "network.target" ]; 26 26 wantedBy = [ "multi-user.target" ]; 27 27 28 + environment.MAIVI_PORT = "5452"; 29 + 28 30 unitConfig.ConditionUser = "robin"; 29 31 serviceConfig = { 30 32 ExecStart = "${config.users.users.robin.home}/maivi"; 33 + WorkingDirectory = "${config.users.users.robin.home}/.maivi"; 31 34 Restart = "on-failure"; 32 35 RestartSec = 20; 33 36 }; 34 37 }; 38 + 39 + systemd.tmpfiles.rules = [ "d ${config.users.users.robin.home}/.maivi 0750 robin users -" ]; 35 40 36 41 services.nginx.virtualHosts = { 37 42 "robinwobin.dev" = ( 38 43 { 39 - locations = { 40 - "/" = { 41 - root = "/var/ebil.club/robin/root"; 42 - index = "index.html"; 43 - extraConfig = "try_files $uri $uri/ =404;"; 44 - }; 45 - "= /" = { 46 - extraConfig = '' 47 - if ($http_user_agent ~* "curl") { 48 - return 302 /index.txt; 49 - } 50 - ''; 51 - }; 52 - "/index.txt" = { 53 - root = "/var/ebil.club/robin/root"; 54 - extraConfig = "try_files /index.txt @curl_fallback;"; 55 - }; 56 - "/start.robinwobin.dev".return = "302 https://start.robinwobin.dev"; 57 - "@curl_fallback".return = 58 - "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'"; 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 + ''; 59 51 }; 60 - extraConfig = "error_page 404 /404.html;"; 61 52 } 62 53 // tls 63 54 );