Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-shell
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • gitlab-shell
  • Repository
  • gitlab-shell
  • lib
  • gitlab_config.rb
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    Allow to configure gitlab socket just by path · 5c66f954
    Kirill Smelkov authored Nov 06, 2015
    @jacobvosmaer noted that from user perspective it is not very handy to
    have URL-encoded paths for sockets, and this way it is also not
    consistent with everything else in GitLab where we use just
    unix://path/to/socket instead of unix://path%2Fto%2Fsocket .
    
    Be friends to users and allow them to configure socket path just with paths
    with secondary gitlab_socket option, handler for which just encodes the
    path and adds http+unix:// prefix, so internal handling is always by URL.
    
    To protect from inconsistent input, configuration handler checks that
    only one of gitlab_url or gitlab_socket can be given at a time.
    
    NOTE CGI::escape() is used instead of URL::escape() because the latter
    does not escape '/' characters by default:
    
        http://stackoverflow.com/questions/14989581/ruby-1-9-3-add-unsafe-characters-to-uri-escape
    5c66f954
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7