Skip navigation

How do I enforce HTTPS-only access for my repository?

tl;dr

On the repository page, set Allow HTTP to NO under Advanced settings — only encrypted HTTPS connections will be permitted.

To ensure that all connections to your repository are encrypted:

  1. Go to Repositories and click on the repository you want to configure
  2. Under the Advanced section, make sure Allow HTTP is toggled to NO
  3. Click Save

When Allow HTTP is disabled, the repository will only be available through encrypted connections via https://, and plain http:// access will be blocked. This ensures that login details and repository contents are always transmitted securely.

Note: HTTPS access is always allowed regardless of this setting. This option only controls whether unencrypted HTTP access is also permitted.

Advanced settings with Allow HTTP disabled