Skip to content

Commit 2127e7f

Browse files
committed
hotfix: 서버쪽 익텐에서 또는 외부 호출에서 왜 401을 계속 만드는가?! 의심 부분 해결 v2
1 parent e9f1cb1 commit 2127e7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: nginx/conf.d/velog-dashboard-v2-app.conf

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ server {
1717
proxy_set_header X-Real-IP $remote_addr;
1818
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1919
proxy_set_header X-Forwarded-Proto $scheme;
20-
proxy_set_header access_token $http_access_token;
21-
proxy_set_header refresh_token $http_refresh_token;
2220
proxy_pass http://api:8080;
2321
}
2422

Diff for: nginx/conf/nginx.conf

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ http {
1111
include /etc/nginx/mime.types;
1212
default_type application/octet-stream;
1313

14+
# access_token / refresh_token header
15+
underscores_in_headers on;
16+
1417
log_format main '{"@time":"$time_iso8601",'
1518
'"IP":"$remote_addr",'
1619
'"Status":$status,'

0 commit comments

Comments
 (0)