mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-01 18:51:53 +08:00
Merge the standalone iot-dc3-web repository into iot-dc3 as dc3-web/, creating a single monorepo with unified versioning, CI/CD, and release process. - subtree-add iot-dc3-web under dc3-web/ with full commit history - relocate nginx configs and SSL certs to dc3/dependencies/ - merge CI workflows (ci-backend.yml, ci-web.yml, docker-ci-web.yml) - merge Issue/PR templates and dependabot config - host frontend docs under docs/zh/frontend/ - share .husky/ hooks via root-level package.json (pnpm) - unify versioning: single dc3/bin/tag.sh (vYYYY.M.P) for the whole repo - update Dockerfile, docker-compose.yml, Makefile for new paths - remove redundant directories from dc3-web/ (.claude, .github, dc3, docs, bin) Co-Authored-By: Claude <noreply@anthropic.com>
69 lines
2.4 KiB
Nginx Configuration File
69 lines
2.4 KiB
Nginx Configuration File
#
|
|
# Copyright 2016-present the IoT DC3 original author or authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
user nginx;
|
|
worker_processes auto;
|
|
|
|
# Error logging configuration
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
|
|
# Events configuration
|
|
events {
|
|
multi_accept on;
|
|
worker_connections 2048;
|
|
use epoll;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
# Logging configuration
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
# Basic settings
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 4096;
|
|
client_max_body_size 20m;
|
|
server_tokens off;
|
|
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;
|
|
|
|
# Gzip compression
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_types text/plain text/css text/xml text/javascript
|
|
application/json application/javascript application/xml+rss
|
|
application/rss application/atom+xml image/svg+xml;
|
|
|
|
# SSL session cache
|
|
ssl_session_timeout 10m;
|
|
ssl_session_cache shared:SSL:10m;
|
|
ssl_session_tickets off;
|
|
|
|
# Include additional configurations
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|