codespace.config.php 513 B

123456789101112131415161718
  1. <?php
  2. $cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
  3. $CONFIG = [
  4. 'mail_from_address' => 'no-reply',
  5. 'mail_smtpmode' => 'smtp',
  6. 'mail_sendmailmode' => 'smtp',
  7. 'mail_domain' => 'example.com',
  8. 'mail_smtphost' => 'localhost',
  9. 'mail_smtpport' => '1025',
  10. 'memcache.local' => '\OC\Memcache\APCu',
  11. ];
  12. if($cloudEnvironmentId !== true) {
  13. $CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
  14. $CONFIG['overwriteprotocol'] = 'https';
  15. }