Skip to content

Configuration

Environment

Copy the example environment file and configure it:

bash
cp app/.env.example app/.env

Edit 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:

bash
# 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.local

AI

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:

bash
GEMINI_API_KEY=your_api_key_here

To obtain your Gemini API key for AI features:

  1. Visit Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Copy the generated API key
  5. Add it to your .env file 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.

bash
TSS_LIVEVIEW_MODE=true

Socket (Reverb)

For security purposes, you should change the application ID, key, and secret values:

bash
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=http

Scout (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:

bash
SCOUT_DRIVER=typesense
SCOUT_CONNECTION=database
SCOUT_QUEUE=true
TYPESENSE_API_KEY=ts_9z8y7x6w5v4u3t2s1r0q
TYPESENSE_HOST=typesense
TYPESENSE_PORT=8108

Released under the MIT License.