Compare commits

..

No commits in common. "205fba0a1054f3708c34e9135efa85507b4193b8" and "4c900b89ab3ad9b549067fa87595525336ef0061" have entirely different histories.

4 changed files with 15 additions and 17 deletions

View File

@ -125,8 +125,8 @@ $config = [
* The email address will be used as the recipient address for error reports, and
* also as the technical contact in generated metadata.
*/
'technicalcontact_name' => $SAML_ADMIN_NAME,
'technicalcontact_email' => $SAML_ADMIN_EMAIL,
'technicalcontact_name' => 'Administrator',
'technicalcontact_email' => 'na@example.org',
/*
* (Optional) The method by which email is delivered. Defaults to mail which utilizes the
@ -476,13 +476,13 @@ $config = [
* Ensure that you have the required PDO database driver installed
* for your connection string.
*/
'database.dsn' => $SAML_DATABASE_DSN,
'database.dsn' => 'postgres:host=bicep.pvv.ntnu.no;dbname=idp',
/*
* SQL database credentials
*/
'database.username' => $SAML_DATABASE_USERNAME,
'database.password' => $SAML_DATABASE_PASSWORD,
'database.username' => 'idp',
'database.password' => 'secret',
'database.options' => [],
/*
@ -1195,13 +1195,13 @@ $config = [
* See http://www.php.net/manual/en/pdo.drivers.php for the various
* syntaxes.
*/
'store.sql.dsn' => $SAML_DATABASE_DSN,
'store.sql.dsn' => 'sqlite:$STATE_DIRECTORY/simplesamlphp.sqlite3',
/*
* The username and password to use when connecting to the database.
*/
'store.sql.username' => $SAML_DATABASE_USERNAME,
'store.sql.password' => $SAML_DATABASE_PASSWORD,
'store.sql.username' => null,
'store.sql.password' => null,
/*
* The prefix we should use on our tables.

View File

@ -86,13 +86,12 @@ let
substituteInPlace "$out" \
--replace '$SAML_COOKIE_SECURE' 'true' \
--replace '$SAML_COOKIE_SALT' 'file_get_contents("${config.sops.secrets."idp/cookie_salt".path}")' \
--replace '$SAML_ADMIN_NAME' '"Drift"' \
--replace '$SAML_ADMIN_EMAIL' '"drift@pvv.ntnu.no"' \
--replace '$SAML_ADMIN_PASSWORD' 'file_get_contents("${config.sops.secrets."idp/admin_password".path}")' \
--replace '$SAML_TRUSTED_DOMAINS' 'array( "idp2.pvv.ntnu.no" )' \
--replace '$SAML_DATABASE_DSN' '"pgsql:host=postgres.pvv.ntnu.no;port=5432;dbname=idp"' \
--replace '$SAML_DATABASE_USERNAME' '"idp"' \
--replace '$SAML_DATABASE_PASSWORD' 'file_get_contents("${config.sops.secrets."idp/postgres_password".path}")' \
--replace '$STATE_DIRECTORY' '/var/lib/idp' \
--replace '$CACHE_DIRECTORY' '/var/cache/idp'
'';

View File

@ -19,13 +19,12 @@
substituteInPlace "$out" \
--replace '$SAML_COOKIE_SECURE' 'true' \
--replace '$SAML_COOKIE_SALT' 'file_get_contents("${config.sops.secrets."mediawiki/simplesamlphp/cookie_salt".path}")' \
--replace '$SAML_ADMIN_NAME' '"Drift"' \
--replace '$SAML_ADMIN_EMAIL' '"drift@pvv.ntnu.no"' \
--replace '$SAML_ADMIN_PASSWORD' 'file_get_contents("${config.sops.secrets."mediawiki/simplesamlphp/admin_password".path}")' \
--replace '$SAML_TRUSTED_DOMAINS' 'array( "wiki2.pvv.ntnu.no" )' \
--replace '$SAML_DATABASE_DSN' '"pgsql:host=postgres.pvv.ntnu.no;port=5432;dbname=mediawiki_simplesamlphp"' \
--replace '$SAML_DATABASE_USERNAME' '"mediawiki_simplesamlphp"' \
--replace '$SAML_DATABASE_PASSWORD' 'file_get_contents("${config.sops.secrets."mediawiki/simplesamlphp/postgres_password".path}")' \
--replace '$STATE_DIRECTORY' '/var/lib/mediawiki' \
--replace '$CACHE_DIRECTORY' '/var/cache/mediawiki/idp'
'';
};

View File

@ -125,8 +125,8 @@ $config = [
* The email address will be used as the recipient address for error reports, and
* also as the technical contact in generated metadata.
*/
'technicalcontact_name' => $SAML_ADMIN_NAME,
'technicalcontact_email' => $SAML_ADMIN_EMAIL,
'technicalcontact_name' => 'Administrator',
'technicalcontact_email' => 'na@example.org',
/*
* (Optional) The method by which email is delivered. Defaults to mail which utilizes the
@ -1195,13 +1195,13 @@ $config = [
* See http://www.php.net/manual/en/pdo.drivers.php for the various
* syntaxes.
*/
'store.sql.dsn' => $SAML_DATABASE_DSN,
'store.sql.dsn' => 'sqlite:$STATE_DIRECTORY/simplesamlphp.sqlite3',
/*
* The username and password to use when connecting to the database.
*/
'store.sql.username' => $SAML_DATABASE_USERNAME,
'store.sql.password' => $SAML_DATABASE_PASSWORD,
'store.sql.username' => null,
'store.sql.password' => null,
/*
* The prefix we should use on our tables.