1 Star 0 Fork 19

康征征/tea

forked from cc-0001/tea 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
nginx.conf 3.40 KB
Copy Edit Raw Blame History
cc-0001 authored 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/kang-zhengzheng/tea.git
git@gitee.com:kang-zhengzheng/tea.git
kang-zhengzheng
tea
tea
master

Search