Files
SPipe/deploy/nginx.conf
T
bjkim1 21ebb16fb7 SPipe 데모 v2 (2026-10-30) 서버 배포본
- SPipe_server_2026-10-30.zip 내용을 풀어서 등록 (압축 파일은 올리지 않음)
- README에 데모 v2 서버 업데이트 순서 추가, 저장소에 없는 문서 목차 정리
- 패치내역을 docs/로 이동, _worklog.md 추가
- 임시 파일(backend/temp.*)과 API 키가 든 파일은 제외
2026-10-30 11:00:46 +09:00

31 lines
945 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Keep in sync with SPIPE_MAX_UPLOAD_MB (backend); nginx rejects larger
# bodies before they reach the API.
client_max_body_size 21m;
gzip on;
gzip_types application/json text/plain application/javascript text/css;
gzip_min_length 1024;
# DEM rasters (SPIPE_MAX_DEM_MB, default 300).
location /api/dem {
client_max_body_size 301m;
proxy_request_buffering off;
proxy_pass http://api:8000;
proxy_read_timeout 600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /api/ {
proxy_pass http://api:8000;
proxy_read_timeout 300s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
try_files $uri $uri/ /index.html;
}
}