File tree Expand file tree Collapse file tree
imageroot/actions/get-configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ import agent
1616
1717# Prepare return variable
1818config = {}
19+ if os .path .exists ("listmonk.env" ):
20+ config ["ADMIN_USERNAME" ] = agent .read_envfile ("listmonk.env" )["ADMIN_USERNAME" ]
21+ config ["ADMIN_PASSWORD" ] = agent .read_envfile ("listmonk.env" )["ADMIN_PASSWORD" ]
22+ else :
23+ config ["ADMIN_USERNAME" ] = ""
24+ config ["ADMIN_PASSWORD" ] = ""
1925
2026# Read current configuration from the environment file
2127config ["host" ] = os .getenv ("TRAEFIK_HOST" ,"" )
Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ export default {
229229 this .host = config .host ;
230230 this .isLetsEncryptEnabled = config .lets_encrypt ;
231231 this .isHttpToHttpsEnabled = config .http2https ;
232+ this .ADMIN_USERNAME = config .ADMIN_USERNAME ;
233+ this .ADMIN_PASSWORD = config .ADMIN_PASSWORD ;
232234
233235 this .loading .getConfiguration = false ;
234236 this .focusElement (" host" );
You can’t perform that action at this time.
0 commit comments