1 Star 0 Fork 13

ice98 / zadig-portal

forked from KodeRover / zadig-portal 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
zadig-nginx.conf 958 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jody 提交于 2022-07-18 17:25 . feat: add micro app
upstream zadig_portal {
server zadig-backend-0.zadig-backend:25000;
}
log_format zadigportallog '$remote_addr - $remote_user [$time_local] "$request" '
'$status $bytes_sent $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'$upstream_addr $host $sent_http_x_reqid $upstream_response_time $request_time';
server {
listen 80;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
# Make site accessible from http://localhost/
client_max_body_size 1024m;
proxy_send_timeout 500s;
proxy_read_timeout 500s;
location ~ /api{
proxy_pass http://zadig_portal;
proxy_set_header Host $host;
proxy_set_header Referer $http_referer;
}
location @rewrites {
rewrite ^(.+)$ /index.html last;
}
location / {
root /zadig-portal/;
index index.html index.htm;
try_files $uri $uri/ @rewrites;
}
}
1
https://gitee.com/ice98/zadig-portal.git
git@gitee.com:ice98/zadig-portal.git
ice98
zadig-portal
zadig-portal
main

搜索帮助