Created
November 21, 2019 12:56
-
-
Save nanasess/bffe4b861a55e1be347c1b6eb1151819 to your computer and use it in GitHub Desktop.
ec-cube2 configuration of Azure WebApps on localdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
preg_match('/Database=(.*);Data Source=(.*):(.*);User Id=(.*);Password=(.*)$/', $_SERVER['MYSQLCONNSTR_localdb'], $matches); | |
list($ds, $dbname, $dbhost, $dbport, $dbuser, $dbpass) = $matches; | |
define('ECCUBE_INSTALL', 'ON'); | |
define('HTTP_URL', 'https://example.azurewebsites.net/'); | |
define('HTTPS_URL', 'https://example.azurewebsites.net/'); | |
define('ROOT_URLPATH', '/'); | |
define('DOMAIN_NAME', ''); | |
define('DB_TYPE', 'mysql'); | |
define('DB_USER', $dbuser); | |
define('DB_PASSWORD', $dbpass); | |
define('DB_SERVER', $dbhost); | |
define('DB_NAME', $dbname); | |
define('DB_PORT', $dbport); | |
define("ADMIN_DIR", "admin/"); | |
define("ADMIN_FORCE_SSL", true); | |
define('ADMIN_ALLOW_HOSTS', ''); | |
define('AUTH_MAGIC', 'hovefrofrejiapiaprubiopeacriseathouuouno'); | |
define('PASSWORD_HASH_ALGOS', 'sha256'); | |
define('MAIL_BACKEND', 'mail'); | |
define('SMTP_HOST', ''); | |
define('SMTP_PORT', ''); | |
define('SMTP_USER', ''); | |
define('SMTP_PASSWORD', ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment