1 Star 0 Fork 20

董冠群/tea

forked from cc-0001/tea 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf 3.40 KB
一键复制 编辑 原始数据 按行查看 历史
cc-0001 提交于 2023-09-14 03:47 . m file
#user nobody;
worker_processes auto;
worker_cpu_affinity auto;
worker_rlimit_nofile 4096;
error_log /dev/stdout warn;
events {
use epoll;
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 logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
client_body_buffer_size 30m;
client_max_body_size 30m;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
server {
listen 30080;
server_name __;
location / {
root /home/images/vm/;
index index.html index.htm;
}
}
server {
listen 30091;
server_name __;
location / {
root "/project/page/front-page/dist/";
index index.html;
}
location /api/ {
proxy_pass http://teaserver-service:30091/;
}
location /passport-api/ {
proxy_pass http://passport-service:30094/;
}
}
server {
listen 30092;
server_name __;
location / {
root "/project/page/admin-page/dist/";
index index.html;
}
location /api/ {
proxy_pass http://teaadmin-service:30092/;
}
location /to_passport/ {
proxy_pass http://passport-service:30094/;
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dong-guanqun/tea.git
git@gitee.com:dong-guanqun/tea.git
dong-guanqun
tea
tea
master

搜索帮助