npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pacproxy-https-server

v1.4.4

Published

pacproxy server with auto SSL certificate renew and load. 自动更新和加载SSL数字证书的加密代理服务器

Downloads

72

Readme

pacproxy-server

pacproxy runs in a web server 在vps服务器上运行的pacproxy加密代理

自动获取SSL数字证书, 自动加载SSL数字证书

关于pacproxy参见pacproxy.js

准备

需要能运行nodejs的服务器, 建议选用Debian服务器

需要申请一个域名,并将域名指向服务器IP

需要ssh到服务器的命令行,推荐用Bitvise SSH Client

运行

可运行编译好的服务器软件,适合各种操作系统,笔记本和台式机:https://github.com/httpgate/resouces/tree/main/pacproxy-server

也可以按以下步骤用pm2直接运行代码,可及时更新软件,且运行更稳定

初始化服务器,并修改网站设置

git clone https://github.com/httpgate/pacproxy-server

cd pacproxy-server

./pacpinit.sh

编辑当前网站设置并按Ctrl + O保存,Ctrl + X退出

运行pacproxy服务:

sudo ./server.js

核对屏幕上显示出的PAC链接,如果不对则需要修改网站配置文件:

nano current.site.cfg 

从浏览器访问网站,确认运行正常后 Ctrl + C 退出

后台运行pacproxy服务:

sudo pm2 start runserver.js

查看日志:

sudo pm2 logs --lines 100

可用pm2每天下午13点45分(举例)重启服务,清理内存:

sudo pm2 restart runserver --cron-restart="45 13 * * *"

停止pacproxy服务

sudo pm2 delete runserver

升级Github代码:

git checkout package.json
git pull
npm update

更新数字证书

免费数字证书现在有效期为3个月,允许过期前30天更新新证书。

新版本每次重启会在后台自动更新数字证书,用pm2每个月5日18点(举例)重启服务:

sudo pm2 restart runserver --cron-restart="00 18 5 * *"

如果中间做错可以删掉从头再来:

cd ..
rm -rf ./pacproxy-server

推荐

推荐用prcproxy安全的访问以下网站:

  • 明慧网:https://www.minghui.org
  • 干净世界:https://www.ganjing.com
  • 神韵作品: https://shenyunzuopin.com
  • 大法经书: https://www.falundafa.org