Appearance
Site Settings
Configure global settings for your Comps.gg platform.
Route
/admin/settings
Overview
The Settings page allows you to configure essential site-wide settings including branding, contact information, and third-party integrations.
Tabs
The Settings page is organized into tabs:
- General - Basic site information and configuration
- Referrals - Referral program settings
General Tab
Basic Information
- Site Name - Your platform's display name
- Site Tagline - Brief description or slogan
- Logo - Upload your site logo
- Favicon - Upload your site favicon
Contact Information
Configure email addresses for platform communications:
- Contact Email - General inquiries email
- Support Email - Customer support email
- Additional Recipients - CC addresses for notifications
Analytics Integration
Umami Analytics
Configure Umami analytics integration:
- Share Token - Your Umami share token for embedded analytics
- Website ID - Your Umami website identifier
Once configured, analytics will be available at /admin/website-analytics.
Featured Competitions
Control which competitions appear as featured on the homepage:
- Featured Competition IDs - Comma-separated list of competition IDs to feature
- Display Order - Competitions appear in the order specified
How to Use Featured Competitions
- Find the competition IDs you want to feature (from competition URLs or list)
- Enter IDs separated by commas (e.g.,
123,456,789) - Save settings
- Featured competitions will appear on the public homepage
- Public API endpoint:
GET /api/v1/competitions/featured
Note: Only active competitions will be shown, even if their IDs are in the featured list.
Winner Instructions
Configure custom instructions that appear in prize notification emails sent to winners:
- Winner Instructions - Custom text displayed in winner notification emails
- Use to communicate:
- ID verification requirements
- Wait period information (e.g., "Please allow 14 days for processing")
- Bank details collection for cash prizes
- Prize claim procedures
If left blank, a default message is used in notification emails.
System Configuration
Additional system-wide settings:
- Maintenance Mode - Enable/disable site access
- Registration - Allow/restrict new user signups
- Email Notifications - Configure notification preferences
- Feature Flags - Enable/disable platform features
Referrals Tab
Configure the referral program that rewards users for bringing new customers.
Referral Settings
- Enable Referrals - Toggle the referral program on/off
- Qualifying Amount - Minimum purchase amount for a referral to qualify (e.g., £10.00)
- Reward Amount - Wallet credit given to referrer when referral qualifies (e.g., £5.00)
- Max Referrals Per User - Limit on how many referrals a single user can make
Fraud Warning
- Fraud Warning Message - Optional warning text displayed on referral pages
- Use to warn users about prohibited behaviors (e.g., self-referrals, fake accounts)
- Leave blank to show no warning
How Referrals Work
- Existing users share their referral code or link
- New users register using the referral code
- When the new user makes a qualifying purchase, the referrer earns reward credit
- Reward is added to referrer's wallet balance
Settings Behavior
- Settings are locked (read-only) when referral system is disabled
- Enable the system to modify settings
- Changes take effect immediately for new referrals
See Referrals Management for managing referrals and viewing statistics.
Usage
Updating Settings
- Navigate to
/admin/settings - Modify the desired settings
- Click "Save Changes"
- Changes take effect immediately
Logo and Favicon
To update branding:
- Prepare your images (PNG or SVG recommended)
- Click the upload button in the respective section
- Select your image file
- Preview the uploaded image
- Save changes
Recommended Sizes:
- Logo: 200x50px (transparent PNG)
- Favicon: 32x32px or 64x64px
Configuring Umami Analytics
- Create an Umami analytics account
- Set up your website in Umami
- Generate a share token
- Copy the share token and website ID
- Paste into the Umami settings section
- Save settings
- Access analytics at
/admin/website-analytics
Cache Invalidation
When you update site settings, the frontend cache is automatically invalidated to ensure changes appear immediately for users.
How It Works
- Settings are saved in the database
- Backend sends cache invalidation request to frontend
- Frontend clears its site settings cache
- Next user request fetches fresh settings
Technical Details
- Frontend caches site settings for 5 minutes
- Cache invalidation is triggered automatically on save
- Requires
CACHE_INVALIDATION_SECRETto be configured in both backend and frontend.env - Fallback: Cache expires naturally after 5 minutes if invalidation fails
Configuration
Ensure these environment variables are set:
Backend .env:
CACHE_INVALIDATION_SECRET=your-secret-key-hereFrontend .env:
CACHE_INVALIDATION_SECRET=your-secret-key-here # Must match backendFor more details, see Cache Invalidation Documentation.
Tips
- Keep contact emails current and monitored
- Test logo and favicon on different devices
- Verify Umami integration after configuration
- Review settings periodically for accuracy
- Changes take effect immediately due to automatic cache invalidation