Awesome Open Source
Awesome Open Source

logo

VPSTOOLBOX

一键安装Trojan-GFW代理,Hexo博客,Nextcloud等應用程式

Gitter Join our Discord server! TG群组

使用方法(請以root/sudo用戶運行,仅推荐Debian10系统)

apt-get update && apt-get install sudo curl -y && curl -Ss https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/vps.sh | sudo bash

重要提示:

  1. 本项目可覆盖安装,无需重建伺服器/VPS !
  2. Trojan-GFW不支援Cloudflare CDN,请勿开启!
  3. 仅支援 Debian9+ Ubuntu16+
  4. 以root/sudoer身份运行(sudo -i)
  5. 购买/白嫖一个域名或者使用二级域名完成DNS A解析,即将域名指向IP(ipv6地址请添加AAAA解析,namesilo最慢需要15min生效)!
  6. 请在控制面板中 完全关闭VPS防火墙(即开放所有端口)(Trojan-gfw支援fullcone-nat但需服务器开启所有端口才能使用) 并 关闭 Cloudflare 之类的 CDN !
  7. 除Trojan-gfw相關軟件外皆為可選項,請自行選擇需要的軟件。
  8. API申请证书和HTTP申请证书区别不大,推荐HTTP申请(需A解析生效),无需输入API等信息。
  9. 如安装失败请自行加入TG群组反馈或者开issue,但请务必附上错误的步骤,截图,OS版本等信息
  10. 证书续签目前使用crontab,如有问题,欢迎反馈 !

Nextcloud优化方法

  1. 开启Memcache 在/usr/share/nginx/nextcloud/config/config.php中添加以下几行(请添加在中间,非开头或末尾)
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  1. 优化索引

运行以下几行

cd /usr/share/nginx/nextcloud/
sudo -u nginx ./occ db:add-missing-indices
sudo -u nginx ./occ db:convert-filecache-bigint
cd
  1. 切换后台进程方式为cron(好像nextcloud会自己切换,如未切换请手动切换)

Nextcloud设定-->基本设定-->改为cron(伺服器端已配置完成,无需任何手动配置)

  1. 重启服务使配置生效
systemctl restart php7.4-fpm

隐私声明:

  1. 此项目使用MIT开源协议,欢迎PR.
  2. 所有ip信息皆来自ipinfo.io,仅用于显示结果,无其他作用。
  3. 项目Demo倒闭了,请自行搭建,谢谢!
  4. 请勿提出任何关于Vultr的issue或者问题,那个垃圾厂商出的问题与本项目无关!

项目特性:

  1. 全自动安装并配置 NGINX 以及 Hexo
  2. 支援所有种类的虚拟化技术,包括bare mental,kvm openvz等
  3. 支援全自动安装并配置 Trojan-GFW Hexo Dnscrypt-proxy Qbittorrent增强版 Bittorrent-Tracker Aria2 Filebrowser Netdata MariaDB PHP RSSHUB Tiny Tiny RSS Fail2ban Speedtest TOR Trojan-panel Postfix Dovecot Roundcube-Webmail等
  4. 全自动签发,续签,重启服务 let's encrypt 证书
  5. 完整的IPV6支援
  6. Full HTTP/2 Support
  7. 全自动时间较准
  8. 全自动服务掉线重启(systemd auto-failrestart)
  9. 全自动检测并卸载阿里云监控
  10. 支援 TCP Turbo
  11. 支援完全/部分卸载
  12. And so on...

如果此项目对你有用 , 请给颗star ,谢谢!


VPSTOOLBOX

One click install Trojan-gfw Hexo Nextcloud and so on.

Gitter Join our Discord server! Chat on Telegram

How to use

apt-get update && apt-get install sudo curl -y && curl -Ss https://raw.githubusercontent.com/johnrosen1/vpstoolbox/master/vps.sh | sudo bash

Important Reminder:

  1. Support Debian8+ Ubuntu14+
  2. Please Run as root(sudo -i)
  3. Trojan-GFW does not support Cloudflare CDN,please do not enable!
  4. Please Purchase a domain and finish a dns resolve(A for ipv4,AAAA for ipv6) before running this program!
  5. Please turn off your firewall for best performance(full-cone nat) and turn off Cloudflare CDN in your control panel before running this program!

Flowchart: flowchart

Privacy Statement:

Ip Information is just an indispensable part of this project, all ip information comes from ipinfo.io,no spam related.

Features:

  1. Auto install and config NGINX
  2. Support all kinds of virtualization including kvm openvz and so on.
  3. Support Auto install and config Trojan-GFW Hexo Dnscrypt-proxy Qbittorrent Bittorrent-Tracker Aria2 Filebrowser Netdata MariaDB PHP RSSHUB Tiny Tiny RSS Fail2ban TOR Speedtest Trojan-panel Postfix Dovecot Roundcube-Webmail
  4. Auto issue and renew let's encrypt certificate and auto reload Trojan-GFW after renewal
  5. Full IPv6 Support
  6. Full HTTP/2 Support
  7. time sync
  8. Fail Restart
  9. uninstall Aliyun Aegis
  10. Support TCP Turbo
  11. Support Full/Part Uninstall
  12. And so on...

Please check project wiki for more info !

If you found it useful , please give a star ,thanks!

License

MIT

Stargazers over time

Stargazers over time


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (9,704
docker (2,677
linux (2,270
nginx (462
debian (212
hexo (172
letsencrypt (129
ipv6 (93
mariadb (86
nextcloud (75
vps (29
postfix (23
qbittorrent (20
netdata (15

Find Open Source By Browsing 7,000 Topics Across 59 Categories