This commit is contained in:
Mateusz Gruszczyński committed 2026-10-09 13:11:33 +02:00
1 parent f87eec7287
commit dd8c195600
38 files changed
+5491 -4682

No files matched your search

+15
View File
@@ -309,6 +309,16 @@ impl Default for Php {
}
}
/// Reusable PHP-FPM configuration. A Web Service can reference one profile or
/// keep its local `php` settings. Profiles are part of the revisioned Config.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(default, deny_unknown_fields)]
pub struct PhpFpmProfile {
pub id: String,
pub name: String,
pub php: Php,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(default, deny_unknown_fields)]
pub struct Hardening {
@@ -352,6 +362,10 @@ pub struct Service {
pub download_extensions: Vec<String>,
/// Symlink handling. The conservative default is `deny`.
pub symlink_policy: SymlinkPolicy,
/// Optional reference to a shared FPM profile; `php` stays the standalone
/// configuration and is preserved when attaching/detaching a profile.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub php_profile_id: Option<String>,
/// Optional FastCGI/PHP-FPM execution for configured script extensions.
pub php: Php,
/// Optional bounded Apache .htaccess compatibility layer compiled at Web Service apply time.
@@ -379,6 +393,7 @@ impl Default for Service {
compression: crate::compression::Overrides::default(),
download_extensions: Vec::new(),
symlink_policy: SymlinkPolicy::Deny,
php_profile_id: None,
php: Php::default(),
htaccess: HtaccessConfig::default(),
hardening: Hardening::default(),