๐ :: golang๋ฅผ ์ฌ์ฉํ accessToken ๊ฐฑ์ ์คํฌ๋ฆฝํธ #263
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ก ๊ฐ์
golang์ผ๋ก prometheus์ ํ ํฐ์ ์๋์ผ๋ก ๊ฐฑ์ ํด์ค ์คํฌ๋ฆฝํธ๋ฅผ ์์ฑํ์ด์
๐ ์์ ๋ด์ฉ
gauth ์๋ฒ์ ๋ก๊ทธ์ธ์์ฒญ์ ๋ณด๋ด์ด accessToken์ ์๋ต์ผ๋ก ๋ฐ์ ํ์ผ์ ์ฐ๋๋ก ์คํฌ๋ฆฝํธ๋ฅผ ์์ฑํ์ด์
๐ ๋ณ๊ฒฝ์ฌํญ
private EC2์ .bashrc์ ํ๊ฒฝ๋ณ์๋ก
GAUTH_SERVER_URL
,GAUTH_USER_NAME
,GAUTH_PASSWORD
์ถ๊ฐํด์ฃผ์ด์ผํด์๐โโ๏ธ ์ง๋ฌธ์ฌํญ
๐ธ ๊ธฐํ
์คํ ํ๋ฆ์ ๋ ธ์ ์ ์ ๋ฆฌํด ๋์์ด์!! ๋งํฌ๋ ์ฌ๊ธฐ์ ์์ด์
์๋ฌด๋ Golang์ ์์ ๋ค๋ฉด ๋ฆฌ๋ทฐ๋ฅผ..
์ฌ์ค Golang์ด ์คํฌ๋ฆฝํธ๋ก ์คํ์ด ์ ๋ ์ง๋ ๋ชจ๋ฅด๊ฒ ๊ธด ํฉ๋๋ค..