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:
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user