Hello,

I follow the wiki 
https://gitlab.com/gitlab-org/gitlab-ci/blob/master/doc/install/installation.md 
to setup the gitlab
 gitlab_ci start ok
 nginx start ok
 ngnix test ok
But, I have problem to start the gitlab localhost web page

Here is the output error

with http://127.0.0.1/
give 
502 Bad Gatewaynginx/1.4.6 (Ubuntu)

with http://mygitlab/
give
server not found page.


here is my configuration:

config/application.yml file
=======================================
defaults: &defaults
  gitlab_server_urls:
    # Replace with your gitlab server url
    - 'https://gitlab.example.com/'

  ## Gitlab CI settings
  gitlab_ci:
    ## Web server settings
    host: localhost
#    host: mygitlab
    port: 80
    https: false

    ## Email settings
    # Email address used in the "From" field in mails sent by GitLab-CI
    email_from: gitroot@localhost

    # Email address of your support contact (default: same as email_from)
    support_email: support@localhost

    # Default project notifications settings:
    #
    # Send emails only on broken builds (default: true)
    # all_broken_builds: true
    #
    # Add committer to recipients list (default: false)
    # add_committer: true

  gravatar:
    enabled: true
    plain_url: "http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm";
    ssl_url:   "https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm";


development:
  <<: *defaults

test:
  <<: *defaults
  gitlab_server_urls:
    - 'http://demo.gitlab.com/'

production:
  <<: *defaults
=====================================


my /etc/nginx/sites-enabled/gitlab_ci 
=====================================

# GITLAB CI
# Maintainer: @randx
# App Version: 2.0

upstream gitlab_ci {
  server unix:/home/gitroot/gitlab-ci/tmp/sockets/gitlab-ci.socket;
}

server {
  listen 80 default_server;       # e.g., listen 192.168.1.1:80;
#  server_name ci.gitlab.org;     # e.g., server_name source.example.com;
#  server_name _;                 # e.g., server_name source.example.com;
  server_name mygitlab;             # e.g., server_name source.example.com;
  root /home/gitroot/gitlab-ci/public;

  access_log  /var/log/nginx/gitlab_ci_access.log;
  error_log   /var/log/nginx/gitlab_ci_error.log;

  location / {
    try_files $uri $uri/index.html $uri.html @gitlab_ci;
#    try_files $uri $uri/index.html $uri.html @gitlab;
  }

  location @gitlab_ci {
    proxy_read_timeout          300;
    proxy_connect_timeout       300;
    proxy_redirect              off;

    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   Host              $http_host;
    proxy_set_header   X-Real-IP         $remote_addr;

#    proxy_pass http://gitlab_ci;
#    proxy_pass http://gitlab;
    proxy_pass http://127.0.0.1:8080;
  }

  # adjust this to match the largest build log your runners might submit,
  # set to 0 to disable limit
  client_max_body_size 10m;
}

=========================================

thank for help
Pat   

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/04c67b70-d4c2-4f41-bd97-7f456cb5427d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to