📁 Site Structure
- Main Page: sleeptokentheory.com → Unmasked Media photobook
- Submit Media: sleeptokentheory.com/submissions.html → Coming soon
- Admin Panel: sleeptokentheory.com/admin → Unlisted, password protected
🔐 Admin Access
URL: sleeptokentheory.com/admin
Default Credentials:
- admin1 / changeme123
- admin2 / changeme456
- admin3 / changeme789
⚠️ Change passwords in: /root/sleeptokentheory/reddit_server.py (lines 27-31)
📸 Managing Media
- Go to sleeptokentheory.com/admin
- Login with credentials
- Drag & drop images or click to browse
- Add title and description
- Click "Upload Media"
- Media appears on main page instantly
🗂️ File Locations
- Website Files:
/var/www/dev.sleeptokentheory.com/ - Flask Backend:
/root/sleeptokentheory/reddit_server.py - Media Storage:
/root/sleeptokentheory/data/media/ - Media Metadata:
/root/sleeptokentheory/data/media_metadata.json - Nginx Config:
/etc/nginx/sites-available/sleeptokentheory.com - Service:
/etc/systemd/system/sleeptokentheory.service
🔧 Server Management
Restart Flask Backend:
systemctl restart sleeptokentheory.service
Check Service Status:
systemctl status sleeptokentheory.service
View Logs:
journalctl -u sleeptokentheory.service -f
Reload Nginx:
nginx -t && systemctl reload nginx
🌐 API Endpoints
GET /api/media- Get all media (public)POST /api/admin/login- Admin loginPOST /api/admin/upload- Upload media (requires auth)DELETE /api/admin/media/:id- Delete media (requires auth)
📝 Editing Content
- Homepage:
/var/www/dev.sleeptokentheory.com/index.html - Styles:
/var/www/dev.sleeptokentheory.com/styles.css - Gallery Styles:
/var/www/dev.sleeptokentheory.com/gallery.css - Submissions:
/var/www/dev.sleeptokentheory.com/submissions.html - Admin Panel:
/root/sleeptokentheory/static/admin.html
🔒 SSL Certificate
Renew Certificate:
certbot renew
Get New Certificate:
certbot --nginx -d sleeptokentheory.com -d www.sleeptokentheory.com
💾 Backups
- Media Files:
/root/sleeptokentheory/data/media/ - Metadata:
/root/sleeptokentheory/data/media_metadata.json - Backup these folders regularly to preserve uploaded content
🎨 Color Scheme
- Primary (Blue): #0085FF
- Accent (Pink): #FF008A
- Background: #000000
- Font: Futura Bk BT