- Added Firebase as a dependency for authentication. - Created AuthProvider to manage authentication state and user sessions. - Implemented AuthStatus component to display authentication status in the UI. - Added verifyFirebaseIdToken function to validate Firebase ID tokens against the backend. - Updated API endpoints to include Firebase OAuth verification. - Enhanced ShowsPage to allow authenticated users to delete shows. - Updated configuration to include Firebase settings and authentication enablement. - Styled authentication components and added necessary CSS for better UI.
40 lines
884 B
Plaintext
40 lines
884 B
Plaintext
##################
|
|
## Frontend env ##
|
|
##################
|
|
WEB_PORT=3000
|
|
PUBLIC_BASE_PATH=/watch-party/
|
|
BACKEND_ORIGIN=http://api:8082
|
|
FRONTEND_MODE=debug
|
|
|
|
#################
|
|
## Backend env ##
|
|
#################
|
|
# Postgres (container)
|
|
POSTGRES_DB=watchparty
|
|
POSTGRES_USER=admin
|
|
POSTGRES_PASSWORD=admin
|
|
TZ=Asia/Tokyo
|
|
COMPOSE_PLATFORM=linux/arm64/v8
|
|
|
|
# App runtime (inside Docker network)
|
|
PGHOST=db
|
|
POSTGRES_PORT=5432
|
|
PGSSLMODE=disable
|
|
GIN_MODE=release
|
|
ADDR=:8082
|
|
|
|
# Auth (optional)
|
|
AUTH_ENABLED=false
|
|
FIREBASE_PROJECT_ID=
|
|
FIREBASE_CREDENTIALS_FILE=/secrets/firebase_credentials.json
|
|
# Use one of the following to supply Firebase service account:
|
|
# FIREBASE_CREDENTIALS_JSON=
|
|
# FIREBASE_CREDENTIALS_FILE=/path/to/firebase.json
|
|
|
|
# Frontend Firebase (for Google sign-in)
|
|
VITE_AUTH_ENABLED=true
|
|
VITE_FIREBASE_API_KEY=
|
|
VITE_FIREBASE_AUTH_DOMAIN=
|
|
VITE_FIREBASE_PROJECT_ID=
|
|
VITE_FIREBASE_APP_ID=
|