Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
T
tve-member-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
禅道
禅道
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
黄兴尧
tve-member-ui
Commits
6df8a2d4
提交
6df8a2d4
authored
4月 12, 2021
作者:
huangxingyao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7
上级
ef7936ba
流水线
#241
已取消 于阶段
变更
1
流水线
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
72 行增加
和
0 行删除
+72
-0
default.conf
default.conf
+72
-0
没有找到文件。
default.conf
0 → 100644
浏览文件 @
6df8a2d4
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
upstream
account_api
{
server
tvememberuser
:
2099
max_fails
=
5
fail_timeout
=
10
s
;
}
upstream
goods_api
{
server
tvememberproduct
:
2098
max_fails
=
5
fail_timeout
=
10
s
;
}
upstream
pay_api
{
server
tvememberbill
:
2094
max_fails
=
5
fail_timeout
=
10
s
;
}
upstream
order_api
{
server
tvememberbill
:
2094
max_fails
=
5
fail_timeout
=
10
s
;
}
server
{
listen
2096
;
#listen [::]:80 default_server;
# Add index.php to the list if you are using PHP
index
index
.
html
index
.
htm
index
.
nginx
-
debian
.
html
;
server_name
_
;
location
/ {
try_files
$
uri
$
uri
/ /
index
.
html
;
error_page
405
=
200
$
uri
;
index
index
.
html
;
root
/
valor
/
member
;
}
location
/
api
/
account
/ {
proxy_pass
http
://
account_api
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
}
location
/
api
/
goods
/ {
proxy_pass
http
://
goods_api
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
}
location
/
api
/
payment
/ {
proxy_pass
http
://
pay_api
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
}
location
/
api
/
order
/ {
proxy_pass
http
://
pay_api
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论