diff --git a/conf/sso.php b/conf/sso.php index 8ed23b1..8640e19 100644 --- a/conf/sso.php +++ b/conf/sso.php @@ -11,8 +11,8 @@ if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) { $ssoHash = \RainLoop\Api::GetUserSsoHash($email, $password); // redirect to webmail sso url - \header('Location: https://test.com/rainloop/index.php?sso&hash='.$ssoHash); + \header('Location: https://domain.tld/rainloop/index.php?sso&hash='.$ssoHash); } else { - \header('Location: https://test.com/rainloop/index.php'); + \header('Location: https://domain.tld/rainloop/index.php'); } diff --git a/scripts/install b/scripts/install index 89336f5..006f437 100644 --- a/scripts/install +++ b/scripts/install @@ -71,6 +71,7 @@ sudo cp ../conf/data/domains/domain.tld.ini $final_path/data/_data_/_default_/do sudo cp ../conf/data/domains/disabled $final_path/data/_data_/_default_/domains/disabled # SSO +sed -i "s@domain.tld@$domain@g" ../conf/sso.php sudo cp ../conf/sso.php $final_path/sso.php # Temporary workaround until someone finds a way to setup NGINX properly...