Umbenennung Pantry -> Project-Good; README mit echter Clone-URL

- Anzeigename, Paketname, Token-Key, DB-/Volume-Namen auf project_good
- README Clone-Abschnitt mit git.scarriffle.com/Scarriffle/project-good

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-22 09:24:54 +02:00
parent 639126468f
commit ea67e6c1b0
13 changed files with 30 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
# Database
database_url: str = "postgresql+psycopg2://pantry:pantry@localhost:5432/pantry"
database_url: str = "postgresql+psycopg2://project_good:project_good@localhost:5432/project_good"
# Auth / JWT
jwt_secret: str = "change-me-in-production"

View File

@@ -32,7 +32,7 @@ async def lifespan(app: FastAPI):
yield
app = FastAPI(title="Pantry Lebensmittel-Lagerverwaltung", version="1.0.0", lifespan=lifespan)
app = FastAPI(title="Project-Good Lebensmittel-Lagerverwaltung", version="1.0.0", lifespan=lifespan)
origins = ["*"] if settings.cors_origins.strip() == "*" else [
o.strip() for o in settings.cors_origins.split(",") if o.strip()

View File

@@ -33,7 +33,7 @@ def lookup_barcode(barcode: str) -> dict | None:
resp = httpx.get(
url,
timeout=settings.off_timeout_seconds,
headers={"User-Agent": "Pantry-Selfhosted/1.0 (github: pantry)"},
headers={"User-Agent": "Project-Good-Selfhosted/1.0"},
)
except httpx.HTTPError:
return None