SOY NV AI
λ©νλ°μ΄ν° μμ± κΈ°λ₯ κ°μ : κΈ°μ‘΄ λ©νλ°μ΄ν° λ³ν© λ° νμ°¨ μ 보 μ μ§
d234e06
| server { | |
| listen 80; | |
| server_name YOUR_DOMAIN.com www.YOUR_DOMAIN.com; | |
| # λλ IPλ§ μ¬μ©: server_name YOUR_SERVER_IP; | |
| # λ‘κ·Έ μ€μ | |
| access_log /var/log/nginx/soy-nv-ai-access.log; | |
| error_log /var/log/nginx/soy-nv-ai-error.log; | |
| # ν΄λΌμ΄μΈνΈ μ΅λ μ λ‘λ ν¬κΈ° (100MB) | |
| client_max_body_size 100M; | |
| client_body_timeout 300s; | |
| client_header_timeout 300s; | |
| # νλ‘μ λ²νΌ μ€μ | |
| proxy_buffering off; | |
| proxy_request_buffering off; | |
| # νλ‘μ μ€μ | |
| location / { | |
| proxy_pass http://127.0.0.1:5001; | |
| 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 $scheme; | |
| # WebSocket μ§μ | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| # νμμμ μ€μ (AI μλ΅μ΄ μ€λ 걸릴 μ μμ) | |
| proxy_connect_timeout 600s; | |
| proxy_send_timeout 600s; | |
| proxy_read_timeout 600s; | |
| # λ²νΌ μ€μ | |
| proxy_buffer_size 128k; | |
| proxy_buffers 4 256k; | |
| proxy_busy_buffers_size 256k; | |
| } | |
| # μ μ νμΌ μ§μ μ 곡 (μ νμ¬ν) | |
| location /static { | |
| alias /var/www/soy-nv-ai/static; | |
| expires 30d; | |
| add_header Cache-Control "public, immutable"; | |
| } | |
| # 보μ ν€λ | |
| add_header X-Frame-Options "SAMEORIGIN" always; | |
| add_header X-Content-Type-Options "nosniff" always; | |
| add_header X-XSS-Protection "1; mode=block" always; | |
| } | |