Not released yet. PeltyCMS is under development and not released yet; these docs describe the upcoming release and may change.
PeltyCMS Developer docs
User docsDevelopers
v0.1.0

Developer docs/Platform reference

Settings keys

Runtime settings live in the system_settings table as JSON values, one row per key, and are edited in the admin area (not through environment variables, see Configuration). 36 keys are read or written by the code. Found by scanning settings::get / settings::set calls (consts resolved to their value), raw SQL on system_settings, and *_KEY consts of files that query the table directly.

KeyConstDescriptionUsed in
addon.mixins_disabledKILL_KEYcrates/pelty-api/src/addon_events.rs
addons.registryREGISTRY_KEYcrates/pelty-api/src/addons.rs
billing.add_fundsKEYcrates/pelty-database/src/add_funds.rs
billing.autopayKEYcrates/pelty-database/src/autopay.rs
billing.bank_transferBANK_TRANSFER_KEYcrates/pelty-database/src/settings.rs crates/pelty-api/src/routes/settings.rs
billing.due_remindersDUE_KEYcrates/pelty-database/src/invoice_tools.rs
billing.invoice_brandingKEYcrates/pelty-database/src/branding.rs
billing.on_demand_renewalsKEYcrates/pelty-api/src/routes/renewals.rs
billing.overdueKEYcrates/pelty-database/src/overdue.rs
billing.proformaPROFORMA_KEYcrates/pelty-database/src/invoices.rs crates/pelty-api/src/routes/admin_ops.rs
billing.reversalREVERSAL_KEYcrates/pelty-api/src/routes/refunds.rs
billing.taxTAX_KEYcrates/pelty-database/src/report_library.rs crates/pelty-database/src/tax.rs
custom_codeCODE_KEYcrates/pelty-database/src/general_settings.rs
domains.defaultsKEYcrates/pelty-database/src/domain_defaults.rs
domains.premiumPREMIUM_KEYcrates/pelty-database/src/domain_pricing.rs
domains.rdap_basecrates/pelty-api/src/routes/domains.rs
duoKEYcrates/pelty-api/src/duo.rs
einvoiceKEYcrates/pelty-api/src/routes/einvoice.rs
email_templates_disabledDISABLED_KEYcrates/pelty-api/src/mail.rs
fraudKEYcrates/pelty-database/src/fraud.rs
general_settingsKEYcrates/pelty-database/src/general_settings.rs
kycSETTINGS_KEYcrates/pelty-database/src/kyc.rs
mail.smtpKEYcrates/pelty-database/src/setup_wizard.rs crates/pelty-api/src/routes/smtp.rs
orders.approvalKEYcrates/pelty-database/src/order_approval.rs
registrant_verification_enabledENABLED_KEYcrates/pelty-api/src/registrant_verify.rs
security.captchaSETTING_KEYcrates/pelty-api/src/captcha.rs
security.policySETTING_KEYcrates/pelty-auth/src/policy.rs crates/pelty-api/src/security.rs
security.staff_require_2faREQUIRE_2FA_KEYcrates/pelty-database/src/staff.rs crates/pelty-api/src/routes/staff.rs
security.trusted_proxiesKEYcrates/pelty-api/src/trusted_proxy.rs
setup.wizardKEYcrates/pelty-database/src/setup_wizard.rs
site.configCONFIG_KEYcrates/pelty-api/src/routes/site.rs
system.housekeepingKEYcrates/pelty-database/src/housekeeping.rs
system.inactive_client_erasureKEYcrates/pelty-database/src/inactive_clients.rs
theme.activeACTIVE_THEME_KEYcrates/pelty-api/src/routes/extensions.rs
update_checkCFGcrates/pelty-api/src/updates.rs
update_statusSTATUScrates/pelty-api/src/updates.rs

#General settings

Admin → System & settings → General settings stores one JSON document under general_settings (custom head/body code under custom_code). Its sections:

#General

FieldTypeRequiredDescription
company_nameStringyes
emailStringyes
domainStringyes
logo_urlStringyes
pay_to_textStringyes
records_per_pageu32yes

Source: crates/pelty-database/src/general_settings.rs (General).

#SystemUrls

FieldTypeRequiredDescription
system_urlStringyes
terms_urlStringyes
privacy_urlStringyes
support_urlStringyes

Source: crates/pelty-database/src/general_settings.rs (SystemUrls).

#Maintenance

FieldTypeRequiredDescription
enabledboolyes
messageStringyes
redirect_urlStringyes

Source: crates/pelty-database/src/general_settings.rs (Maintenance).

#Localisation

FieldTypeRequiredDescription
default_languageStringyes
allow_language_choiceboolyes
date_formatStringyes
client_date_formatStringyes
timezoneStringyes
default_countryStringyes

Source: crates/pelty-database/src/general_settings.rs (Localisation).

#Ordering

FieldTypeRequiredDescription
default_order_formStringyes
tos_requiredboolyes
allow_domain_onlyboolyes
show_cart_after_addboolyes
grace_daysu32yes
enable_promo_fieldboolyes

Source: crates/pelty-database/src/general_settings.rs (Ordering).

#Support

FieldTypeRequiredDescription
attachment_max_mbu32yesMax size per ticket attachment, in MiB (1..=50).
attachments_per_messageu32yesMax files per ticket message (1..=20).
live_chatboolyesShow the public live-chat widget.

Source: crates/pelty-database/src/general_settings.rs (Support).

#CustomCode

FieldTypeRequiredDescription
cssStringyes
head_jsStringyes
footer_jsStringyes

Source: crates/pelty-database/src/general_settings.rs (CustomCode).