ミラー元
https://github.com/nextcloud/server.git
前回の同期 2024-08-29 17:54:44 +02:00
![Lukas Reschke](/assets/img/avatar_default.png)
Codespace is serving everything only as HTTPS. To keep the URLs valid, we also need to overwrite the protocol. (otherwise e.g. you can't develop the SAML app as the URLs are invalid) Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
19 行
513 B
PHP
19 行
513 B
PHP
<?php
|
|
|
|
$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
|
|
|
|
$CONFIG = [
|
|
'mail_from_address' => 'no-reply',
|
|
'mail_smtpmode' => 'smtp',
|
|
'mail_sendmailmode' => 'smtp',
|
|
'mail_domain' => 'example.com',
|
|
'mail_smtphost' => 'localhost',
|
|
'mail_smtpport' => '1025',
|
|
'memcache.local' => '\OC\Memcache\APCu',
|
|
];
|
|
|
|
if($cloudEnvironmentId !== true) {
|
|
$CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
|
|
$CONFIG['overwriteprotocol'] = 'https';
|
|
}
|