Disattiva temporaneamente form prenotazioni
This commit is contained in:
@@ -32,6 +32,23 @@ class Settings:
|
||||
"BOOKING_EMAIL_SUBJECT_PREFIX",
|
||||
"[Clinica Veterinaria Formiginese]",
|
||||
)
|
||||
self.booking_form_enabled = os.getenv("BOOKING_FORM_ENABLED", "false").lower() in {
|
||||
"1",
|
||||
"true",
|
||||
"yes",
|
||||
"on",
|
||||
}
|
||||
self.booking_audit_log_path = os.getenv(
|
||||
"BOOKING_AUDIT_LOG_PATH",
|
||||
str((BASE_DIR / "logs" / "booking_audit.log").resolve()),
|
||||
)
|
||||
self.booking_rate_limit_window_seconds = int(os.getenv("BOOKING_RATE_LIMIT_WINDOW_SECONDS", "900"))
|
||||
self.booking_rate_limit_max_requests = int(os.getenv("BOOKING_RATE_LIMIT_MAX_REQUESTS", "5"))
|
||||
self.booking_captcha_ttl_seconds = int(os.getenv("BOOKING_CAPTCHA_TTL_SECONDS", "600"))
|
||||
self.booking_captcha_secret = os.getenv(
|
||||
"BOOKING_CAPTCHA_SECRET",
|
||||
self.smtp_password or self.app_name,
|
||||
)
|
||||
|
||||
@property
|
||||
def sqlite_file_path(self) -> str | None:
|
||||
|
||||
Reference in New Issue
Block a user