You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using CodiMD with docker container on a Linux server. The server has a domain name www.myserver.com. So I set CMD_DOMAIN=myserver.com. The edited part of the compose file is shown below.
I can access the index page of CodiMD by URL http://www.myserver.com:10001. But I cannot login or do other things. I inspected the index page and found that it's trying to fetch things on server using generated URL with prot 3000. For example, the index page cannot display the CodiMD screenshot figure, because it's trying to get from http://www.myserver.com:3000/screenshot.png . The correct address is http://www.myserver.com:10001/screenshot.png.
I think it might be a bug in setting serverURL. How can I fix it? Thank you.
The text was updated successfully, but these errors were encountered:
I just realized that we have no concept for that. You can't map it to another port than CodiMD is running on. The good news is, you can just run CodiMD inside the container on port 10001 by using CMD_PORT and then map this port to the same outside.
@jackycute "disable CMD_URL_ADDPORT or just set CMD_PORT" doesn't work. @SISheogorath is right. I need to change these two settings. Everything works now! Thank you.
Hi, I am using CodiMD with docker container on a Linux server. The server has a domain name
www.myserver.com
. So I setCMD_DOMAIN=myserver.com
. The edited part of the compose file is shown below.I can access the index page of CodiMD by URL
http://www.myserver.com:10001
. But I cannot login or do other things. I inspected the index page and found that it's trying to fetch things on server using generated URL with prot 3000. For example, the index page cannot display the CodiMD screenshot figure, because it's trying to get fromhttp://www.myserver.com:3000/screenshot.png
. The correct address ishttp://www.myserver.com:10001/screenshot.png
.I think it might be a bug in setting
serverURL
. How can I fix it? Thank you.The text was updated successfully, but these errors were encountered: