mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 05:56:02 +02:00
![Robin Windey](/assets/img/avatar_default.png)
* Use dedicated DevContainer user to run Apache (ensure file permissions) * Install NVM for node Signed-off-by: GitHub <noreply@github.com>
23 lines
744 B
PHP
23 lines
744 B
PHP
<?php
|
|
|
|
$codespaceName = getenv('CODESPACE_NAME');
|
|
$codespaceDomain = getenv('GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN');
|
|
|
|
$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(is_string($codespaceName) && !empty($codespaceName) && is_string($codespaceDomain) && !empty($codespaceDomain)) {
|
|
$host = $codespaceName . '-80.' . $codespaceDomain;
|
|
$CONFIG['overwritehost'] = $host;
|
|
$CONFIG['overwrite.cli.url'] = 'https://' . $host;
|
|
$CONFIG['overwriteprotocol'] = 'https';
|
|
$CONFIG['trusted_domains'] = [ $host ];
|
|
}
|