๊น๋ฉ(GitLab)์ ์ค์ ์ด์ํ๊ธฐ ์ํด์ ๋๋ฉ์ธ๊ณผ SSL๋ฑ๋ก์ ์งํํ์๊ณ , ๊ทธ ๊ณผ์ ์ ๊ธฐ๋กํ๋ ๋ชฉ์ ์ผ๋ก ์์ฑํ์ต๋๋ค. ๋ ์ข์ ๋ฐฉ๋ฒ์ผ๋ก ํ์ ๋ ๋ฌด๋ฐฉํฉ๋๋ค. ์ด ๊ธ์ ์ฐธ๊ณ ์ฉ์ผ๋ก๋ง ๋ด์ฃผ์๊ธธ ๋ฐ๋๋๋ค.
์ฐธ๊ณ ์ฌ์ดํธ
https://docs.gitlab.com/omnibus/settings/ssl.html#available-ssl-configuration-tasks
SSL Configuration | GitLab
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
docs.gitlab.com
SSL์ ์ฉ ๋ฐ ์๋๊ฐฑ์
๊น๋ฉ(GitLab) ์ค์ ํ์ผ ํธ์ง๊ธฐ๋ก ์ด๊ธฐ
sudo vi /etc/gitlab/gitlab.rb
์๋์ ๋ด์ฉ์ ์ค์ ํ์ผ ์์ ์ถ๊ฐ
letsencrypt['enable'] = true # GitLab 10.5 and 10.6 require this option
external_url "https://gitlab.example.com" # Must use https protocol
letsencrypt['contact_emails'] = ['foo@email.com'] # Optional
๊น๋ฉ(GitLab)์์ ์์ฒด์ ์ผ๋ก ์ง์ํ๋ ์๋๊ฐฑ์ ์ ์ฉ
# This example renews every 7th day at 12:30
letsencrypt['auto_renew_hour'] = "12"
letsencrypt['auto_renew_minute'] = "30"
letsencrypt['auto_renew_day_of_month'] = "*/7"
(์ฃผ์) ์ธ์ฆ์๋ 30์ผ ์ด๋ด์ ๋ง๋ฃ๋๋ ๊ฒฝ์ฐ์๋ง ๊ฐฑ์ ๋ฉ๋๋ค. ์๋ฅผ ๋ค์ด, ๋งค์ 1์ผ 00:00์ ๊ฐฑ์ ํ๋๋ก ์ค์ ํ๊ณ ์ธ์ฆ์๊ฐ 31์ผ์ ๋ง๋ฃ๋๋ ๊ฒฝ์ฐ ์ธ์ฆ์๋ ๊ฐฑ์ ๋๊ธฐ ์ ์ ๋ง๋ฃ๋ฉ๋๋ค.
์๋์ผ๋ก Let's Encrypt ์ธ์ฆ์๋ฅผ ๊ฐฑ์
sudo gitlab-ctl reconfigure
์ ์ฉ์ด ์๋ฃ๋์๋ค๋ฉด, ์๋์ ๊ฐ์ด ssl ๊ด๋ จ ๋๋ ํฐ๋ฆฌ๊ฐ ์์ฑ๋ฉ๋๋ค.
[Ubuntu] ์ฐ๋ถํฌ ์๋ฒ ์ธํ
[Ubuntu] ์ฐ๋ถํฌ ์๋ฒ ์ธํ
์ฐ๋ถํฌ(Ubuntu)์๋ฒ์ ๋ฆฌ๋ ์ค(Linux)์ค์น๋ฅผ ๊ธฐ๋ก ๋ชฉ์ ์ผ๋ก ์ ๋ฆฌ ๋ฐ ์์ฑ ํ๊ฒ ์ต๋๋ค. ๊ฐ๋จํ๊ฒ ์ ๋ฆฌํ์๋ ๋ชฉ์ ์ด๋ผ ์์ธํ๊ฒ ์ ๋ฆฌ๋์ด ์์ง๋ ์์ ๊ฒ๋๋ค. ํ์ํ ๋ถ๋ถ์ ๋ฆฌ์์นญ์ ํตํด ์ฑ์์ฃผ์
sm-code.tistory.com
[GitLab] ๊น๋ฉ ์ฐ๋ถํฌ(Ubuntu)์๋ฒ์ ์ธํ
[GitLab] ๊น๋ฉ ์ฐ๋ถํฌ(Ubuntu)์๋ฒ์ ์ธํ
์ฐ๋ถํฌ(Ubuntu) OS์์ ๊น๋ฉ(GitLab) ์ค์น๋ฅผ ์งํํ๊ฒ ๋์ด ๊ธฐ๋ก ๋ชฉ์ ์ผ๋ก ์์ฑ๋ ๊ธ์ ๋๋ค. GitLab ์ค์น ๋ฐฉ๋ฒ์ ์ฐพ์๋ณธ ๊ฒฐ๊ณผ, ์ค์น๋ฐฉ์์ด ๋ณ๊ฒฝ๋๋ ์ด์๊ฐ ์ข ์ข ๋ฐ์ํ๋ ์ฐธ๊ณ ์ฉ์ผ๋ก๋ง ํ์ธํ์ ์ผ ํฉ
sm-code.tistory.com
[GitLab] ๊น๋ฉ ๋ก๊ทธ์ธ ํ๋ฉด ์ปค์คํฐ๋ง์ด์ง
[GitLab] ๊น๋ฉ ๋ก๊ทธ์ธ ํ๋ฉด ์ปค์คํฐ๋ง์ด์ง
๊น๋ฉ(GitLab)์์ ๋ก๊ทธ์ธ ํ๋ฉด ์ปค์คํฐ๋ง์ด์ง์ ํตํด ์ ๋ง์ ๋ง๊ฒ ๋ณ๊ฒฝํ๊ณ ์ถ์๋ฐ ์๊ฐ์ธ๋ก ์๋ฃ๊ฐ ๋ง์ง ์์์ ๊ธฐ๋ก ๋ชฉ์ ์ผ๋ก ์์ฑ๋์์ผ๋ฏ๋ก ์ฐธ๊ณ ์ฉ์ผ๋ก๋ง ๋ด์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. ์ค์ ๋ฐฉ
sm-code.tistory.com
[GitLab] ๊น๋ฉ ๋ง์ดํฌ๋ก์ํํธ(MS) ๊ณ์ SSO ์ค์
[GitLab] ๊น๋ฉ ๋ง์ดํฌ๋ก์ํํธ(MS) ๊ณ์ SSO ์ค์
๊น๋ฉ์ OmniAuth๋ผ๋ ๋ชจ๋์ ๋ด์ฅํ์ฌ SSO(Single Sign On)์ ์ ๊ณตํฉ๋๋ค. ์ด๋ก ์ธํด ๋งค์ฐ ๋ค์ํ ์ธ์ฆ ํ๋ก๋ฐ์ด๋๋ฅผ ์ง์ํ๊ณ ์์ต๋๋ค. https://docs.gitlab.com/ee/integration/omniauth.html#supported-providers ์ด ๋ฌธ์
sm-code.tistory.com
'DevOps > Git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] ๊น ํ๋ก์ฐ(Git Flow) ๋? (0) | 2023.02.05 |
---|---|
[GitLab] ๊น๋ฉ ๋ง์ดํฌ๋ก์ํํธ(MS) ๊ณ์ SSO ์ค์ (0) | 2023.02.04 |
[GitLab] ๊น๋ฉ ๋ก๊ทธ์ธ ํ๋ฉด ์ปค์คํฐ๋ง์ด์ง (0) | 2023.02.04 |
[GitLab] ๊น๋ฉ ์ฐ๋ถํฌ(Ubuntu)์๋ฒ์ ์ธํ (0) | 2023.02.04 |
[Git] IntelliJ์์ gitignore ์ฌ์ฉํ๊ธฐ (0) | 2023.02.04 |