7b8d0714e7
- Add etcd-client dependency with TLS support - Implement EtcdConfig struct for reading config values with priority: etcd > env > default - Add ServiceRegistry for service discovery registration in etcd - Create from_etcd method in AppConfig for loading SMTP configuration - Update main.rs to use etcd-based config loading with fallback mechanism - Add etcd module with client connection and key-value operations - Modify Dockerfile to use cargo-chef for faster builds - Add docker-compose.yaml for emailks service deployment - Include AGENTS.md with development guidelines and best practices - Add build.sh script for podman-based container building - Update dependencies in Cargo.toml and Cargo.lock
19 lines
318 B
Rust
19 lines
318 B
Rust
pub mod config;
|
|
pub mod email;
|
|
pub mod email_build;
|
|
pub mod error;
|
|
pub mod etcd;
|
|
pub mod queue;
|
|
pub mod server;
|
|
pub mod status;
|
|
|
|
pub(crate) const ENV_PREFIX: &str = "APP_SMTP_";
|
|
|
|
pub mod pb {
|
|
pub mod email {
|
|
pub mod v1 {
|
|
include!(concat!(env!("OUT_DIR"), "/pb/email.v1.rs"));
|
|
}
|
|
}
|
|
}
|