⚙️ Configuration

Learn how to configure EasySign for your needs.

Environment Variables (.env)

All sensitive configuration is stored in the .env file in the root directory.

Variable Description Example
DB_HOST Database server hostname localhost
DB_NAME Database name easysign
DB_USER Database username easysign_user
DB_PASS Database password your_password
ENCRYPTION_KEY 64-char hex key for AES-256 7f8e9d1c2b3a4f5e...
APP_ENV Environment mode production / development
APP_DEBUG Show detailed errors false (production)

PayPal Configuration

Variable Description
PAYPAL_CLIENT_ID PayPal API Client ID
PAYPAL_CLIENT_SECRET PayPal API Secret
PAYPAL_MODE sandbox or live
PAYPAL_WEBHOOK_ID PayPal Webhook ID for notifications

Admin Panel Settings

Most settings are configured through the Admin Panel:

Global Settings

Navigate to Admin Panel → Global Settings:

SMTP Email Settings

Configure email notifications:

Gmail Users: Use an App Password instead of your regular password. Enable 2FA and generate an App Password in Google Account settings.

Security Settings

Navigate to Admin Panel → Security Settings:

Subscription Pricing

Configure plan pricing in Admin Panel → Subscriptions:

// Default pricing structure
Free:       $0/month   - 10 documents
Pro:        $29/month  - 150 documents
Enterprise: $100/month - Unlimited + API

Branding Customization

Logo

Upload your logo through Admin Panel → Global Settings. Recommended size: 200x50px PNG with transparent background.

Colors

The brand color affects buttons, links, and accent colors throughout the application.

Custom CSS

For advanced customization, edit assets/css/custom.css (create if it doesn't exist).

Email Templates

Email templates are located in includes/email_templates/:

File Upload Limits

Configure in Admin Panel → Global Settings:

Note: Also ensure your PHP php.ini allows large uploads:
upload_max_filesize = 50M
post_max_size = 50M
max_execution_time = 300