Environment variables¶
- GPD_REDIS_ADDRESS : redis connection host:port (default: localhost:6379)
- GPD_REDIS_PASSWORD : redis password (default: empty)
- GPD_REDIS_DB : redis db number (default: 0)
- GPD_REDIS_QUEUES_AVAILABLE : available queue name (default : available_queue)
- GPD_REDIS_QUEUES_RUNNING : running queue name (default : running_queue)
- GPD_REDIS_QUEUES_ERROR : error queue name (default : error_queue)
- GPD_REDIS_PRINTS_PREFIX : prints data prefix, a ‘:’ is added before print id (default : prints)
- GPD_REDIS_PRINTS_TTL : print data ttl in seconds (default: around 365 days)
API¶
- GPD_API_HOST : api host (default : 0.0.0.0)
- GPD_API_PORT : api port (default : 8000)
Authentication¶
- GPD_API_AUTH_TYPE : authentication type
- GPD_API_AUTH_TOKEN_TOKEN : token value
- GPD_API_AUTH_TOKEN_LOOKUP : token lookup location
Task management¶
- GPD_PROCESSING_TIMEOUT : processing timeout in seconds (if a job stays longer in “processing”, it is considered as dead and moved to error queue (default : 3600)
- GPD_ERROR_TIMEOUT$ : base time between retries (times square of retry count)
- GPD__ERROR_MAXRETRY : max number of retries before a print is reported as failed
- GPD_MONITORING_KEYS_ALIVE : redis key for alive worker monitoring
Monitoring¶
- GPD_MONITORING_SERVER_PORTS_FIRST: prometheus metrics first port
- GPD_MONITORING_SERVER_PORTS_LAST: prometheus metrics last port
- GPD_REDIS_KEYS_MONITORING_ALIVE : redis key to count alive workers
Printing¶
- GPD_PRINTER_PDF_TIMEOUT : pdf print timeout seconds (default 180)
- GPD_PRINTER_TEMPDIR_LOCATION : temporary directory location (default : system temp dir)
- GPD_PRINTER_TEMPDIR_REMOVE : remove print directory after print (default : false)
Uploading¶
- GPD_PRINTER_UPLOAD_DESTINATION : s3 / local
- GPD_PRINTER_UPLOAD_S3_KEY : S3 access key
- GPD_PRINTER_UPLOAD_S3_SECRET : S3 secret key
- GPD_PRINTER_UPLOAD_S3_REGION : S3 region
- GPD_PRINTER_UPLOAD_S3_BUCKET : S3 bucket name
- GPD_PRINTER_UPLOAD_S3_ENDPOINT : S3 endpoint (blank for amazon defaults)
- GPD_PRINTER_LOCAL_URL : base url (without slash) for local uploads
- GPD_PRINTER_LOCAL_PATH : root dir for local upload
Print progress weights¶
- GPD_PRINTER_PROGRESS_WEIGHT_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_REFERENCESEACH_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_NORMALIZEEACH_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_UPLOADEACH_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_ZIP_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_REFERENCES_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_CONCATENATE_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_UPLOADZIP_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_NORMALIZE_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_UPLOAD_PDF : progress pdf print weighting
- GPD_PRINTER_PROGRESS_PINGTHROTTLEMS : throttle progress pings milliseconds (default : 1500)
Print parameters¶
- GPD_PRINTER_PDF_PARAMS_MEDIA : print / screen
- GPD_PRINTER_PDF_PARAMS_BACKGROUND : print background (true / false)
- GPD_PRINTER_PDF_PARAMS_SCALE : print scale as floating number
- GPD_PRINTER_PDF_PARAMS_ORIENTATION : portrait / landscape
- GPD_PRINTER_PDF_PARAMS_PAPER_FORMAT : A10 to 4A0, B10 to B0, C10 to C0
- GPD_PRINTER_PDF_PARAMS_PAPER_HEIGHT : paper height in mm
- GPD_PRINTER_PDF_PARAMS_PAPER_WIDTH : paper width in mm
- GPD_PRINTER_PDF_PARAMS_MARGIN_TOP : margin top in mm
- GPD_PRINTER_PDF_PARAMS_MARGIN_BOTTOM : margin bottom in mm
- GPD_PRINTER_PDF_PARAMS_MARGIN_LEFT : margin left in mm
- GPD_PRINTER_PDF_PARAMS_MARGIN_RIGHT : margin right in mm
Logging¶
- GPD_LOGGING : logging level (silent, quiet, verbose, debug, trace)