{"id":305,"date":"2019-04-04T16:38:26","date_gmt":"2019-04-04T07:38:26","guid":{"rendered":"https:\/\/blog.enyou.net\/?p=305"},"modified":"2019-04-04T16:38:27","modified_gmt":"2019-04-04T07:38:27","slug":"ubuntu-18-04-apache2-4-%ec%84%9c%eb%b2%84%ec%97%90%ec%84%9c-gitlab-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/blog.enyou.net\/ko\/archives\/305","title":{"rendered":"Ubuntu 18.04, Apache2.4 \uc11c\ubc84\uc5d0\uc11c Gitlab \uc124\uce58"},"content":{"rendered":"\n<p>\uba3c\uc800 <a href=\"https:\/\/about.gitlab.com\/install\/#ubuntu\">\uae43\ub7a9 \ud648\ud398\uc774\uc9c0\ub97c \ucc38\uc870<\/a>\ud574\uc11c \uae43\ub7a9\uc744 \uc124\uce58\ud55c\ub2e4. \uc774\ub54c, \ub450\ubc88\uc9f8 \ub2e8\ub77d\uc5d0 curl https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ee\/script.deb.sh | sudo bash\ub77c\uace0 \uc368\uc838 \uc788\ub294\ub370, gitlab-ee(\uc0c1\uc6a9)\uac00 \uc544\ub2cc gitlab-ce(\ucee4\ubba4\ub2c8\ud2f0)\ub85c \ubcc0\uacbd\ud574\uc11c \uc785\ub825\ud55c\ub2e4<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc740 <a href=\"https:\/\/docs.gitlab.com\/omnibus\/settings\/nginx.html#enable-https\">\uae43\ub7a9 \ubb38\uc11c\ub97c \ucc38\uace0<\/a>\ud558\uc5ec \ubc14\uafd4\uc57c\ud560 \ubd80\ubd84\uc744 \uc54c\uc544\ubcf4\uc790. \/etc\/gitlab\/gitlab.rb \ubb38\uc11c\uc758 \ub2e4\uc74c \ubd80\ubd84\uc744 \ubcc0\uacbd\ud55c \ud6c4, sudo gitlab-ctl reconfigure, sudo gitlab-ctl restart \ud574\uc57c\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>external_url \"https:\/\/gitlab.enyou.kr\" # \uc790\uc2e0\uc774 \uc774\uc6a9\ud560 \uc8fc\uc18c\ub97c \uc801\ub294\ub2e4. https\ub97c \uc4f0\uc9c0 \uc54a\ub294\ub2e4\uba74 http\uc758 \uc8fc\uc18c\ub97c \uc801\ub294\ub2e4.\nnginx['enable'] = false # \ud504\ub860\ud2b8\uc5d4\ub4dc\ub85c \uae43\ub7a9\uc5d0 \ub0b4\uc7a5\ub41c nginx\ub97c \uc4f0\uc9c0 \uc54a\ub294\ub2e4.\nweb_server['external_users'] = ['www-data'] # \uc6f9 \uc720\uc800\ub97c \uc9c0\uba85\ud55c\ub2e4.\ngitlab_rails['trusted_proxies'] = ['localhost'] # \ub9ac\ubc84\uc2a4 \ud504\ub85d\uc2dc\uc5d0\uc11c \uc0ac\uc6a9\ub420 \uc11c\ubc84\uac00 \uc790\uae30 \uc790\uc2e0\uc778 \uacbd\uc6b0, \uadf8\ub807\uc9c0 \uc54a\uc740 \uacbd\uc6b0\uc5d0\ub294 \uc678\ubd80 \uc11c\ubc84\uc758 ip\ub97c \uc9c0\uc2dc\ud55c\ub2e4.\ngitlab_workhorse['listen_network'] = \"tcp\"\ngitlab_workhorse['listen_addr'] = \"127.0.0.1:8181\" # \ub9ac\ubc84\uc2a4 \ud504\ub85d\uc2dc\uc5d0\uc11c \ucc38\uc870\ud560 ip \uc8fc\uc18c, \ud3ec\ud2b8 \ubc88\ud638\ub294 \uc774\ubbf8 \uc0ac\uc6a9\ub418\uc9c0 \uc54a\uc558\ub2e4\uba74 \uc790\uc720\ub86d\uac8c \uc9c0\uc815 \uac00\ub2a5<\/code><\/pre>\n\n\n\n<p>SSL\uc778 \uacbd\uc6b0 \uae43\ub7a9\uc758 \uc800\uc7a5\uc18c\uc5d0\uc11c <a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-recipes\/blob\/master\/web-server\/apache\/gitlab-ssl-apache24.conf\">\ub2e4\uc74c \ubb38\uc11c\ub97c \ucc38\uc870<\/a>\ud558\uc5ec apache \uc0ac\uc774\ud2b8 \uc124\uc815 \ud30c\uc77c\uc744 \uc791\uc131\ud55c\ub2e4. HTTPS\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub294 \uc6f9\uc0ac\uc774\ud2b8\ub77c\uba74 <a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-recipes\/blob\/master\/web-server\/apache\/gitlab-apache24.conf\">\uc774\uacf3\uc744 \ucc38\uc870<\/a>\ud558\ub77c.<\/p>\n\n\n\n<p>\uc11c\ubc84 PC\uac00 \ubcc4\ub85c \ube60\ub974\uc9c0 \uc54a\uc740 \uacbd\uc6b0, \ucf1c\uc9c4 \uc9c1\ud6c4\uc5d0 \uc0ac\uc774\ud2b8\uac00 \ubc14\uc058\ub2e4\uba70 \uc751\ub2f5\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0\uac00 \uc788\ub294\ub370, \uc870\uae08 \uae30\ub2e4\ub9ac\uba74 \uc811\uc18d\ud560 \uc218 \uc788\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uba3c\uc800 \uae43\ub7a9 \ud648\ud398\uc774\uc9c0\ub97c \ucc38\uc870\ud574\uc11c \uae43\ub7a9\uc744 \uc124\uce58\ud55c\ub2e4. \uc774\ub54c, \ub450\ubc88\uc9f8 \ub2e8\ub77d\uc5d0 curl https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ee\/script.deb.sh | sudo bash\ub77c\uace0 \uc368\uc838 \uc788\ub294\ub370, gitlab-ee(\uc0c1\uc6a9)\uac00 \uc544\ub2cc gitlab-ce(\ucee4\ubba4\ub2c8\ud2f0)\ub85c \ubcc0\uacbd\ud574\uc11c \uc785\ub825\ud55c\ub2e4 \ub2e4\uc74c\uc740 \uae43\ub7a9 \ubb38\uc11c\ub97c \ucc38\uace0\ud558\uc5ec \ubc14\uafd4\uc57c\ud560 \ubd80\ubd84\uc744 \uc54c\uc544\ubcf4\uc790. \/etc\/gitlab\/gitlab.rb \ubb38\uc11c\uc758 \ub2e4\uc74c \ubd80\ubd84\uc744 \ubcc0\uacbd\ud55c \ud6c4, sudo gitlab-ctl reconfigure, sudo gitlab-ctl restart \ud574\uc57c\ud55c\ub2e4. SSL\uc778 \uacbd\uc6b0 \uae43\ub7a9\uc758 \uc800\uc7a5\uc18c\uc5d0\uc11c \ub2e4\uc74c \ubb38\uc11c\ub97c \ucc38\uc870\ud558\uc5ec apache \uc0ac\uc774\ud2b8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/posts\/305"}],"collection":[{"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":1,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/posts\/305\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.enyou.net\/ko\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}