Merge branch 'feature/social-post'
This commit is contained in:
commit
46171b4f24
55 files changed
+2872
-7
No files matched your search
@@ -43,6 +43,22 @@ server {
|
||||
application/javascript application/json application/xml
|
||||
image/svg+xml;
|
||||
|
||||
# 승인 nonce 가 액세스 로그·Referer·검색 색인으로 새지 않게 이 자리만 따로 준다.
|
||||
#
|
||||
# ★ `try_files` 를 쓰면 헤더가 사라진다. try_files 의 폴백은 **내부 리다이렉트**라
|
||||
# 요청이 이 블록을 떠나 `location /` 로 다시 들어가고, 거기서 나가는 응답에는
|
||||
# 아래 add_header 가 하나도 붙지 않는다(실측 2026-09-14: 200 은 뜨는데 헤더만 없다).
|
||||
# `rewrite ... break` 는 같은 블록 안에 머문다 — 그래서 이 모양이어야 한다.
|
||||
# ★ 승인 링크는 SPA 한 장이라 파일을 찾아 줄 일이 없다. 곧바로 셸을 준다.
|
||||
location ^~ /approve/ {
|
||||
root /srv/app;
|
||||
access_log off;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
add_header Cache-Control "no-store" always;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
rewrite ^ /__spa-fallback.html break;
|
||||
}
|
||||
|
||||
# ── 발행 사이트 ────────────────────────────────────────────
|
||||
# ★ 리다이렉트는 상대 Location 으로 낸다. 기본값(absolute_redirect on)은 `$scheme` 로
|
||||
# 절대 URL 을 만드는데, TLS 는 앞단 Apache 가 끊으므로 여기 `$scheme` 는 늘 `http` 다 —
|
||||
@@ -123,6 +139,21 @@ server {
|
||||
|
||||
# ── API ────────────────────────────────────────────────────
|
||||
# 앱과 같은 오리진이라 프리플라이트가 아예 발생하지 않는다.
|
||||
location ^~ /v1/social/ {
|
||||
access_log off;
|
||||
add_header Cache-Control "no-store" always;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
proxy_pass $api;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
# 발행·수집 잡은 분 단위다. 기본 60s 면 게이트웨이가 먼저 끊는다.
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
}
|
||||
|
||||
location ~ ^/(v1/|healthz$|openapi\.json$|docs|redoc) {
|
||||
proxy_pass $api;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
Reference in new issue
Block a user