1 Star 0 Fork 1

HXSecurity/DongTai-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.conf.example 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
pixel 提交于 2021-08-02 16:27 . Revise the Chinese notes to English
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on;
gzip on;
gzip_min_length 5k;
gzip_buffers 4 16k;
#gzip_http_version 1.0;
gzip_comp_level 3;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
server {
listen 80;
server_name iast.huoxian.cn;
client_max_body_size 100M;
location / {
root /usr/share/nginx/html; #Site directory
index index.html index.htm; #Add attribute
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_read_timeout 60;
proxy_pass http://dongtai-webapi:8000/api/;
}
location /upload/ {
proxy_pass http://dongtai-webapi:8000/upload/;
}
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/HXSecurity/DongTai-web.git
[email protected]:HXSecurity/DongTai-web.git
HXSecurity
DongTai-web
DongTai-web
main

搜索帮助