質問編集履歴

1

gitlab、nginxに関する設定を追記。

2017/09/12 02:59

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,79 @@
45
45
  You need to sign in or sign up before continuing.
46
46
 
47
47
  ```
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ gitlabとnginxの設定に関しては下記のように設定しています。
56
+
57
+ /etc/gitlab/gitlab.rb
58
+
59
+ ```ここに言語を入力
60
+
61
+ external_url 'http://192.168.179.6/gitlab'
62
+
63
+ #unicorn['listen'] = '127.0.0.1'
64
+
65
+ #unicorn['port'] = 8080
66
+
67
+ nginx['enable'] = false
68
+
69
+ nginx['listen_port'] = 8080
70
+
71
+ ```
72
+
73
+
74
+
75
+ /etc/nginx/conf.d/gitlab.conf
76
+
77
+ ```ここに言語を入力
78
+
79
+ upstream gitlab{
80
+
81
+ server 127.0.0.1:8080;
82
+
83
+ }
84
+
85
+
86
+
87
+ server {
88
+
89
+ listen 80;
90
+
91
+
92
+
93
+ access_log /var/log/nginx/gitlab.access.log;
94
+
95
+ error_log /var/log/nginx/gitlab.error.log;
96
+
97
+
98
+
99
+ location / {
100
+
101
+ proxy_http_version 1.1;
102
+
103
+ proxy_set_header Host $http_host;
104
+
105
+ proxy_set_header X-Real-IP $remote_addr;
106
+
107
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
108
+
109
+ proxy_pass http://127.0.0.1:8080;
110
+
111
+ }
112
+
113
+ }
114
+
115
+ ```
116
+
117
+
118
+
119
+ あと、下記のファイルをリネームしました。
120
+
121
+ /etc/nginx/conf.d/default.conf
122
+
123
+ ⇒/etc/nginx/conf.d/default.conf_bk