Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lblod/deliver-toezicht-dossier-service
Microservice to deliver toezicht dossiers to the backoffice
https://github.com/lblod/deliver-toezicht-dossier-service
mu-service
Last synced: 21 days ago
JSON representation
Microservice to deliver toezicht dossiers to the backoffice
- Host: GitHub
- URL: https://github.com/lblod/deliver-toezicht-dossier-service
- Owner: lblod
- Created: 2018-09-12T18:04:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T17:15:16.000Z (over 1 year ago)
- Last Synced: 2024-04-16T06:37:00.046Z (8 months ago)
- Topics: mu-service
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deliver-toezicht-dossier-service
Microservice that delivers a package linked to a Toezicht dossier to an sftp endpoint.## Installation
To add the service to your stack, add the following snippet to docker-compose.yml:```
services:
delivertoezicht:
image: lblod/deliver-toezicht-dossier-service
volumes:
- ./data/files:/data/files
```
### Environment variables
```
TARGET_HOST: optional, default 'sftp'
TARGET_USERNAME: required, 'aUsername'
TARGET_PORT: optional, default '22'
TARGET_KEY: optional
TARGET_PASSWORD: optional
TARGET_DIR: optional
ENABLE_CREATE_TARGET_DIR: optional, default 'false'
PACKAGE_CRON_PATTERN: optional, default '*/30 * * * * *'
HOURS_DELIVERING_TIMEOUT: optional, default '3'
FILE_PATH: optional, default '/data/files'
SHARE_PREFIX: optional, default 'share:\/\/'
DISABLE_SSH_DSS: optional, default empty (useful in testing scenarios)
PING_DB_INTERVAL: optional, default '2' (seconds)
```
## Development
For development options, see: [mu-javascipt-template](https://github.com/mu-semtech/mu-javascript-template)To test the full flow, you can include
```
sftp:
image: atmoz/sftp
volumes:
- ./data/sftpfiles:/home/user
ports:
- "2222:22"
command: user:aPassword:::share
```
in your `docker-compose.override.yml` or use an independent service [sftp-service](https://github.com/lblod/sftp-service).
Probably, you will want to enable the flag `DISABLE_SSH_DSS` to make it work on normal sftp servers.