proksi 0.3.1

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

#[derive(Debug, Clone)]
pub struct Certificate {
    pub key: openssl::pkey::PKey<openssl::pkey::Private>,
    pub certificate: openssl::x509::X509,
}

pub type CertificateStore = HashMap<String, Certificate>;