Skip to content

Commit f81489d

Browse files
authored
Add support for ua_middleware service. (#31)
* Add support for ua_middleware service. * Remove spaces at end of line and file typo with auth_file env. * More spaces to fix * Opt for just one file for auth.
1 parent 0eff35f commit f81489d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Handler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ public function modifySettingsFile()
157157
" \$settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';\n" .
158158
" }\n" .
159159
"}\n" .
160+
"\$settings['ua_middleware_service'] = array(\n" .
161+
" 'auth' => getenv('UA_MIDDLEWARE_AUTH_FILE') ? file_get_contents(getenv('UA_MIDDLEWARE_AUTH_FILE')) : getenv('UA_MIDDLEWARE_AUTH'),\n" .
162+
");\n" .
160163
"/**\n * END SHEPHERD CONFIG\n */\n" .
161164
"\n" .
162165
"/**\n * START LOCAL CONFIG\n */\n" .

0 commit comments

Comments
 (0)