Files
o2o-weather/frontend/nginx.conf
minaChoiandClaude Opus 5.5 f8b47f064a feat: 시안 B 화면을 기본 화면으로, Hey API로 백엔드 연결
- 예전 화면(/, /a)과 목업 데이터를 지우고 시안 B 를 / 로
- @hey-api/openapi-ts 로 타입·TanStack Query 함수 생성, 토큰·401 갱신 처리
- 공유는 기본 공유창, 없으면 링크 복사

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 11:32:22 +09:00

29 lines
755 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# 폴더 주소로 넘길 때 포트가 빠지지 않게 상대 주소로 보낸다
absolute_redirect off;
gzip on;
gzip_types text/css application/javascript image/svg+xml application/json;
# 해시가 붙은 빌드 파일은 오래 캐시
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location /icons/ {
add_header Cache-Control "public, max-age=604800";
try_files $uri =404;
}
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다
location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}
}