How to solve the problem that Kedaoyun Kodbox cannot access https when it is enabled

Original link: https://www.boyhu.cn/notes/how-to-solve-the-problem-of-inability-to-access-https-when-kodbox-is-enabled-on-kedao-cloud.html

favicon.ico

Well, the tossing record was originally intended to be posted in an instant, but after thinking about it, did you stop writing the blog post? Get back the feeling of posting QQ space dynamics in junior high school! Recently, I also found that many bloggers like to directly send life updates to Memos. So, please allow me to continue with a blog post!

reason

The problem encountered in the process of using Synology Docker to deploy Kedaoyun, because Kedaoyun writes the front-end resource links in each html file, so it is impossible for us to modify each file into a fixed link. ! This was unscientific at the time, so we can solve it by modifying the variable. This variable is initialized in config/config.php file. It only needs to be changed to https connection. The modified content is:

the code

 if(!defined('HOST')){ define('HOST',rtrim(get_host(),'/').'/');}

Modify it to:

 if(!defined('HOST')){ define('HOST','https://你的域名/');}

The above code is around line 95.

Live together! Call it a day, delete it in seconds after deploying it once, because there is a charge for online editing and collaborative office work, and it is still an enterprise-level charging standard, slip away!

This article is reproduced from: https://www.boyhu.cn/notes/how-to-solve-the-problem-of-inability-to-access-https-when-kodbox-is-enabled-on-kedao-cloud.html
This site is only for collection, and the copyright belongs to the original author.