Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
6 years ago
Commit
d710a9bb2c52ac958b8c4b8601ac7df90118e7ad
1 parent
07c35236
add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
roles/openresty/files/java-nginx-config/nginx/conf/vhosts/erp.yoho.yohoops.org.conf
roles/openresty/files/java-nginx-config/nginx/conf/vhosts/single.conf
roles/openresty/files/java-nginx-config/nginx/conf/vhosts/erp.yoho.yohoops.org.conf
View file @
d710a9b
# Interface FOR YOHO ERP SYSTEM
server
{
listen
80
;
server_name
erp
.
yoho
.
yohoops
.
org
;
# only allow local
include
./
local
.
access
.
conf
;
proxy_http_version
1
.
1
;
proxy_set_header
Connection
""
;
...
...
@@ -15,13 +20,7 @@ server {
return
200
;
}
# only allow local ip
allow
10
.
66
.
0
.
0
/
16
;
allow
10
.
67
.
0
.
0
/
16
;
allow
192
.
168
.
0
.
0
/
16
;
allow
172
.
31
.
0
.
0
/
16
;
allow
127
.
0
.
0
.
1
;
deny
all
;
location
/
erp
/ {
proxy_pass
http
://
erpgateway
/
erp
-
gateway
/
erp
/;
...
...
roles/openresty/files/java-nginx-config/nginx/conf/vhosts/single.conf
View file @
d710a9b
...
...
@@ -7,8 +7,9 @@ server {
error_log
/
Data
/
logs
/
nginx
/
single
.
yohoops
.
org_error
.
log
;
set
$
real_ip
""
;
set_by_lua_file
$
real_ip
conf
/
setup
.
lua
;
# only allow local
include
./
local
.
access
.
conf
;
if
( $
request_method
=
HEAD
) {
return
200
;
...
...
Please
register
or
login
to post a comment