Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9449

Closed
Open
Created Jul 12, 2015 by Administrator@rootOwner

Unable to configure HTTP Strict Transport Security

Created by: asaparov

Hello! Firstly, thanks so much for developing this! It's been really useful for me and my work.

I have a somewhat unconventional network which forces me to use an alternate port for SSL in my nginx-gitlabhq setup (port 443 is forwarded to another machine). As far as I can tell, there is no HSTS setting that allows me to specify the alternate port, and so whenever a browser tries to access my website after the first request, it will try to establish an HTTPS connection at port 443 (and thus be directed to the wrong machine).

As a workaround, I was thinking of disabling HSTS and have nginx redirect all HTTP requests to HTTPS at the alternate port. However, there doesn't seem to be a way of disabling HSTS in gitlabhq other than setting the https configuration setting to false (which seems to affect other things as well). Is there a way of disabling HSTS, or modifying its parameters (such as duration)?

Assignee
Assign to
Time tracking