Skip to content

Commit

Permalink
Fixed sites and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 14, 2025
1 parent ed30e6c commit 480e36b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .gitpod/gitpod.settings.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<?php

error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);

$config['samlauth.authentication']['sp_x509_certificate'] = 'file:' . DRUPAL_ROOT . '/../keys/saml/cert/saml.crt';
$config['samlauth.authentication']['sp_private_key'] = 'file:' . DRUPAL_ROOT . '/../keys/saml/cert/saml.pem';
$config['samlauth.authentication']['idp_certs'] = [
'file:' . DRUPAL_ROOT . '/../keys/saml/cert/signing.crt',
];
$config['stanford_samlauth.settings']['role_mapping']['workgroup_api'] = [
'cert' => DRUPAL_ROOT . '/../keys/saml/workgroup_api.cert',
'key' => DRUPAL_ROOT . '/../keys/saml/workgroup_api.key',
];
9 changes: 3 additions & 6 deletions .gitpod/sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
$workspace_url = getenv('GITPOD_WORKSPACE_URL');
$workspace_domain = preg_replace('/^.*?\/\//', '', $workspace_url);

// For each directory with a settings.php file, create possible combinations
// of the urls for that directory. A single underscore `_` in the direcotry name
// represents a dash `-` in the url. A double underscore represents a period `.`
// in the url. Using this standard we can easily keep track of what urls is for
// each site directory.
$port = 8002;
foreach ($settings as $settings_file) {
$site_dir = str_replace(__DIR__ . '/', '', $settings_file);
$site_dir = str_replace('/settings.php', '', $site_dir);
Expand All @@ -19,4 +15,5 @@
}

$sites["$port-$workspace_domain"] = $site_dir;
}
$port++;
}

0 comments on commit 480e36b

Please sign in to comment.