MVP to check axum capabilities
Usecase :
Generate URL with redirect URL as param and and hashmac signature
App server :
- app handle route with URL as param
- validate hashmac signature
- emit event to bus
- redirect to url
Templates html can be customized
- Rust + Axum
- RabbitMQ
For local env without docker
cp .env.docker .envUpdate .env with your params
USE_HTTPS=false
Generate ssl
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodesUpdate .env with your params
USE_HTTPS=true # Set to true to enable HTTPS
TLS_CERT_PATH=./certs/cert.pem # Required if USE_HTTPS is true
TLS_KEY_PATH=./certs/key.pem # Required if USE_HTTPS is true
Start stack
docker compose up --buildno need for --build argument if done once and no code change
App URL
Ui RabbitMQ
http://localhost:15672 (guest/guest)
Logs
docker compose logs -f appRabbitmq queues
docker compose exec rabbitmq rabbitmqctl list_queuescargo run --example generate