mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(selfhost): branding image origins and theme colour (#3389)
This commit is contained in:
1 parent
cca8227ca6
commit
edc913096a
27 files changed
+724
-49
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
use crate::branding_images::BrandingImageOrigins;
|
||||
use crate::config::{AppProxyConfig, HttpUrl};
|
||||
use crate::csp::CompiledCspPolicy;
|
||||
use crate::local_files::LocalFileStore;
|
||||
@@ -82,6 +83,7 @@ impl SpaIndexSource {
|
||||
pub struct AppState {
|
||||
pub config: Arc<AppProxyConfig>,
|
||||
pub csp: Arc<CompiledCspPolicy>,
|
||||
pub branding_image_origins: BrandingImageOrigins,
|
||||
pub http_client: reqwest::Client,
|
||||
pub spa_index_source: SpaIndexSource,
|
||||
pub local_asset_prefixes: Option<Arc<[&'static str]>>,
|
||||
@@ -102,6 +104,7 @@ impl AppState {
|
||||
let local_asset_prefixes = (!spa_index_source.is_upstream())
|
||||
.then(|| present_local_asset_prefixes(&config.static_dir));
|
||||
Ok(Self {
|
||||
branding_image_origins: BrandingImageOrigins::from_config(&config),
|
||||
config,
|
||||
csp,
|
||||
http_client,
|
||||
|
||||
Reference in new issue
Block a user