'http://parsoid:8000/', // Parsoid "domain" (string, optional) - MediaWiki >= 1.26 'domain' => 'localhost', // Parsoid "prefix" (string, optional) - deprecated since MediaWiki 1.26, use 'domain' 'prefix' => 'localhost', // Forward cookies in the case of private wikis (string or false, optional) 'forwardCookies' => true, // request timeout in seconds (integer or null, optional) 'timeout' => null, // Parsoid HTTP proxy (string or null, optional) 'HTTPProxy' => null, // whether to parse URL as if they were meant for RESTBase (boolean or null, optional) 'restbaseCompat' => null, ]; {{ if eq (env "SAML_ENABLED") "1" }} wfLoadExtension( 'PluggableAuth' ); wfLoadExtension( 'SimpleSAMLphp' ); $wgSimpleSAMLphp_InstallDir = "/var/simplesamlphp/"; $wgSimpleSAMLphp_AuthSourceId = "{{ env "SAML_AUTH_SOURCE_ID" }}"; $wgSimpleSAMLphp_RealNameAttribute = "{{ env "SAML_REAL_NAME_ATTRIBUTE" }}"; $wgSimpleSAMLphp_EmailAttribute = "{{ env "SAML_EMAIL_ATTRIBUTE" }}"; $wgSimpleSAMLphp_UsernameAttribute = "{{ env "SAML_USERNAME_ATTRIBUTE" }}"; $wgGroupPermissions['*']['autocreateaccount'] = true; $wgGroupPermissions['*']['createaccount'] = false; $wgDebugLogFile = "/var/log/debug-{$wgDBname}.log"; {{ end }} {{ if eq (env "OPENID_ENABLED") "1" }} wfLoadExtension( 'PluggableAuth' ); wfLoadExtension( 'OpenIDConnect' ); $wgOpenIDConnect_Config['{{ env "OPENID_KEYCLOAK_URL" }}'] = [ 'clientID' => '{{ env "OPENID_CLIENT_ID"}}', 'clientsecret' => '{{ secret "openid_client_secret" }}' ]; $wgGroupPermissions['*']['autocreateaccount'] = true; $wgGroupPermissions['*']['createaccount'] = false; {{ end }} {{ if env "SMTP_HOST" }} $wgSMTP = [ 'host' => '{{ env "SMTP_HOST" }}', // could also be an IP address. Where the SMTP server is located 'port' => 25, // Port to use when connecting to the SMTP server 'auth' => false, // Should we use SMTP authentication (true or false) #'username' => 'my_user_name', // Username to use for SMTP authentication (if being used) #'password' => 'my_password' // Password to use for SMTP authentication (if being used) ]; {{ end }} $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg' ); $wgUploadSizeWarning = 1000000000; $wgMaxUploadSize = 1000000000;