profile
Hello World ๐Ÿ˜Ž
post-thumbnail

[Nginx] Hardening Nginx

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์˜ ๋ณด์•ˆ์„ฑ์„ ๊ฐ•ํ™”ํ•  ์ˆ˜ ์žˆ๋Š” ๋ช‡๊ฐ€์ง€ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.response data์— nginx์˜ version์„ ์ˆจ๊ธฐ๋Š” ๋ฐฉ๋ฒ•

๋ฐฉ๊ธˆ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Basic Auth

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์˜ basic auth๋ฅผ ์‚ฌ์šฉํ•ด ์ธ๊ฐ€๋œ ์‚ฌ์šฉ์ž์—๊ฒŒ๋งŒ ์ ‘๊ทผ์„ ํ—ˆ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.nginx์—์„œ ๊ฐ€์žฅ ์†์‰ฝ๊ฒŒ ์‚ฌ์šฉ์ž

์•ฝ 1์‹œ๊ฐ„ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Rate Limiting

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์˜ Rate Limiting์„ ์‚ฌ์šฉํ•ด incoming connection์„ ์ œํ•œํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. Rate Limi

1์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] HTTPS (SSL)

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ , https://www.tuwlab.com/ece/26978์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์˜ HTTPS๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์•ˆ์„ฑ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก

2์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] HTTP/2

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์—์„œ HTTP/2๋ฅผ ์‚ฌ์šฉํ•ด ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. HTTP/2๋ž€? > ๊ธฐ์กด์˜ HTTP/1.1์„ ๊ฐœ์„ ํ•œ ์ฐจ์„ธ

2์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] FastCGI Cache

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” nginx์˜ fastCGI cahce๋ฅผ ์‚ฌ์šฉํ•ด ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. FastCGI Cache๋ž€? > nginx์˜

3์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[AWS] Amazon RDS ํ•„์ˆ˜ ์„ค์ •

์ฐธ๊ณ ์ž๋ฃŒ : ์Šคํ”„๋ง ๋ถ€ํŠธ์™€ AWS๋กœ ํ˜ผ์ž ๊ตฌํ˜„ํ•˜๋Š” ์›น ์„œ๋น„์Šคrds์˜ ์„ธ๋ถ€ ์„ค์ •์€ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ทธ๋ฃน์„ ํ†ตํ•ด ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.์•„๋ž˜ ๊ทธ๋ฆผ์„ ์ฐธ๊ณ ํ•ด ํŒŒ๋ผ๋ฏธํ„ฐ ๊ทธ๋ฃน์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ์„ฑ์‹œ Parameter group family์€ ๋ฐ˜๋“œ์‹œ ์ƒ์„ฑํ•œ RDS์˜ DB version์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

4์ผ ์ „
ยท
1๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[AWS] Amazon Linux1 EC2 ์„œ๋ฒ„ ํ•„์ˆ˜ ์„ค์ •

์ฐธ๊ณ ์ž๋ฃŒ : ์Šคํ”„๋ง ๋ถ€ํŠธ์™€ AWS๋กœ ํ˜ผ์ž ๊ตฌํ˜„ํ•˜๋Š” ์›น ์„œ๋น„์Šค์•„๋งˆ์กด ๋ฆฌ๋ˆ…์Šค1์˜ ๊ฒฝ์šฐ ๊ธฐ๋ณธ ์ž๋ฐ” ๋ฒ„์ „์ด 7์ด๋ฏ€๋กœ ์ด๋ฅผ 8๋กœ ๋ณ€๊ฒฝํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.๋ณ€๊ฒฝ๋œ java version์€ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.EC2 ์„œ๋ฒ„์˜ ๊ธฐ๋ณธ ํƒ€์ž„์กด์€

4์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] The 'Access-Control-Allow-Origin' header contains multiple values

A ๋„๋ฉ”์ธ์—์„œ B๋„๋ฉ”์ธ์œผ๋กœ cors xmlhttprequest ์š”์ฒญ์„ ๋ณด๋‚ผ๋•Œ The 'Access-Control-Allow-Origin' header contains multiple values ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค.์˜ˆ๋ฅผ ๋“ค์–ด S3๋กœ ํ˜ธ์ŠคํŒ…ํ•˜๊ณ  ์žˆ๋Š” React์—์„œ N

4์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] AWS S3 React NoSuchKey

AWS S3์— React app์„ hosting ํ•˜๋Š” ๊ฒฝ์šฐ์— 404 + NoSuchKey ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค.React์˜ Router๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•˜์ง€ ์•Š์•„์„œ์ด๋‹ค.์•„๋ž˜์™€ ๊ฐ™์ด Error document์— index.html์„ ์ž…๋ ฅํ•˜๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค.

2020๋…„ 2์›” 13์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] AWS EC2 No package npm available

AWS EC2์—์„œ npm์„ ๋‹ค์šด๋ฐ›์„ ๋•Œ ์•„๋ž˜์˜ ๊ตฌ๋ฌธ์„ ์ž…๋ ฅํ•˜๋ฉด install์ด ์•ˆ๋  ์ˆ˜ ์žˆ๋‹ค.์Œ.. ์ด์œ ๋Š” ์ž˜๋ชจ๋ฅด๊ฒ ๋‹ค. ๐Ÿ˜…์•„๋ž˜์˜ ๊ตฌ๋ฌธ์„ ์ˆœ์„œ๋Œ€๋กœ ์ž…๋ ฅํ•˜๋ฉด ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

