Configuration
Environment
Copy the example environment file and configure it:
cp app/.env.example app/.envEdit the app/.env file and update the following settings:
- Database credentials (
DB_USERNAME,DB_PASSWORD) - Application key (
APP_KEY) - Gemini API key (
GEMINI_API_KEY) - see instructions below - Other service credentials as needed
URL
Configure the following URLs in your app/.env file:
# Main application URL
APP_URL=http://pressify.local
# Admin panel URL
ADMIN_URL=http://cms.pressify.local
# Media-related URLs
MEDIA_URL=http://media.pressify.local
IMAGE_URL=http://img.pressify.local
VIDEO_URL=http://video.pressify.local
AUDIO_URL=http://audio.pressify.local
FILE_URL=http://file.pressify.local
# Reverb WebSocket host for real-time features
REVERB_HOST=socket.pressify.localAI
To use AI features for article editing, creating focus keywords, metadata, and scraping content from URLs, you need to provide your own Gemini API key:
GEMINI_API_KEY=your_api_key_hereTo obtain your Gemini API key for AI features:
- Visit Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the generated API key
- Add it to your
.envfile as shown above
Livewire
Pressify allows you to disable Livewire on the frontend for various purposes. The default setting is true (enabled). The admin panel always has Livewire enabled.
TSS_LIVEVIEW_MODE=trueSocket (Reverb)
For security purposes, you should change the application ID, key, and secret values:
BROADCAST_CONNECTION=reverb
REVERB_APP_ID=105599
REVERB_APP_KEY=qe96ugbdiohegrovvenl
REVERB_APP_SECRET=eiuegjcopbtjoax0lm55
REVERB_HOST=socket.pressify.local
REVERB_PORT=80
REVERB_SCHEME=httpScout (Typesense)
To search through millions of articles without relying on MySQL for improved performance, configure Typesense to index articles. Create a new API key and replace it in the configuration below:
SCOUT_DRIVER=typesense
SCOUT_CONNECTION=database
SCOUT_QUEUE=true
TYPESENSE_API_KEY=ts_9z8y7x6w5v4u3t2s1r0q
TYPESENSE_HOST=typesense
TYPESENSE_PORT=8108