Files
gnuboard-r2-storage/docker/nginx.conf
kappa f1c46be7b6 feat: 그누보드5 R2 스토리지 확장 모듈 초기 설정
- Docker 개발 환경 구성 (nginx, php, mariadb)
- 그누보드 기본 extend 파일들 추가
- R2 파일 목록 확인 스크립트 추가
- .gitignore 설정 (gnuboard 코어, 테스트 파일 제외)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 20:09:12 +09:00

42 lines
910 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /var/www/html;
index index.php index.html;
charset utf-8;
# 그누보드 rewrite 규칙
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP 처리
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
}
# 정적 파일 캐싱
location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# 보안: 숨김 파일 차단
location ~ /\. {
deny all;
}
# 보안: data 폴더 PHP 실행 차단
location ~* ^/data/.*\.php$ {
deny all;
}
# 업로드 크기 제한
client_max_body_size 50M;
}