2020๋…„ 2์›” 13์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] AmazonCloudFormationException: Stack for i-XXX does not exist

AWS EC2์— S3๋ฅผ ์‚ฌ์šฉํ•˜๋Š” srping boot ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ฐฐํฌํ• ๋•Œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค.AWS Client๋Š” ๋ฐฐํฌ์‹œ default๋กœ cloudFront๋ฅผ ๊ตฌ์„ฑํ•˜๋„๋ก ์„ค์ •๋˜์–ด ์žˆ๋‹ค. ๋”ฐ๋ผ์„œ CloudFront๋ฅผ ์ƒ์„ฑํ•˜๊ณ , application.yml์— ๋ช…์‹œํ•ด

2020๋…„ 2์›” 13์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] IntelliJ JUnit Cannot resolve symbol

1. ๋ฌธ์ œ intellJ์—์„œ JUnit Test๋ฅผ ์ˆ˜ํ–‰ํ• ๋•Œ package ๋‚ด์˜ class๋ฅผ ์ฐพ์ง€ ๋ชปํ•ด import ํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. 2. ์›์ธ test์ „์— directory ๊ตฌ์กฐ๋ฅผ ๋ณ€๊ฒฝํ•œ ๊ฒƒ์ด ๋ฌธ์ œ์˜€๋‹ค. ์ด๋•Œ ๋ณ€๊ฒฝ์ „์˜ class๋“ค์˜ ๊ตฌ์กฐ๊ฐ€ compile ๋˜์–ด out directory์— ๋‹ด๊ฒจ์žˆ์—ˆ๋‹ค. 3. ํ•ด๊ฒฐ IntellJ๋ฅผ ์ข…๋ฃŒ ํ›„ ๋‹ค์‹œ ์žฌ์‹œ์ž‘...

2020๋…„ 2์›” 7์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] JPA TransientPropertyValueException: object references an unsaved transient instance

1. ๋ฌธ์ œ JPA๋ฅผ ์‚ฌ์šฉํ•ด ๊ฐ์ฒด๊ฐ„ @OneToOne ๊ด€๊ณ„๋ฅผ ์„ค์ •ํ•œ๋’ค Repository์˜ save๋ฅผ ํ˜ธ์ถœํ• ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. image.png 2. ์›์ธ ์ด๋Ÿฌํ•œ ์ƒํ™ฉ์€ ์ฃผ๋กœ ๋ถ€๋ชจ๊ฐ์ฒด์—์„œ ์ž์‹๊ฐ์ฒด๋ฅผ ํ•œ๋ฒˆ์— ์ €์žฅํ•˜๋ ค๊ณ ํ• ๋•Œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์œผ๋กœ, ์ž์‹ ๊ฐ์ฒด๊ฐ€ ์•„์ง ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ €์žฅ๋˜์ง€ ์•Š์•˜๊ธฐ ๋–„๋ฌธ์ด๋‹ค. ์‚ฌ์šฉํ•œ ํด๋ž˜์Šค๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค. Mis...

2020๋…„ 2์›” 7์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[ERROR] JUnit @DataJpaTest NoSuchBeanDefinitionException

1. ๋ฌธ์ œ JUnit์—์„œ @DataJpaTest๋ฅผ ์‚ฌ์šฉํ•ด์„œ Repository๋ฅผ ํ…Œ์ŠคํŠธํ•˜๋Š” ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์ด JPAQueryFactory Bean์„ ์ฐพ์„ ์ˆ˜ ์—†๋‹ค๋Š” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. image.png 2. ์›์ธ @DataJpaTest๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, ๋ณ„

2020๋…„ 2์›” 6์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Compressed Response with gzip

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” static resource์˜ delivery ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. Compressed Response๋ž€? > response data๋ฅผ ์••์ถ•ํ•ด์„œ return ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด client๊ฐ€...

2020๋…„ 2์›” 1์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Header & Expire

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” Nginx์—์„œ response data์— header๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. Expires Header๋ž€? nginx๋Š” expires header๋ฅผ ํ†ตํ•ด client์—๊ฒŒ response data๋ฅผ ์–ผ๋งˆ๋‚˜ ์˜ค๋žซ๋™...

2020๋…„ 2์›” 1์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Adding Dynamic Module

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด๋ฒˆ๊ธ€์—์„œ๋Š” Nginx์— dynamic module์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 1. Dynamic Module์ด๋ž€? > nginx์˜ module

2020๋…„ 1์›” 31์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Buffer & Timeout

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด์ „๊ธ€์— ์ด์–ด์„œ Nginx์˜ configuartion์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 11. Buffer & Timeout > ์ด๋ฒˆ๊ธ€์—์„œ๋Š” buffer์™€ timeout์„ ์ ์ ˆํžˆ ์‚ฌ์šฉํ•ด ngimx์˜ performance๋ฅผ ์ฆ๊ฐ€์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ...

2020๋…„ 1์›” 31์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Nginx] Worker Process

์ฐธ๊ณ  ์ž๋ฃŒ : https://www.udemy.com/course/nginx-fundamentals/ ์ด์ „๊ธ€์— ์ด์–ด์„œ Nginx์˜ configuartion์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. 10. Worker Process > nginx์—์„œ ์‹ค์ œ๋กœ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ณ  response๋ฅผ return ํ•˜๋Š” process๋Š” master prcoess๊ฐ€ ์•„๋‹Œ wor...

2020๋…„ 1์›” 31์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€