Skip to main content

Module config

Module config 

Source
Expand description

Configuration logic for onion service reverse proxy.

Re-exportsยง

use derive_deftly::Deftly; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::net::SocketAddr; ๐Ÿ”’
use std::ops::RangeInclusive; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use tor_config::ConfigBuildError; ๐Ÿ”’
use tracing::warn; ๐Ÿ”’
use std::os::unix::net::SocketAddr as UnixSocketAddr; ๐Ÿ”’
use tor_config::derive::prelude::*; ๐Ÿ”’

Structsยง

ProxyActionDiscriminantsIter ๐Ÿ”’
An iterator over the variants of ProxyActionDiscriminants
ProxyConfig
Configuration for a reverse proxy running for one onion service.
ProxyConfigBuilder
A builder to create an instance of ProxyConfig.
ProxyPattern
A set of ports to use when checking how to handle a port.
ProxyRule
A single rule in a ProxyConfig.
ProxyRuleListBuilder
Builder for the Vec<ProxyRule> type.

Enumsยง

Encapsulation
The method by which we encapsulate a forwarded request.
ProxyAction
An action to take upon receiving an incoming request.
ProxyActionDiscriminants ๐Ÿ”’
Auto-generated discriminant enum variants
ProxyConfigError
An error encountered while parsing or applying a proxy configuration.
ProxyPatternAsEnum ๐Ÿ”’
Representation for a ProxyPattern. Used while deserializing.
TargetAddr
The address to which we forward an accepted connection.

Type Aliasesยง

ProxyRuleAsTuple ๐Ÿ”’
Helper type used to (de)serialize ProxyRule.