diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-09 10:57:24 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-09 10:57:24 +0000 |
| commit | 9c9a398d27949e29422e2ef5621911c886d8dd18 (patch) | |
| tree | 5a3d89501923b03127d9bf071c1b9ec3c6ca3abe /docker/studip/config_local.php | |
| parent | 880749963518e8d07608d75372ffe54a5e062f76 (diff) | |
5.1: adjust gitlab ci pipeline configuring to include checks and tests, re #2116biest-02063
Merge request studip/studip!1372
Diffstat (limited to 'docker/studip/config_local.php')
| -rw-r--r-- | docker/studip/config_local.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docker/studip/config_local.php b/docker/studip/config_local.php new file mode 100644 index 0000000..4e77ed8 --- /dev/null +++ b/docker/studip/config_local.php @@ -0,0 +1,47 @@ +<?php +/*basic settings for Stud.IP +---------------------------------------------------------------- +you find here the basic system settings. You shouldn't have to touch much of them... +please note the CONFIG.INC.PHP for the indivual settings of your installation!*/ + +namespace Studip { + //const ENV = 'development'; + define ('ENV', getenv('ENV') ?? 'development'); +} + +namespace { + /*settings for database access + ---------------------------------------------------------------- + please fill in your database connection settings. + */ + + // default Stud.IP database (DB_Seminar) + $DB_STUDIP_HOST = getenv('MYSQL_HOST'); + $DB_STUDIP_USER = getenv('MYSQL_USER'); + $DB_STUDIP_PASSWORD = getenv('MYSQL_PASSWORD'); + $DB_STUDIP_DATABASE = getenv('MYSQL_DATABASE'); + $MAIL_TRANSPORT = getenv('MAIL_TRANSPORT'); + + /*URL + ---------------------------------------------------------------- + customize if automatic detection fails, e.g. when installation is hidden + behind a proxy + */ + //$CANONICAL_RELATIVE_PATH_STUDIP = '/'; + //$ABSOLUTE_URI_STUDIP = 'https://www.studip.de/'; + //$ASSETS_URL = 'https://www.studip.de/assets/'; + + // Set proxy url + if ($PROXY_URL = getenv('PROXY_URL')) { + $ABSOLUTE_URI_STUDIP = $PROXY_URL; + $ASSETS_URL = $PROXY_URL.'/assets/'; + unset($PROXY_URL); + } + + // Use autoproxy + if (getenv('AUTO_PROXY')) { + $ABSOLUTE_URI_STUDIP = $_SERVER['HTTP_X_FORWARDED_PROTO'].'://'.$_SERVER['HTTP_X_FORWARDED_HOST'].'/'; + $ASSETS_URL = $ABSOLUTE_URI_STUDIP.'/assets/'; + } + $MAIL_TRANSPORT = getenv('STUDIP_MAIL_TRANSPORT'); +}
\ No newline at end of file |
