feat: docker编译

This commit is contained in:
TsMask committed 2024-01-11 15:08:34 +08:00
1 parent e94ca04f16
commit 7264cf6d57
3 files changed
+87 -29

No files matched your search

+38 -3
View File
@@ -1,15 +1,50 @@
worker_processes 1;
user nginx;
worker_processes auto;
error_log /var/log/omc/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
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/omc/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
server_tokens off;
#开启gzip功能
gzip on;
#开启gzip静态压缩功能
gzip_static on;
#gzip缓存大小
gzip_buffers 4 16k;
#gzip http版本
gzip_http_version 1.1;
#gzip 压缩级别 1-10
gzip_comp_level 5;
#gzip 压缩类型
gzip_types text/plain application/javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
# 是否在http header中添加Vary: Accept-Encoding,建议开启
gzip_vary on;
server {
listen 80;
listen 80;
listen [::]:80;
server_name localhost;
location /omc-api/ {
proxy_pass http://127.0.0.1:3030/;