Various changes
This commit is contained in:
parent
a42591c701
commit
c388059f68
19 changed files with 1373 additions and 87 deletions
|
|
@ -30,4 +30,12 @@ pub struct AppState {
|
|||
pub poi_category_groups: Vec<POICategoryGroup>,
|
||||
/// Precomputed map from enum feature name to index in data.enum_features
|
||||
pub enum_name_to_idx: FxHashMap<String, usize>,
|
||||
/// URL of the OG screenshot sidecar service (e.g. http://og-screenshot:8002)
|
||||
pub og_sidecar_url: Option<String>,
|
||||
/// Public-facing URL for absolute og:image URLs (e.g. https://narrowit.schmelczer.dev)
|
||||
pub public_url: String,
|
||||
/// Contents of index.html read at startup, used for crawler OG injection
|
||||
pub index_html: Option<String>,
|
||||
/// Shared HTTP client for proxying to the screenshot sidecar
|
||||
pub http_client: reqwest::Client,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue