2025-06-03 16:39:17 +02:00
# Furt API Gateway
2025-09-10 12:20:41 +02:00
**Pure Lua HTTP-Server für digitale Souveränität**
2025-06-03 16:39:17 +02:00
## Überblick
2025-09-10 12:20:41 +02:00
Furt ist ein minimalistisches HTTP-Server in Lua 5.1 für Mail-Versendung über SMTP. Es bietet eine einfache JSON-API für Web-Integration und Multi-Tenant-Unterstützung über API-Keys.
2025-06-03 16:39:17 +02:00
2025-08-14 09:36:55 +02:00
## Features
2025-06-17 20:40:40 +02:00
2025-08-14 09:36:55 +02:00
- HTTP-Server mit JSON-APIs
2025-09-10 12:20:41 +02:00
- Multi-Tenant Mail-Routing über SMTP
- API-Key-basierte Authentifizierung
2025-08-14 09:36:55 +02:00
- Health-Check-Endpoints
2025-09-10 12:20:41 +02:00
- Rate-Limiting pro API-Key
- CORS-Support für Frontend-Integration
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
## Quick Start
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
**Dependencies installieren:**
2025-06-17 20:40:40 +02:00
```bash
2025-09-10 12:20:41 +02:00
# OpenBSD
doas pkg_add lua lua-socket lua-cjson luasec
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
# Debian/Ubuntu
sudo apt install lua5.1 lua-socket lua-cjson lua-sec
2025-06-03 16:39:17 +02:00
2025-09-10 12:20:41 +02:00
# Arch Linux
sudo pacman -S lua51 lua51-socket lua51-dkjson lua51-sec
```
2025-06-03 16:39:17 +02:00
2025-09-10 12:20:41 +02:00
**Installation:**
2025-08-14 09:36:55 +02:00
```bash
2025-09-10 12:20:41 +02:00
git clone https://smida.dragons-at-work.de/DAW/furt.git
2025-08-14 09:36:55 +02:00
cd furt
2025-09-10 12:20:41 +02:00
sudo ./install.sh
2025-08-14 09:36:55 +02:00
```
2025-06-03 16:39:17 +02:00
2025-09-10 12:20:41 +02:00
**Server läuft auf:** http://127.0.0.1:7811
2025-06-17 20:40:40 +02:00
2025-08-14 09:36:55 +02:00
## API-Endpoints
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
**Health Check:**
2025-08-14 09:36:55 +02:00
```bash
2025-09-10 12:20:41 +02:00
curl http://127.0.0.1:7811/health
2025-08-14 09:36:55 +02:00
```
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
**Mail senden:**
2025-08-14 09:36:55 +02:00
```bash
2025-09-10 12:20:41 +02:00
curl -X POST http://127.0.0.1:7811/v1/mail/send \
-H "X-API-Key: your-api-key" \
2025-08-14 09:36:55 +02:00
-H "Content-Type: application/json" \
2025-09-10 12:20:41 +02:00
-d '{"name":"Test","email":"test@example .com","subject":"Test","message":"Test-Nachricht"}'
2025-08-14 09:36:55 +02:00
```
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
## Dokumentation
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
**Installation & Konfiguration:** [Furt Wiki ](https://smida.dragons-at-work.de/DAW/furt/wiki )
2025-06-17 20:40:40 +02:00
2025-08-14 09:36:55 +02:00
## Projektstruktur
2025-06-17 20:40:40 +02:00
2025-08-14 09:36:55 +02:00
```
furt/
├── src/ # Lua-Source-Code
2025-09-10 12:20:41 +02:00
├── config/ # Konfiguration
├── scripts/ # Installation & Management
└── deployment/ # System-Integration
2025-08-14 09:36:55 +02:00
```
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
## Integration
2025-06-03 16:39:17 +02:00
2025-09-10 12:20:41 +02:00
**merkwerk:** Versionierte Furt-Deployment über [merkwerk ](https://smida.dragons-at-work.de/DAW/merkwerk )
## License
2025-06-03 16:39:17 +02:00
2025-09-10 12:20:41 +02:00
ISC - Siehe [LICENSE ](LICENSE ) für Details.
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
## Links
2025-06-17 20:40:40 +02:00
2025-09-10 12:20:41 +02:00
- **Repository:** [Forgejo ](https://smida.dragons-at-work.de/DAW/furt )
- **Dokumentation:** [Wiki ](https://smida.dragons-at-work.de/DAW/furt/wiki )
- **Projekt:** [Dragons@Work ](https://dragons-at-work.de )
2025-06-17 20:40:40 +02:00