Giter VIP home page Giter VIP logo

ssrpanel's Introduction

说明

SSRPanel 最后的开源版本。

安装

环境要求

PHP 7.1.3+ (必须)
MYSQL 5.5+ (推荐5.6)
RAM 1G+ (推荐2G)
DISK 10G+
Redis
PHP必须开启zip、xml、curl、gd2、fileinfo、openssl、mbstring、sg11解密等组件

安装完成后记得编辑.env中 APP_DEBUG 改为 false

编辑php.ini

找到php.ini
nano /usr/local/php/etc/php.ini

搜索disable_function
删除所有proc_开头的函数

NGINX 加入URL重写规则

location / {
    try_files $uri $uri/ /index.php$is_args$args;
}

定时任务

crontab加入如下命令
* * * * * php /www/wwwroot/ssrpanel/artisan schedule:run >> /dev/null 2>&1

注意运行权限,必须跟ssrpanel项目权限一致,否则出现各种莫名其妙的错误
例如用lnmp的话默认权限用户组是 www:www,则添加定时任务是这样的:
crontab -e -uwww

数据库

创建一个字符集为utf8mb4排序规则为utf8mb4_unicode_ci的数据库,然后直接访问网址按提示操作即可,或者自行导入sql文件夹下的db.sql

邮件配置

使用SMTP发信
编辑 .env 文件,修改 MAIL_ 开头的配置
使用队列处理邮件

邮件走队列处理,两种方式:

  • 1.面板根目录下手动执行一次 sh queue.sh,用于观测是否成功发送邮件,可以通过kill手动杀死进程

  • 2.守护发邮件进程

nano /etc/systemd/system/ssrpanel-email.service

复制粘贴以下内容

[Unit]
Description=sspanelj email queue Daemon Service

[Service]
User=root
Type=simple
# 根据自己的实际路径修改下一行
ExecStart=/home/wwwroot/ssrpanel/queue.sh

[Install]
WantedBy=multi-user.target

设置开机启动

systemctl daemon-reload
systemctl enable ssrpanel-email.service
systemctl start ssrpanel-email.service
发邮件失败处理
出现 Connection could not be established with host smtp.exmail.qq.com [Connection timed out #110] 这样的错误
因为smtp发邮件必须用到25,26,465,587这四个端口,故需要允许这四个端口通信

多语言版本

修改 .env 的 APP_LOCALE 值为 en
语言包位于 resources/lang 下,可自行更改,目前支持繁、简、日、韩

HTTPS

将 .env 文件里的 REDIRECT_HTTPS 值改为true,则全站强制走https

境内部署

  • 部署于大陆服务器上时,请在composer.json目录下得config后面加入如下配置,用于组件下载加速
"repositories": {
    "packagist": {
        "type": "composer",
        "url": "https://mirrors.aliyun.com/composer/"
    }
},

后端

后端

自用修改版后端

自用修改版后端开机自启

nano /etc/systemd/system/vnet.service

复制粘贴以下内容

[Unit]
Description=vnet Daemon Service
After=network.target

[Service]
User=root
Type=simple
# 根据自己的实际路径修改下一行
ExecStart=/root/vnet -cfg /root/vnetconfig.json >vnet.log 2>&1
Restart=always

[Install]
WantedBy=multi-user.target

设置开机启动

systemctl daemon-reload
systemctl enable vnet.service
systemctl start vnet.service

License

SSRPanel Standard is open-sourced software licensed under the MIT license.

ssrpanel's People

Contributors

828768 avatar aiden3434 avatar chennhaoo avatar garhing avatar h2y avatar hamishzx avatar hardywu avatar itquannet avatar jarvanh avatar leoleoasd avatar lifespy avatar lordlezehaf avatar monokoo avatar saifsas avatar scyllaly avatar sheffieldlee avatar slobber avatar stoneworld avatar zbrettonye avatar ziqi-cn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.