Initial: Holzleitner Mail-Client (Rust, Windows-Service)
Polling-Client, der beim Backend die noch nicht versendeten ausgelieferten Belege abfragt (GET /admin/delivered-belegnummern), ERPframe per CLI zum Mailversand anstößt (_SV_MAIL_VERSAND) und die Belege anschließend als versendet markiert (POST /admin/mark-mail-sent). Authentifizierung gegen das Backend per X-Admin-Api-Key. Enthält: Config-Laden (config.json, Vorlage config.example.json), Logging, Windows-Service-Wrapper (install-/uninstall-service.ps1). Nicht im Repo (.gitignore): config.json (Secrets: Admin-Key + ERPframe- Passwort), target/, logs/. config.example.json trägt nur Platzhalter. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
config.example.json
Normal file
18
config.example.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"backend_base_url": "http://10.168.10.2:3000",
|
||||
"admin_api_key": "<admin-api-key>",
|
||||
"poll_interval_secs": 300,
|
||||
"request_timeout_secs": 30,
|
||||
"erp_timeout_secs": 600,
|
||||
"belegnummer_separator": ",",
|
||||
"log_dir": "logs",
|
||||
"erpframe": {
|
||||
"exe_path": "C:\\Program Files\\GSD\\ERPframe\\ERPFRAME.EXE",
|
||||
"mode": "AUTOSTARTUP",
|
||||
"app_name": "HOLZ_SQL_TEST_APP",
|
||||
"user": "SYSTEM",
|
||||
"password": "GEHEIM",
|
||||
"command": "_SV_MAIL_VERSAND",
|
||||
"working_dir": null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user