Nextcloud News
Security 🇰🇷 Korean

How to Clear Nextcloud's HSTS Warning

Setting the HSTS header at Apache or NGINX resolves the warning.

Nextcloud’s HSTS warning can be resolved by adding the Strict-Transport-Security header at the HTTPS endpoint, such as Apache or NGINX, with a max-age of at least 15552000 seconds.

The header must be set in the web server or reverse proxy configuration, not in Nextcloud’s config.php. This ensures browsers enforce HTTPS for future connections.

A conservative policy is ‘Strict-Transport-Security: max-age=15552000’. Once all subdomains support HTTPS, includeSubDomains can be added, but this requires careful planning to avoid breaking HTTP-dependent services.

← Back to all news