diff --git a/config-templates/config.php b/config-templates/config.php
index 365f53698f8e7cdb4a2eea48d369523d18a1bd25..aecb8f0177e2c9491382f21a7bca5f202bf77c82 100644
--- a/config-templates/config.php
+++ b/config-templates/config.php
@@ -57,7 +57,7 @@ $config = [
      * - 'certdir': The base directory for certificate and key material.
      * - 'loggingdir': Where to write logs.
      * - 'datadir': Storage of general data.
-     * - 'temdir': Saving temporary files. SimpleSAMLphp will attempt to create
+     * - 'tempdir': Saving temporary files. SimpleSAMLphp will attempt to create
      *   this directory if it doesn't exist.
      * When specified as a relative path, this is relative to the SimpleSAMLphp
      * root directory.
@@ -958,6 +958,12 @@ $config = [
      | METADATA CONFIGURATION |
      **************************/
 
+    /*
+     * This option allows you to specify a directory for your metadata outside of the standard metadata directory
+     * included in the standard distribution of the software.
+     */
+    'metadatadir' => 'metadata',
+
     /*
      * This option configures the metadata sources. The metadata sources is given as an array with
      * different metadata sources. When searching for metadata, SimpleSAMLphp will search through