nginx.conf를 시각적으로 작성합니다. 서버 블록, 위치, 프록시, SSL, 캐싱. 템플릿과 유효성 검사.
Build nginx.conf visually. Configure server blocks, location rules, SSL, gzip, and caching. Start from templates or build from scratch.
server {
listen 80;
server_name example.com;
root /var/www/html;
access_log /var/log/nginx/access.log;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml;
gzip_min_length 1000;
location / {
try_files $uri $uri/ =404;
}
location /assets/ {
autoindex off;
expires 365d;
add_header Cache-Control "public, immutable";
}
}The IT Hustle의 무료 Nginx Config Generator로 정적 사이트, 프록시, SPA를 위한 nginx 서버 블록을 만들어 보세요.