proksi 0.1.5

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
use std::{borrow::Cow, sync::Arc};

use dashmap::DashMap;

pub struct Certificate {
    pub key: Vec<u8>,
    pub certificate: Vec<u8>,
}

pub type CertificateStore = Arc<DashMap<Cow<'static, str>, Certificate>>;