Serveur Go : recherche GitHub par critères
- /api/search traduit les filtres en requête GitHub (langage, étoiles, activité, création, licence, topic, forks, archivés, good first issues) - cache mémoire des recherches identiques (CACHE_TTL) et suivi du quota - /api/status, /healthz, authentification basique optionnelle - Dockerfile et docker-compose.yml Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
04379490f1
commit
1885488d05
9 files changed
+472
No files matched your search
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
searchgit:
|
||||
build: .
|
||||
container_name: searchgit
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${HTTP_PORT:-8080}:8080"
|
||||
environment:
|
||||
GITHUB_TOKEN: ${GITHUB_TOKEN:-} # optional: 30 searches/min instead of 10
|
||||
CACHE_TTL: ${CACHE_TTL:-5m} # identical searches are served from memory
|
||||
AUTH_USER: ${AUTH_USER:-} # leave empty to disable authentication
|
||||
AUTH_PASS: ${AUTH_PASS:-}
|
||||
Reference in new issue
Block a user