Configuration

Configure your DCloud.dev site for optimal performance, security, and scalability.

Drupal Modules

Pre-installed Modules

Core Modules

  • GraphQL API
  • JSON:API
  • Media Library
  • Content Moderation
  • Workflows

Performance Modules

  • BigPipe
  • Dynamic Page Cache
  • Internal Page Cache
  • CSS/JS Aggregation
  • Image Optimization

Installing Additional Modules

Add custom modules or contributed modules from Drupal.org to extend functionality.

composer.json
{
  "require": {
    "drupal/admin_toolbar": "^3.0",
    "drupal/pathauto": "^1.8",
    "drupal/metatag": "^1.16",
    "drupal/redirect": "^1.6"
  }
}

Environments

Development

  • • Debug mode enabled
  • • Error reporting on
  • • Caching disabled
  • • Development modules

Staging

  • • Production-like setup
  • • Limited error reporting
  • • Caching enabled
  • • Testing environment

Production

  • • Optimized performance
  • • Error logging only
  • • Full caching enabled
  • • Security hardened

Environment Configuration

settings.php
// Environment-specific settings
if (getenv('DCLOUD_ENV') === 'production') {
  $config['system.logging']['error_level'] = 'hide';
  $config['system.performance']['cache']['page']['max_age'] = 3600;
} elseif (getenv('DCLOUD_ENV') === 'development') {
  $config['system.logging']['error_level'] = 'verbose';
  $config['system.performance']['cache']['page']['max_age'] = 0;
}

Caching Configuration

Cache Layers

Database Cache

Drupal's built-in database caching for rendered pages and data.

Redis Cache

High-performance in-memory caching for faster data access.

CDN Cache

Global edge caching for static assets and API responses.

Cache Configuration

Page Cache Settings

  • • Max age: 1 hour (3600s)
  • • Vary by: User role, Language
  • • Exclude: Admin pages, Forms
  • • Purge: On content update

API Cache Settings

  • • GraphQL: 5 minutes (300s)
  • • JSON:API: 10 minutes (600s)
  • • Media files: 24 hours
  • • Static assets: 1 year

Security Configuration

Security Features

Access Control

  • Role-based permissions
  • Two-factor authentication
  • IP whitelisting
  • Session management

Data Protection

  • SSL/TLS encryption
  • Database encryption
  • Backup encryption
  • GDPR compliance

Security Headers

DCloud.dev automatically configures security headers for protection against common attacks.

X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
Content-Security-Policy: default-src 'self'
Referrer-Policy: strict-origin-when-cross-origin