This document outlines recommended security settings for deploying Portus.
- SECRET_KEY: Set to a long, random string.
- AUTH_ENABLED: Keep
truein production to enforce login. - AUTH_SESSION_EXPIRY_MINUTES: Adjust according to desired session length.
Portus sets the following headers via middleware:
Strict-Transport-SecurityX-Frame-OptionsX-Content-Type-OptionsReferrer-PolicyContent-Security-Policy
Ensure TLS is enabled so HSTS takes effect.