Skip to content

Drop support for resolveOverride

Omar Qunsul requested to merge 456072-drop-support-for-resolve-override into main

Addressing: gitlab-org/gitlab#456072 (closed)

Testing locally

GDK up and running

  1. Make sure you have GDK up and running, for example on http://gdk.test:3000.

Run HAProxy in front of GDK

brew install haproxy`
  1. Create haproxy.cfg with this content
haproxy.cfg
global
    log 127.0.0.1   local0
    log 127.0.0.1   local1 debug
    #log loghost    local0 info
    maxconn 4096
    #chroot /usr/share/haproxy
    #daemon
    #debug
    #quiet

  defaults
    log     global
    mode    http
    option  httplog
    option  dontlognull
    retries 3
    option redispatch
    maxconn 2000
    timeout connect      5000
    timeout client      50000
    timeout server      50000

  frontend localnodes
    bind *:5151
    mode http
    default_backend nodes

  backend nodes
    mode http
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    server server1 127.0.0.1:3000 check
  1. Run HAProxy with the command haproxy -f haproxy.cfg

Run Wrangler in front of HaProxy

From this MR Branch run

npx wrangler dev -e dev --var GITLAB_PROXY_HOST:gdk.test:5151

Testing

From the browser visit http://gdk.test:5151/. GitLab should be up and running

Edited by Omar Qunsul

Merge request reports