Skip to content

Commit

Permalink
Merge pull request #253 from nextcloud/master
Browse files Browse the repository at this point in the history
Got updates
  • Loading branch information
mrvahedi68 authored Dec 23, 2022
2 parents 8c3ab46 + 99382a0 commit c18f99f
Show file tree
Hide file tree
Showing 6,471 changed files with 244,324 additions and 173,950 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 4 additions & 3 deletions .devcontainer/codespace.config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
$codespaceName = getenv('CODESPACE_NAME');
$codespaceDomain = getenv('GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN');

$CONFIG = [
'mail_from_address' => 'no-reply',
Expand All @@ -12,7 +13,7 @@
'memcache.local' => '\OC\Memcache\APCu',
];

if($cloudEnvironmentId !== true) {
$CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
if(is_string($codespaceName) && !empty($codespaceName) && is_string($codespaceDomain) && !empty($codespaceDomain)) {
$CONFIG['overwritehost'] = $codespaceName . '-80.' . $codespaceDomain;
$CONFIG['overwriteprotocol'] = 'https';
}
Loading

0 comments on commit c18f99f

Please sign in to comment.