반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- DOIK
- aws #engineer
- docker
- linux
- 쿠버네티스
- k8s
- Kubernetes
- java
- variable
- container
- Engineer
- RSS
- ioredirection
- Strimzi
- httpd실행
- devops #engineer
- devops #jenkins
- nginx
- 컨테이너
- 파이썬
- 초간단파이썬
- WEB
- multivm
- springboot
- python
- mongodb operator
- Vagrant
- bash
- namespace
- 도커
Archives
- Today
- Total
샤인의 IT (막 적는) 메모장
[Nginx Ingress Controller] 서버 헤더 정보 설정 본문
반응형
Nginx Ingress Controller 배포 시 api request 확인해보면 헤더 정보가 나와있음 (최근 버전은 없는듯)
헤당 서버 헤더 정보를 숨기고 싶을 때 Annotation과 Configmap으로 설정할 수 있음
proxy-hide-header: "Server"
server-tokens: "false"
해당 nginx.conf 설정을 넣어서 다시 요청하면 헤더 정보 없어짐!
#Ingress Controller 헤더 정보를 숨기고 싶을 때
Annotaion configuration-snippet은 location 필드만 수정해주기 때문에 Configmap 수정 필요
#Deployment Or DaemonSet 설정 시
nginx.ingress.kubernetes.io/server-snippet: server-tokens off;
nginx.ingress.kubernetes.io/configuration-snippet: more_clear_heeaders "Server";
#Ingress Controller Configmap 수정 시
data:
proxy-hide-header: "Server"
server-tokens: "false"
끝
반응형
'Open Source' 카테고리의 다른 글
| [Apache] WEB 설정(httpd.conf) 파일 정리 (0) | 2021.12.30 |
|---|---|
| [Nginx] WEB 서버 정리 (0) | 2021.12.30 |
| [EFK] Kubernetes에 올라간 ElasticSearch log4j 취약점 해결 (0) | 2021.12.30 |
| [NodeExporter] node-exporter 사용 포트 변경 (0) | 2021.12.30 |
Comments