PSQL-based FTP/MVN upload worker
This worker listens to AMQP-based queue and does a delivery synchronization with FTP or/and external MVN storage.
Binary packages required
- GnuPG - for gpg encryption and signing
Environment variables
- PSQL_URL, PSQL_USER, PSQL_PASSWORD - credentials for PSQL database (dlmanager Django application). PSQL_URL should contain database schema. Format: hostFQDN:port/instance?search_path=schema
- MVN_URL, MVN_USER, MVN_PASSWORD - general credentials for maven-like repository connection. Will be used if not overrided with any of two groups below
- MVN_EXT_URL, MVN_EXT_USER, MVN_EXT_PASSWORD - credentials for external (available for client) instance of maven-like repository.
- MVN_INT_URL, MVN_INT_USER, MVN_INT_PASSWORD - credentials for internal (not available for client) instance of maven-like repository.
- MVN_DOWNLOAD_REPO - MVN repository do download deliveries from
- MVN_LINK_URL - URL for delivery hyperlink construction (for customer)
- AMQP_URL, AMQP_USER, AMQP_PASSWORD - credentials for AMQP server connection.
- WORKER_QUEUE - a queue to listen, default:
cdt.dlupload.input
- FTP_URL, FTP_USER, FTP_PASSWORD - credentials for FTP server connection.
- SVN_CLIENTS_URL, SVN_CLIENTS_USER, SVN_CLIENTS_PASSWORD - credentials for Subversion PGP keys storage (for recipients)
- SMTP_USER, SMTP_PASSWORD, SMTP_URL - SMTP server credentials - for senging e-mails about deliveries.
- MAIL_DOMAIN - mail domain for sending e-mails from. Will be used as
From: noreply@${MAIL_DOMAIN}
- MAIL_FROM - address (may be with skipped domain) to send e-mail notifications from. Should be specified as USER_ID in private key
- MAIL_CONFIG_FILE - path to mailer configuration file
- PGP_CHECK - Enable (
True) or Disable (False) PGP private key check, default: True
- PGP_PRIVATE_KEY_PASSWORD - credentials for PGP/GPG private key. Used for encryption or signing.
- PGP_PRIVATE_KEY_FILE - path to PGP/GPG private key on local filesystem. Should contain both private and public part.
- PGP_MAIL_FROM - address (may be with skipped domain) to search encryption key (i.e. used as KEY_ID in PGP_PRIVATE_KEY_FILE)
- DELIVERY_DESTINATIONS_FILE - path for delivery_destinations.yml settings file. See format below.