forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into adapt_raft_to_more_platform
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
|
||
upstream masters { | ||
server 192.168.0.11:17010; | ||
server 192.168.0.12:17010; | ||
server 192.168.0.13:17010; | ||
} | ||
|
||
upstream objectnodes { | ||
server 192.168.0.41:80; | ||
server 192.168.0.42:80; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name object.chubao.io ~^(?<bucket>.+)\.object\.chubao\.io$; | ||
charset utf-8; | ||
|
||
location / { | ||
proxy_pass http://objectnodes; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name master.chubao.io; | ||
charset utf-8; | ||
|
||
location / { | ||
proxy_pass http://masters; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"192.168.0.13:17010" | ||
], | ||
"domains": [ | ||
"object.chubaofs.io" | ||
"object.chubao.io" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters