fstrigger/config.yml
2021-08-10 16:56:44 +02:00

37 lines
935 B
YAML

directories:
- path: /tmp/foo
recursive: false
events: [ "CLOSE_WRITE", "MOVED_TO" ]
regex: "/[^\\.][^/]+.xml$"
actions:
- type: http
method: post
url: http://localhost:8080/api/v1/_/renz_einfo/xml
header:
Token: Ksi02vcaHHasd1sjYxiq4J
ContentType: application/xml
# content: PLAIN IS FILECONTENT
onError:
type: move
to: /tmp/error/{{ filename }}
stop: true
- type: http
method: post
url: http://localhost:8080/api/v1/_/renz_einfo/operation-file
header:
Token: abc
ContentType: application/json
content: |
{
"filename": "{{ .Name }}"
}
onError:
type: move
to: /tmp/error/{{ filename }}
stop: true
- type: delete
- type: log