Skip to content

Wiki - attach file returns "Server responded with 0 code"

Using 11.10.4 (62c46465). Per gitlab-foss#56697 (closed) I modified per below and ran 'gitlab-ctl reconfigure' but it resulted in same error upon attempting to attach a file. Any help would be appreciated.

I have Gitlab CE in a docker container running behind Nginx. To solve the problem "Server responded with 0 code", I added to the file /etc/gitlab/gitlab.rb the following entries:

# external_url 'GENERATED_EXTERNAL_URL'
external_url 'https://your_externarl_url'

nginx['listen_port'] = 80
nginx['listen_https'] = false
nginx['proxy_set_headers'] = {
  "X-Forwarded-Proto" => "https",
  "X-Forwarded-Ssl" => "on"
}