Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
8482c5b3
Commit
8482c5b3
authored
Jul 11, 2022
by
lixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
a2dbffc6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
Dockerfile_10005_cn
Dockerfile_10005_cn
+2
-2
Dockerfile_test_10005
Dockerfile_test_10005
+2
-2
nginx_20000_cn.conf
nginx/nginx_20000_cn.conf
+4
-2
nginx_test_20000.conf
nginx/nginx_test_20000.conf
+1
-1
No files found.
Dockerfile_10005_cn
View file @
8482c5b3
FROM nginx:latest
COPY ./build /var/www/v3
COPY ./cert /cert
COPY ./nginx/nginx_
10005
_cn.conf /etc/nginx/nginx.conf
COPY ./nginx/nginx_
20000
_cn.conf /etc/nginx/nginx.conf
RUN \
mkdir -p /var/log/nginx && \
chmod 777 /var/log/nginx && \
...
...
@@ -10,5 +10,5 @@ RUN \
touch /var/log/nginx/nginx.pid && \
chmod 777 /var/log/nginx/nginx.pid
EXPOSE
10005
EXPOSE
20000
ENTRYPOINT ["nginx","-g","daemon off;"]
Dockerfile_test_10005
View file @
8482c5b3
FROM nginx:latest
COPY ./build /var/www/v3
COPY ./cert /cert
COPY ./nginx/nginx_test_
10005
.conf /etc/nginx/nginx.conf
COPY ./nginx/nginx_test_
20000
.conf /etc/nginx/nginx.conf
RUN \
mkdir -p /var/log/nginx && \
chmod 777 /var/log/nginx && \
...
...
@@ -10,5 +10,5 @@ RUN \
touch /var/log/nginx/nginx.pid && \
chmod 777 /var/log/nginx/nginx.pid
EXPOSE
10005
EXPOSE
20000
ENTRYPOINT ["nginx","-g","daemon off;"]
nginx/nginx_
10005
_cn.conf
→
nginx/nginx_
20000
_cn.conf
View file @
8482c5b3
...
...
@@ -12,7 +12,7 @@ http {
client_max_body_size
100
M
;
server
{
server_name
bkunyun
.
com
www
.
bkunyun
.
com
;
listen
10005
ssl
http2
;
listen
20000
ssl
http2
;
ssl_certificate
/
cert
/
bkunyun
.
com
.
pem
;
ssl_certificate_key
/
cert
/
bkunyun
.
com
.
key
;
ssl_session_timeout
5
m
;
...
...
@@ -174,7 +174,8 @@ http {
set
$
grafana
"http://grafana:3000"
;
proxy_pass
$
grafana
;
}
location
^~ /
config
/ {
location
^~ /
config
/ {
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_connect_timeout
300
s
;
...
...
@@ -183,6 +184,7 @@ http {
set
$
config
"http://config:6666"
;
proxy_pass
$
config
;
}
location
~ /
grafana
/(.*) {
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
...
...
nginx/nginx_test_
10005
.conf
→
nginx/nginx_test_
20000
.conf
View file @
8482c5b3
...
...
@@ -12,7 +12,7 @@ http {
client_max_body_size
100
M
;
#tcp_nopush on;
server
{
listen
10005
;
listen
20000
;
root
/
var
/
www
;
index
index
.
html
index
.
htm
;
resolver
127
.
0
.
0
.
11
valid
=
10
s
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment