This post was written on 2022.06.12. I wasn’t originally going to publish it, but since it’s fairly complete, I’m posting it for posterity. I haven’t used BT Panel or ZFile in a long time, so this guide isn’t updated and might not work perfectly with current versions.
I do not recommend using BT Panel.
Install Dependencies
Check System Version
cat /etc/issue- This works for almost all Linux distributions.
| |
cat /etc/redhat-release- Specifically for Redhat-based systems:
| |
lsb_release -a- Lists all version details:
| |
Run Commands for Your OS
| |
Create Site
Create the site in the panel.
Go to the site directory, open the terminal, and run:
| |
Common Commands
Run these in the site directory terminal:
| |
Open Port
Allow port 8080 in the “Security” tab.
After starting the project, access IP:8080 to see the site.
Custom Domain
If you need HTTPS, apply for a certificate first, then enable Reverse Proxy.
In BT Panel site settings, go to “Reverse Proxy”.
Set “Target URL” to http://IP:8080 and “Sent Domain” to $host.
If deployment fails
I had issues with certain BT Panel versions. If the reverse proxy doesn’t work, try replacing the code in the “Configuration” tab of the Reverse Proxy settings with this:
| |
Custom Configuration
Config file path: ./WEB-INF/classes/application.yml
Check the Official Docs - Configuration for all options.
Changing Display/Special Files
By default, ZFile looks for readme.md, but many sites use README.md.
Similarly, ZFile uses password.txt for directory passwords, while OneIndex uses .password. Renaming files manually is tedious.
Open application.yml (double-click to edit in BT Panel), press CTRL+F, search for readme, and locate this block:
| |
Change it to:
| |
Press CTRL+S to save, then restart the project.
References
Deploying ZFile with BT Panel (Original Improved Version) - YouthMe