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: ebil-club customPaths

june fe156c68 f2f3ae2e

+22 -48
+19 -21
systems/seber/services/ebil-club.nix
··· 19 19 servedHost = if canonical != null then canonical else defaultHost; 20 20 21 21 home = "/var/ebil.club/${name}"; 22 - rootDir = "${home}/${defaultHost}"; 22 + rootDir = "${home}/root"; 23 23 24 - customLocations = lib.foldlAttrs ( 25 - acc: dir: paths: 26 - acc 27 - // lib.listToAttrs ( 28 - map (p: { 29 - name = "/${p}/"; 30 - value = { 31 - alias = "${home}/${dir}/"; 32 - extraConfig = "try_files $uri $uri/ =404;"; 33 - }; 34 - }) paths 35 - ) 36 - ) { } customPaths; 24 + customLocations = lib.mapAttrs' (dir: p: { 25 + name = "/${dir}/"; 26 + value = { 27 + alias = "${home}/${p}/"; 28 + extraConfig = '' 29 + try_files $uri $uri/ =404; 30 + '' 31 + + lib.optionalString (dir == "xrpc") '' 32 + default_type application/json; 33 + ''; 34 + }; 35 + }) customPaths; 37 36 in 38 37 { 39 38 services.nginx.virtualHosts = { ··· 91 90 92 91 systemd.tmpfiles.rules = [ 93 92 "d ${home} 0750 ${name} nginx -" 94 - "d ${home}/${defaultHost} 2750 ${name} nginx -" 93 + "d ${home}/root 2750 ${name} nginx -" 95 94 ] 96 95 ++ lib.mapAttrsToList (dir: _: "d ${home}/${dir} 2750 ${name} nginx -") customPaths; 97 96 }; ··· 112 111 ]; 113 112 canonical = "evergarden.moe"; 114 113 customPaths = { 115 - gitea = [ "gitea" ]; 116 - userstyles = [ "userstyles" ]; 117 - bsky-feed = [ 118 - ".well-known" 119 - "xrpc" 120 - ]; 114 + gitea = "gitea"; 115 + userstyles = "userstyles"; 116 + 117 + ".well-known" = "bsky-feed/.well-known"; 118 + "xrpc" = "bsky-feed/xrpc"; 121 119 }; 122 120 }) 123 121 (mkSite {
+3 -27
systems/seber/services/robin.nix
··· 38 38 { 39 39 locations = { 40 40 "/" = { 41 - root = "/var/ebil.club/robin/robin.ebil.club"; 41 + root = "/var/ebil.club/robin/root"; 42 42 index = "index.html"; 43 43 extraConfig = "try_files $uri $uri/ =404;"; 44 44 }; ··· 50 50 ''; 51 51 }; 52 52 "/index.txt" = { 53 - root = "/var/ebil.club/robin/robin.ebil.club"; 53 + root = "/var/ebil.club/robin/root"; 54 54 extraConfig = "try_files /index.txt @curl_fallback;"; 55 55 }; 56 56 "/start.robinwobin.dev".return = "302 https://start.robinwobin.dev"; ··· 65 65 { 66 66 locations = { 67 67 "/" = { 68 - root = "/var/ebil.club/robin/robin.ebil.club/start.robinwobin.dev"; 68 + root = "/var/ebil.club/robin/start"; 69 69 index = "index.html"; 70 70 extraConfig = "try_files $uri $uri/ @fallback;"; 71 71 }; ··· 81 81 // tls 82 82 ); 83 83 }; 84 - 85 - /* 86 - services.nginx.virtualHosts = { 87 - "robinwobin.dev" = ( 88 - { 89 - locations."/" = { 90 - proxyPass = "http://127.0.0.1:8008"; 91 - extraConfig = '' 92 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 93 - proxy_set_header X-Forwarded-Proto $scheme; 94 - proxy_set_header Host $host; 95 - ''; 96 - }; 97 - } 98 - // tls 99 - ); 100 - "robin.ebil.club" = ( 101 - { 102 - locations."/".return = "307 https://robinwobin.dev$request_uri"; 103 - } 104 - // tls 105 - ); 106 - }; 107 - */ 108 84 }