Spaces:
Sleeping
Sleeping
Update .env.example with additional environment variables for Spotify and YouTube OAuth
Browse files- .env.example +16 -4
.env.example
CHANGED
|
@@ -4,23 +4,35 @@
|
|
| 4 |
# =============================================
|
| 5 |
# CORS Configuration
|
| 6 |
# =============================================
|
| 7 |
-
CROWNCODE_CORS_ORIGINS=http://localhost:3000,https://crowncode.netlify.app
|
| 8 |
|
| 9 |
# =============================================
|
| 10 |
# Logging
|
| 11 |
# =============================================
|
| 12 |
LOG_LEVEL=INFO
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# =============================================
|
| 15 |
# Crown Commend (YouTube AI Comment Generator)
|
| 16 |
# =============================================
|
| 17 |
# Gemini API Key - Get from https://ai.google.dev/
|
| 18 |
-
COMMEND_GEMINI_API_KEY=
|
| 19 |
|
| 20 |
# YouTube OAuth Token JSON - Required for posting comments
|
| 21 |
# This is a JSON string containing YouTube OAuth credentials
|
| 22 |
-
|
| 23 |
-
COMMEND_TOKEN_JSON='{"token": "...", "refresh_token": "...", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "...", "client_secret": "...", "scopes": ["https://www.googleapis.com/auth/youtube.force-ssl"]}'
|
| 24 |
|
| 25 |
# =============================================
|
| 26 |
# HuggingFace Spaces Specific
|
|
|
|
| 4 |
# =============================================
|
| 5 |
# CORS Configuration
|
| 6 |
# =============================================
|
| 7 |
+
CROWNCODE_CORS_ORIGINS=http://localhost:3000,https://crowncode.netlify.app,https://hasanarthuraltuntas.xyz
|
| 8 |
|
| 9 |
# =============================================
|
| 10 |
# Logging
|
| 11 |
# =============================================
|
| 12 |
LOG_LEVEL=INFO
|
| 13 |
|
| 14 |
+
# =============================================
|
| 15 |
+
# Spotify API (for AI Music Detection)
|
| 16 |
+
# =============================================
|
| 17 |
+
SPOTIFY_CLIENT_ID=your-spotify-client-id
|
| 18 |
+
SPOTIFY_CLIENT_SECRET=d30afd0a023c442baf8493481f3522f7
|
| 19 |
+
|
| 20 |
+
# =============================================
|
| 21 |
+
# YouTube OAuth (for AI Music Detection page)
|
| 22 |
+
# =============================================
|
| 23 |
+
YOUTUBE_OAUTH_CLIENT_ID=79142257473-glb9427sbnl31ploq8tvkdb9a9k02rhh.apps.googleusercontent.com
|
| 24 |
+
YOUTUBE_OAUTH_CLIENT_SECRET=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
|
| 25 |
+
YOUTUBE_OAUTH_REDIRECT_URI=https://hasanarthuraltuntas.xyz/ai-music-detection
|
| 26 |
+
|
| 27 |
# =============================================
|
| 28 |
# Crown Commend (YouTube AI Comment Generator)
|
| 29 |
# =============================================
|
| 30 |
# Gemini API Key - Get from https://ai.google.dev/
|
| 31 |
+
COMMEND_GEMINI_API_KEY=AIzaSyB4Cpi4MNHL3qc5M7nQub3pBnjkU9KJk1c
|
| 32 |
|
| 33 |
# YouTube OAuth Token JSON - Required for posting comments
|
| 34 |
# This is a JSON string containing YouTube OAuth credentials
|
| 35 |
+
COMMEND_TOKEN_JSON={"token": "ya29.A0AS3H6NwC46OppOYeRFqP_i7p5WsbT7WE4G1NZPsBWF8YxDUiLvEivGV0i0iiXnCTQfsY-XeqqG8NsdIdepHQS4fJqpn7oC6sZnFLH-zlyFXHBqsOo7lCGklyu6jjxmn81q7NS5DB4uD9gP1t49RkOr6A-VKefZaBja27dCXp3c3r3ePtXi3eN2o3v6hv8c0MsWUqV5caCgYKAU0SARISFQHGX2MiASoTF1pRshW9jC6AEbMIVg0206", "refresh_token": "1//090ADGikJXePcCgYIARAAGAkSNwF-L9IrwGeKeO9nPfHxx_-UiHyHZ5PvJSV_c31HmGrZY8OPSjJm95CweDQqJGEsCOq-yUO2CQo", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "291786366669-qfmg1mibudik5pafpbleov438rslktvh.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/youtube.force-ssl"]}
|
|
|
|
| 36 |
|
| 37 |
# =============================================
|
| 38 |
# HuggingFace Spaces Specific
|