Skip to content

Add CERT_BEHIND_PROXY setting to disable SSL certificate expiration warnings#2400

Open
jafolkerts wants to merge 2 commits intoamidaware:developfrom
jafolkerts:feature/cert-behind-proxy-setting
Open

Add CERT_BEHIND_PROXY setting to disable SSL certificate expiration warnings#2400
jafolkerts wants to merge 2 commits intoamidaware:developfrom
jafolkerts:feature/cert-behind-proxy-setting

Conversation

@jafolkerts
Copy link

Summary

This PR adds support for a CERT_BEHIND_PROXY setting in local_settings.py to disable SSL certificate expiration warnings when SSL termination is handled by an external reverse proxy.

Changes

  • Modified days_until_cert_expires() function in helpers.py to check for the CERT_BEHIND_PROXY setting
  • When set to True, the function returns 999 days instead of calculating actual certificate expiration
  • This effectively disables the SSL certificate warning banner in the UI

Use Case

This is useful for deployments where SSL termination occurs at a load balancer or reverse proxy layer (e.g., nginx, HAProxy, cloud load balancers), making the backend certificate expiration warnings irrelevant and potentially confusing.

Usage

Add to local_settings.py:

CERT_BEHIND_PROXY = True

Testing

Tested on a production deployment with SSL termination at an external reverse proxy. The warning banner no longer appears in the UI after setting CERT_BEHIND_PROXY = True and restarting services.

…arnings

Add support for CERT_BEHIND_PROXY setting in local_settings.py to disable SSL certificate expiration warnings when SSL termination is handled by an external reverse proxy.

When CERT_BEHIND_PROXY is set to True, days_until_cert_expires() returns 999 instead of calculating the actual certificate expiration, effectively disabling the warning banner in the UI.

This is useful for deployments where SSL termination occurs at a load balancer or reverse proxy layer, making the backend certificate expiration warnings irrelevant.
@CLAassistant
Copy link

CLAassistant commented Jan 30, 2026

CLA assistant check
All committers have signed the CLA.

Updated .gitignore to exclude CLAUDE.local.md from version control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants