A lightweight event proxy server with fake SMTP service working in local network.
1.9K
Standalone server receiving events from a fake SMTP server (on the local network), parsing them and sending them via real-time communication channels (SSE). It also includes a simple REST client with CRUD operations.
GitHub repositoryâ | Supportâ
docker build -t milosz08/event-proxy-server .
docker run -d \
--name event-proxy-server \
-p 4365:4365 \
-p 4366:4366 \
-e EVENT_PROXY_SERVER_XMS=128m \
-e EVENT_PROXY_SERVER_XMX=128m \
-e HTTP_PORT=4365 \
-e SSE_HEARTBEAT_INTERVAL_SEC=10 \
-e SSE_HANDSHAKE_PENDING_SEC=180 \
-e SMTP_PORT=4366 \
-e SMTP_THREAD_POOL_SIZE=10 \
-e SMTP_QUEUE_CAPACITY=10 \
-e SMTP_SENDER_SUFFIX=event-proxy-system \
-e DB_PATH=db-data/events.db \
-e DB_POOL_SIZE=5 \
-e SESSION_TTL_SEC=7200 \
-e SESSION_CLEAR_INTERVAL_SEC=3600 \
-e ACCOUNT_USERNAME=admin \
-e ACCOUNT_PASSWORD_LENGTH=20 \
-e ACCOUNT_PASSWORD_HASH_STRENGTH=10 \
-e ARCHIVE_CLEAR_INTERVAL_SEC=3600 \
-e ARCHIVE_RETENTION_DAYS=30 \
milosz08/event-proxy-server:latest
docker-compose.yml file:volumes:
event-proxy-server-db-data:
name: event-proxy-server-db-data
driver: local
services:
event-proxy-server:
container_name: event-proxy-server
image: milosz08/event-proxy-server:latest
ports:
- '4365:4365'
- '4366:4366'
environment:
EVENT_PROXY_SERVER_XMS: 128m
EVENT_PROXY_SERVER_XMX: 128m
# http and smtp servers
HTTP_PORT: 4365
SSE_HEARTBEAT_INTERVAL_SEC: 10
SSE_HANDSHAKE_PENDING_SEC: 180
SMTP_PORT: 4366
SMTP_THREAD_POOL_SIZE: 10
SMTP_QUEUE_CAPACITY: 10
SMTP_SENDER_SUFFIX: event-proxy-system
# database
DB_PATH: db-data/events.db
DB_POOL_SIZE: 5
# session
SESSION_TTL_SEC: 7200
SESSION_CLEAR_INTERVAL_SEC: 3600
# account
ACCOUNT_USERNAME: admin
ACCOUNT_PASSWORD_LENGTH: 20
ACCOUNT_PASSWORD_HASH_STRENGTH: 10
# archive
ARCHIVE_CLEAR_INTERVAL_SEC: 7200
ARCHIVE_RETENTION_DAYS: 30
volumes:
- event-proxy-server-db-data:/app/event-proxy-server/db-data
networks:
- event-proxy-server-network
# other containers...
networks:
event-proxy-server-network:
driver: bridge
Created by MiĆosz Gilga. If you have any questions about this application, send message: [email protected]â .
This project is licensed under the Apache 2.0 License.
Content type
Image
Digest
sha256:f98327b50âŠ
Size
88.7 MB
Last updated
6 months ago
docker pull milosz08/event-proxy-server