File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
imageroot/actions/get-configuration Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,22 @@ import agent
12
12
13
13
config = {}
14
14
15
+ if os .path .exists ("paperless-ngx.env" ):
16
+ config ["PAPERLESS_TIME_ZONE" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_TIME_ZONE" ]
17
+ config ["PAPERLESS_OCR_LANGUAGE" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_OCR_LANGUAGE" ]
18
+ config ["PAPERLESS_ADMIN_USER" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_ADMIN_USER" ]
19
+ config ["PAPERLESS_ADMIN_PASSWORD" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_ADMIN_PASSWORD" ]
20
+ config ["PAPERLESS_ADMIN_MAIL" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_ADMIN_MAIL" ]
21
+ config ["PAPERLESS_COOKIE_PREFIX" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_COOKIE_PREFIX" ]
22
+ config ["PAPERLESS_FILENAME_FORMAT" ] = agent .read_envfile ("paperless-ngx.env" )["PAPERLESS_FILENAME_FORMAT" ]
23
+ else :
24
+ config ["PAPERLESS_TIME_ZONE" ] = ""
25
+ config ["PAPERLESS_OCR_LANGUAGE" ] = ""
26
+ config ["PAPERLESS_ADMIN_USER" ] = ""
27
+ config ["PAPERLESS_ADMIN_PASSWORD" ] = ""
28
+ config ["PAPERLESS_ADMIN_MAIL" ] = ""
29
+ config ["PAPERLESS_COOKIE_PREFIX" ] = ""
30
+ config ["PAPERLESS_FILENAME_FORMAT" ] = ""
15
31
# Read current configuration from Redis
16
32
config ["host" ] = os .getenv ("TRAEFIK_HOST" ,"" )
17
33
config ["http2https" ] = os .getenv ("TRAEFIK_HTTP2HTTPS" ) == "True"
You can’t perform that action at this time.
0 commit comments