Files
sam-docs/sam/docker/mng/nginx.conf
김보곤 0c923401bf refactor: [docker] tenant 저장소를 shared-storage에서 mng/storage/app/tenants로 변경
- docker-compose: shared-storage 볼륨 마운트 제거
- entrypoint: storage/app/tenants 디렉토리 생성으로 변경
- nginx: tenant-storage alias 경로 변경
2026-02-23 21:32:51 +09:00

32 lines
792 B
Nginx Configuration File
Executable File

server {
listen 80;
server_name _;
root /var/www/mng/public;
index index.php index.html;
access_log /var/log/nginx/mng_access.log;
error_log /var/log/nginx/mng_error.log;
# 심볼릭 링크 허용
disable_symlinks off;
# tenant-storage 정적 파일 서빙
location /tenant-storage/ {
alias /var/www/mng/storage/app/tenants/;
expires 7d;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300s;
}
}