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

internet-information-services

v0.5.0

Published

internet-information-services

Downloads

77

Readme

internet-information-services

这个框架能将不同的域名路由到你配置好的应用程序里面,通过浏览器访问控制。集成特殊版本的entity-frame。本框架同样是内测中,Bug欢迎留言反馈,给你们带来的麻烦我十分抱歉。邮箱:[email protected]

1.0 后将使用ES6的标准重新编写。

  • 重要:忘记说了,管理员端口默认:8888。修改网站配置一定要注意sites.json文件,系统默认加载sites.json里面的配置。

  • 新版本

0.5.0 mongodb使用3.0以上版本。

0.3.8 添加ef框架db的使用说明。

0.3.0 添加修改admin的配置后生效方法,在 sites.json 里面设置admin状态,然后浏览admin访问域名[domain]:[port]/checkAdmin生效。

  • Bug记录:

0.3.2- 修复特殊情况下没有获取到请求域名下的处理异常。

1、你也可以直接配置好json对象,然后初始化后运行。

var sites = {
    admin: {
        domains: [
            {
                domain: "localhost"
            },
            {
                protocol: "https",
                domain: "localhost",
                options: {
                    pfx: 'iis.pfx',
                    passphrase: "123123"
                }
            }
        ]
    },
    default: {
        domains: [
            {
                protocol: "http",
                domain: "localhost"
            },
            {
                protocol: "https",
                domain: "localhost",
                options: {
                    pfx: 'iis.pfx',
                    passphrase: "123123"
                }
            }
        ]
    },
    test: {
        domains: [
            {
                protocol: "http",
                domain: "localhost",
                port: 82
            },
            {
                protocol: "http",
                domain: "127.0.0.1",
                port: 82
            },
            {
                protocol: "https",
                domain: "localhost",
                port: 446,
                options: {
                    pfx: 'iis.pfx',
                    passphrase: "123123"
                }
            },
            {
                protocol: "https",
                domain: "127.0.0.1",
                port: 446,
                options: {
                    pfx: 'iis.pfx',
                    passphrase: "123123"
                }
            }
        ],
        stop: true
    }
};

var db = {};

db.onsuccess = function (db, mongodb) {

    console.log(arguments);
};

iis.init({
    admin: "qwe123",
    sites: sites,//必须参数
    path: __dirname,//必须参数
    db: db,
    // mongoDB: "mongodb://localhost:27017/mdb",
    gateway: null
});

2、也可以在服务启动后通过域名访问后台进行控制。

*如果你不提供密码系统会自动生成6位随机密码。

*你也可以在浏览器端后台关闭后台的访问接口,再次开启需要修改sites.json文件里面的对应配置。

3、添加网站或修改对应网站的程序后需要在后台执行“重启站点”才能生效。

4、配置https请是上传对应的证书文件。

5、使用本框架集成的entity-frame,参照https://www.npmjs.com/package/entity-frame的使用说明。

6、与entity-frame框架一样,文件目录结构也是自动生成的,请在初始化文件结构的基础上添加修改代码。

7、组织结构

wwwroot ┬ site1 ┬ views ─── ...
        │       │         
		│       ├ wwwroot ─ ...
        │       │         
        │       └ index.js (程序入口)
        │            
        │            
        ├ site2 ─ ...
        │
        └ ...