7 changed files with 68 additions and 13 deletions
@ -0,0 +1,9 @@ |
|||||||
|
FROM nginx |
||||||
|
|
||||||
|
COPY ./secret /secret |
||||||
|
|
||||||
|
RUN rm /etc/nginx/conf.d/default.conf |
||||||
|
|
||||||
|
ADD default.conf /etc/nginx/conf.d/ |
||||||
|
|
||||||
|
RUN /bin/bash -c 'echo init ok' |
@ -0,0 +1,11 @@ |
|||||||
|
# 如果没有显式声明 default server 则第一个 server 会被隐式的设为 default server |
||||||
|
server { |
||||||
|
# 自定义访问端口 |
||||||
|
listen 80; |
||||||
|
# 服务名称 |
||||||
|
server_name git.kanglailab.com; |
||||||
|
location / { |
||||||
|
proxy_pass http://localhost:8066; |
||||||
|
} |
||||||
|
} |
||||||
|
|
Loading…
Reference in new issue