Forked from SSPanel UIM Web panel for Shadowsocks & ShadowsocksR and V2Ray, based on ss-panel-v3-mod.
- ✅ PHP 8.0+
- ✅ Composer
- ✅ MariaDB / MySQL
- ✅ Nginx (or other web server supports PHP-CGI)
git clone -b froseiun/dev git@github.com:froseiun/sspanel-vela.gitgit config core.filemode falsewget https://getcomposer.org/installer -O composer.phar
php composer.phar
php composer.phar installsql/glzjin_all.sql
Example config files:
config/.config.example.php
config/appprofile.example.php
Rename to:
config/.config.php
config/appprofile.php
Follow the notes and edit it.
php xcat User createAdmin
php xcat User resetTraffic
php xcat Tool initQQWry
php xcat Tool initdownload30 22 * * * php /[webroot]/xcat SendDiaryMail
0 0 * * * php -n /[webroot]/xcat Job DailyJob
*/1 * * * * php /[webroot]/xcat Job CheckJobNotice: default config for dev setup is insecure. Do not use in production.
Run the following code to set up testing containers.
cp ./config/.config.example.php ./config/.config.php
sed -i "s/^\$_ENV\['debug'\].*/\$_ENV\['debug'\] = true;/" ./config/.config.php
sed -i "s/^\$_ENV\['db_host'\].*/\$_ENV\['db_host'\] = 'mariadb:3306';/" ./config/.config.php
sed -i "s/^\$_ENV\['db_username'\].*/\$_ENV\['db_username'\] = 'sspanel';/" ./config/.config.php
sed -i "s/^\$_ENV\['baseUrl'\].*/\$_ENV\['baseUrl'\] = 'https:\/\/localhost:8081';/" ./config/.config.php
touch ./vendor/autoload.php
wget https://github.com/metowolf/qqwry.dat/releases/latest/download/qqwry.dat -O ./storage/qqwry.dat
cp ./config/appprofile.example.php ./config/appprofile.php
mkdir -p certs
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -sha256 -keyout ./certs/nginx.key -out ./certs/nginx.crt -subj '/CN=localhost'
docker compose up --buildThe website will be served at https://localhost:8081 with admin login credential: a@a.com / sspanel