Node.js/Express-Server als Ersatz für Cloudflare Pages Functions + D1 (läuft auf eigenem Server statt Cloudflare)
Build & Deploy / deploy (push) Waiting to run
Build & Deploy / deploy (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Vorlage — echte Werte kommen in eine eigene ".env"-Datei (wird nie eingecheckt/committed,
|
||||
# siehe .gitignore), niemals hier direkt eintragen.
|
||||
|
||||
# Wo die SQLite-Datenbankdatei liegt (außerhalb des Programmcodes, siehe db.js)
|
||||
DB_PATH=/var/lib/vandiy-shop/vandiy-shop.db
|
||||
|
||||
# Port, auf dem der Node-Server lokal lauscht (Caddy leitet von außen dorthin weiter)
|
||||
PORT=4000
|
||||
|
||||
# Zugangscode-Schranke (ganze Seite) — selbst gewählte, zufällige Werte
|
||||
SITE_ACCESS_SECRET=
|
||||
SITE_ACCESS_CODE_QCIGA=
|
||||
SITE_ACCESS_CODE_VANVAN=
|
||||
|
||||
# Zweite Schranke für /verwaltung/ (eigenes Signier-Geheimnis, geprüfter Code ist derselbe wie oben)
|
||||
VERWALTUNG_SESSION_SECRET=
|
||||
|
||||
# Kundenkonto-Sitzungen (Google-/PayPal-Login)
|
||||
CUSTOMER_SESSION_SECRET=
|
||||
|
||||
# Sobald der Shop für echte Kund:innen live gehen soll: auf "true" setzen
|
||||
SITE_PUBLIC=false
|
||||
|
||||
# PayPal (Zahlung + "Log in with PayPal") — aus dem PayPal-Entwickler-Dashboard
|
||||
PAYPAL_ENV=sandbox
|
||||
PAYPAL_CLIENT_ID=
|
||||
PAYPAL_CLIENT_SECRET=
|
||||
|
||||
# Google-Login — aus der Google Cloud Console
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
|
||||
# E-Mail-Versand (Bestellbenachrichtigungen) — aus resend.com
|
||||
RESEND_API_KEY=
|
||||
Reference in New Issue
Block a user