Skip to content

nginx 보안 설정 추가 #156

Description

@hyejungg

What is this issue? 🚀

보안 설정을 추가하였습니다.

Progress 🏃‍♀️

  • ip 주소로 접근 불가하도록 변경
    #default 파일 하단
    server {
      listen 80 default_server;
      return 444;
    }
    
  • 특정 url 차단 + bad_bot에 python-request 에이전트 추가
    • /.env
    • /actuator/health
    • /api/v1/notices?page=1&per_page=1&thread_name=general
    #default 파일
    location / {
         ...
      # 특정 url 차단
      if ($request_uri ~* (.env|api|actuator|health|thread)){
         return 403;
      }
      ...
    }
    
  • 커스텀 에러 페이지 설정 -> nginx 버전 안보이도록 추가
  • 특정 url 만 들어올 수 있도록 찾아보기 (/auth, /user, /folder, /item, /cart)
  • 92.118.161.29 - - [29/Mar/2022:19:35:12 +0900] "GET / HTTP/1.1" 200 22 "-" "NetSystemsResearch studies the availability of various services across the internet. Our website is netsystemsresearch.com"
  • 데일리로 슬랙에 알림 오는 404 경로 에러는 Nginx 단에서 막도록 상시 추가

Metadata

Metadata

Assignees

Labels

feat새 기능 추가settings nginxnginx 설정을 추가

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions