Succeeded in running on synology NAS
taka0913 opened this issue · 19 comments
Below are the steps I took.
Nodejs is installed on the synology NAS.
Install Java on your NAS.
However, my NAS did not need to be installed because the CPU is arm v7.
If you don’t already have a ‘shared folder’ for your Comics, create one.
Enter administrator mode with "sudo -i".
sudo -i
Install entware-ng. It's a package manager and you can easily install imagemagick.
https://github.com/Entware/Entware-ng
Install imagemagick with entware-ng.
opkg install imagemagick
Install git.
opkg install git
opkg install git-http
git clone https://github.com/hjyssg/ShiguReader
modify src/path-config.
replace "D:" to "/volume1"
for example "/volume1/Comic" if shared folder is "Comic".
modify src/config/user-config.js.
replace "D:" to "/volume1"
replace "\" to "/"
for example "/volume1/Comic/_Happy_Lesson/_Going_to_sort/_good/"
7z is included in Synology NAS as standard, but there was a problem, so install it separately.
opkg install p7zip
cd ShiguReader
npm install
If some packages fail to install with a warning, force them to install with the "--force" command.
run.
npm run dev
It's works.
Awesome! Thank you very much!
I like this tool very much, but it is not accessible from the outside.
That's because anyone can see the page if they know the URL.
So I hope this tool implements user login functionality.
ShiguReader is not safe when it can be accessed from public IP. The server code is not prepared for any cyber attack.
Let me guess your use case.
If you just want to watch comic or anime when you are not at home, you can just download files into you tablet.
For example, my ipad has VLC for video and ComicGlass for comic. I download file in Chrome browser and save them to my app. So I can read comic when going outside.
Or you dont want your family members see your personal comic collection even they know the URL. Then I can add a small password page, such that only the person who knows the password can open and read ShiguReader.
Which one is your use case?
I understand that it is dangerous from a security point of view.
So I give up accessing from outside the house.
But it's also true that, as you say, I don't want my family to see the site.
Could you please add a simple password page?
Hahah, sure, I will add a simple password page.
Thank you very much.
By the way, I want to remove the download button, where should I comment it out?
It is at FileChangeToolbar.js renderDownloadLink()
I got these errors when I commented out.
And the site froze.
[HPM] Error occurred while trying to proxy request /api/lsDir from 192.168.1.2:3000 to http://localhost:8080 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/getGoodAuthorNames from 192.168.1.2:3000 to http://localhost:8080 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
It is totally unrelated, are you using any vpn or proxy?
No. I'm not using it.
It works fine. Thank you for your polite advice.
Hahah, it is my pleasure.
Wow. Thank you for updating so quickly. The password page works in my environment as well.
Thank you for your reply.
The cause was cloned to the root folder, so there wasn't enough space set.
Now I have moved the code below /volume1 so no error has occurred.