Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add https support for docker #91

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: "tikazyq/artipub:latest"
environment:
MONGO_HOST: "mongo"
ARTIPUB_API_ADDRESS: "localhost:3000" # 后端API地址,如果安装地址不在本机,请修改为服务器IP地址+端口号(默认为3000)
ARTIPUB_API_ADDRESS: "http://localhost:3000" # 后端API地址,如果安装地址不在本机,请修改为协议+服务器IP地址+端口号(默认为3000)
ports:
- "8000:8000" # frontend
- "3000:3000" # backend
Expand Down
2 changes: 1 addition & 1 deletion docker_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ then
:
else
jspath=`ls /frontend/umi.*.js`
sed -i "s?localhost:3000?${ARTIPUB_API_ADDRESS}?g" ${jspath}
sed -i "s?http://localhost:3000?${ARTIPUB_API_ADDRESS}?g" ${jspath}
fi

# start frontend
Expand Down
2 changes: 1 addition & 1 deletion src/pages/document.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/>
<title>ArtiPub</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<script src="http://sdk.talkingdata.com/app/h5/v1?appid=378E36452AF64EDCA6EF5EAAF53A7993&vn=0.1.4&vc=0.1.4"></script>
<script src="https://h5.talkingdata.com/app/h5/v1?appid=378E36452AF64EDCA6EF5EAAF53A7993&vn=0.1.4&vc=0.1.4"></script>
</head>
<body>
<noscript>Sorry, we need js to run correctly!</noscript>
Expand Down