@@ -195,7 +195,7 @@ $config = [
195195 * metadata listing and diagnostics pages.
196196 * You can also put a hash here; run "bin/pwgen.php" to generate one.
197197 */
198- 'auth.adminpassword' => '{{ env ("SIMPLESAMLPHP_ADMIN_PASSWORD", "axsh0720 ") }}',
198+ 'auth.adminpassword' => '{{ environ ("SIMPLESAMLPHP_ADMIN_PASSWORD") }}',
199199
200200 /*
201201 * Set this option to true if you want to require administrator password to access the metadata.
@@ -282,11 +282,11 @@ $config = [
282282 'Referrer-Policy' => 'origin-when-cross-origin',
283283 ],
284284
285- {% set enable_federation = env ("ENABLE_FEDERATION" , "no" ) %}
285+ {% set enable_federation = environ ("ENABLE_FEDERATION" ) | default ( "no" , true ) %}
286286
287287 {% if enable_federation =="1" or enable_federation =="yes" %}
288288 'disco.headers.security' => [
289- 'Content-Security-Policy' => "default-src 'none'; frame-ancestors 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' https://{{ env ("DS_FQDN", default= "ds.gakunin.nii.ac.jp" )}}; style-src 'self' 'unsafe-inline' https://{{ env ("DS_FQDN", default= "ds.gakunin.nii.ac.jp") }}; font-src 'self'; connect-src 'self'; img-src 'self' data: https:; base-uri 'none'",
289+ 'Content-Security-Policy' => "default-src 'none'; frame-ancestors 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' https://{{ environ ("DS_FQDN") | default( "ds.gakunin.nii.ac.jp", true )}}; style-src 'self' 'unsafe-inline' https://{{ environ ("DS_FQDN") | default( "ds.gakunin.nii.ac.jp", true ) }}; font-src 'self'; connect-src 'self'; img-src 'self' data: https:; base-uri 'none'",
290290 ],
291291 {% endif %}
292292
@@ -370,7 +370,7 @@ $config = [
370370 * must exist and be writable for SimpleSAMLphp. If set to something else, set
371371 * loggingdir above to 'null'.
372372 */
373- 'logging.level' => SimpleSAML\Logger::{{ env ("SIMPLESAMLPHP_LOGLEVEL", "INFO") }},
373+ 'logging.level' => SimpleSAML\Logger::{{ environ ("SIMPLESAMLPHP_LOGLEVEL") | default( "INFO", true ) }},
374374 'logging.handler' => 'file',
375375
376376 /*
@@ -1051,12 +1051,12 @@ $config = [
10511051 ],
10521052 */
10531053
1054- {% set enable_federation = env ("ENABLE_FEDERATION" , "no" ) %}
1054+ {% set enable_federation = environ ("ENABLE_FEDERATION" ) | default ( "no" , true ) %}
10551055
10561056 {% if enable_federation =="1" or enable_federation =="yes" %}
10571057 59 => array(
10581058 'class' => 'attributeaggregator:attributeaggregator',
1059- 'entityId' => 'https://{{ env ("CG_FQDN", default= "cg.gakunin.jp") }}/idp/shibboleth',
1059+ 'entityId' => 'https://{{ environ ("CG_FQDN") | default( "cg.gakunin.jp", true ) }}/idp/shibboleth',
10601060
10611061 /**
10621062 * The subject of the attribute query. Default: urn:oid:1.3.6.1.4.1.5923.1.1.1.6 (eduPersonPrincipalName)
@@ -1103,7 +1103,7 @@ $config = [
11031103
11041104 69 => array(
11051105 'class' => 'attributeaggregator:attributeaggregator',
1106- 'entityId' => 'https://{{ env ("CG_FQDN", default= "cg.gakunin.jp") }}/idp/shibboleth',
1106+ 'entityId' => 'https://{{ environ ("CG_FQDN") | default( "cg.gakunin.jp", true ) }}/idp/shibboleth',
11071107
11081108 /**
11091109 * The subject of the attribute query. Default: urn:oid:1.3.6.1.4.1.5923.1.1.1.6 (eduPersonPrincipalName)
@@ -1265,8 +1265,8 @@ $config = [
12651265 * ],
12661266 */
12671267
1268- {% set cgidp_localfile_metadata = env ("CGIDP_LOCALFILE_METADATA" , "no" ) %}
1269- {% set enable_test_federation = env ("ENABLE_TEST_FEDERATION" , "no" ) %}
1268+ {% set cgidp_localfile_metadata = environ ("CGIDP_LOCALFILE_METADATA" ) | default ( "no" , true ) %}
1269+ {% set enable_test_federation = environ ("ENABLE_TEST_FEDERATION" ) | default ( "no" , true ) %}
12701270
12711271 'metadata.sources' => [
12721272 ['type' => 'flatfile'],
0 commit comments