Mercurial Hosting > hghosting
annotate src/private/tools/links.txt.luan @ 26:d3b72a8bfbe9 default tip
Add rate limiting, change moveLogs.sh to only operate on non-empty files
| author | Violet7 | 
|---|---|
| date | Sat, 01 Nov 2025 22:12:56 -0700 | 
| parents | dfc36e7ed22c | 
| children | 
| rev | line source | 
|---|---|
| 0 | 1 local Luan = require "luan:Luan.luan" | 
| 2 local error = Luan.error | |
| 3 local pairs = Luan.pairs or error() | |
| 4 local Io = require "luan:Io.luan" | |
| 5 local Http = require "luan:http/Http.luan" | |
| 6 local Shared = require "site:/lib/Shared.luan" | |
| 7 local config = Shared.config or error() | |
| 8 | |
| 9 | |
| 10 return function() | |
| 11 Io.stdout = Http.response.text_writer() | |
| 12 for _, repo in pairs(config.repos) do | |
| 13 if repo.users.backup then | |
| 14 %> | |
| 15 <%=repo.name%> | |
| 16 <% | |
| 17 end | |
| 18 end | |
| 19 end | 
