Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
fanxing3
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3f864f46
authored
Dec 17, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
nginx 配置文件
1 parent
bbef25e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
images/nginx/fanxing3.conf
images/nginx/fanxing3.conf
View file @
3f864f4
upstream
gateway
{
server
127
.
0
.
0
.
1
:
30000
;
server
192
.
168
.
9
.
233
:
30000
;
server
192
.
168
.
9
.
133
:
30000
;
}
server
{
listen
30010
;
server_name
localhost
;
client_max_body_size
500
;
client_max_body_size
10
G
;
location
/ {
alias
/
xmh
/
fanxing3
/
page
/;
...
...
@@ -16,7 +14,7 @@ server {
location
/
srs
/ {
rewrite
^/
srs
/(.*) /$
1
break
;
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
8080
;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
8080
;
}
location
/
api
/ {
...
...
@@ -35,19 +33,19 @@ server {
rewrite
^/
api
/
video
-
server
/(.*) /$
1
break
;
add_header
Access
-
Control
-
Allow
-
Methods
'*'
;
add_header
Access
-
Control
-
Allow
-
Headers
'Origin, X-Requested-With, Content-Type, Accept, Authorization'
;
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
10350
/;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
10350
/;
}
location
/
api
/
video
-
cloud
/ {
rewrite
^/
api
/
video
-
cloud
/(.*) /$
1
break
;
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
8888
/;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
8888
/;
}
}
# grafana
server
{
listen
33000
;
location
/ {
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
3000
;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
3000
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
...
...
@@ -68,14 +66,14 @@ server {
server
{
listen
39090
;
location
/ {
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
9090
;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
9090
;
}
}
# consul
server
{
listen
38500
;
location
/ {
proxy_pass
http
://
1
92
.
168
.
9
.
233
:
8500
;
proxy_pass
http
://
1
27
.
0
.
0
.
1
:
8500
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment