我使用它的installation guide安裝gitlab。一切都還好,但是當我在瀏覽器中打開localhost:80時,我看到了這條消息歡迎來到nginx!。我找不到任何有任何錯誤的日誌文件。安裝gitlab,但只有nginx的歡迎頁面顯示
我在VirtualBox中運行Ubuntu。我的/ etc/nginx的/啓用的站點 -/gitlab配置文件讀取:
# GITLAB
# Maintainer: @randx
# App Version: 3.0
upstream gitlab {
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen 192.168.1.1:80; # e.g., listen 192.168.1.1:80;
server_name aridev-VirtualBox; # e.g., server_name source.example.com;
root /home/gitlab/gitlab/public;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location/{
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
try_files $uri $uri/index.html $uri.html @gitlab;
}
# if a file, which is not found in the root folder is requested,
# then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {
proxy_read_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_connect_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
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;
}
}
顯得頗爲類似地雷(https://github.com/VonC/compileEverythin克/斑點/主/ nginx的/ nginx.conf.tpl#L80-L118)。您是否正確啓動GitLab服務? (https://開頭github上。com/VonC/compileEverything/blob/master/gitlab/gitlabd) – VonC
你是否設法解決這個問題? – Raffo
沒有抱歉。一個系統管理員從頭開始並在幾天內完成。他發現安裝很痛苦,但與今天相比,這是一個相當舊的版本。 – Synesso