proksi 0.2.0

A batteries-included reverse proxy with automatic HTTPS using Cloudflare Pingora and Let's Encrypt.
1
2
3
4
5
6
7
8
9
10
11
12
use std::sync::Arc;

use bytes::Bytes;
use dashmap::DashMap;

#[derive(Debug)]
pub struct Certificate {
    pub key: Bytes,
    pub certificate: Bytes,
}

pub type CertificateStore = Arc<DashMap<String, Certificate>>;