open-index/open-npm huggingface dataset:
npm package: @onenorth/express-loggly-iis
Description: Express middleware to log messages to Loggly
Author: Chris Wigley
Latest version: 2.0.5

# Express | Loggly IIS

A module that sends logging information to your Loggly instance.

### Usage

Here's how to set up Loggly IIS with your existing Express server:

1. Run: `npm install --save @onenorth/express-loggly-iis`

1. Add `app.use(expressLogglyIIS)` __before all__ of your routes.


```js
const express = require('express')
const expressLogglyIIS = require('express-loggly-iis')

const app = express()

// !!! Important for logging IP addresses on Heroku !!!
app.set('trust proxy', true)

app.use(expressLogglyIIS)

app.get('/', (req, res) => res.send('home'))
app.get('/people', (req, res) => res.send('people'))
app.get('/services', (req, res) => res.send('services'))

app.listen(3000, () => console.info('ready on port 3000'))
```


### Configuration

To configure this with your Express instance, please use the following environment variables:


__`LOGGLY_TOKEN`__ (Required)
> Example: `12345678-1234-1234-1234-1234567890AB`

The __customer token__ generated from Loggly. Find out more about how to create a token [here](https://www.loggly.com/docs/customer-token-authentication-token/).


__`LOGGLY_TAGS`__ (Required)
> Example: `iis,onenorth`

A comma-separated list of tags you want to use for filtering logs.

Please add in your site's tag, along with `iis`.


__`LOGGLY_SUBDOMAIN`__ (Defaults to `logs-01`)
> Example: `logs-01`

The subdomain associated with Loggly (you can leave this alone).

The subdomain option is only here in case hosting decides to change their standard endpoint.
npm package: @onenorth/keystone-hosting
Description: One North KeystoneJS Hosting
Author: One North Interactive
Latest version: 1.0.1

# onenorth-keystone-hosting

This is an NPM module that provides One North Hosting functionality for KeystoneJS applications.

# Installation

```sh
npm install --save @onenorth/keystone-hosting
```

# API

'trust proxy' is required when behind a proxy.  Set this to enable processing of the HTTP request X-Forwarded-For header.  

```js
var keystone = require('keystone');
var hosting = require('@onenorth/keystone-hosting');
...
keystone.init({
    ...
    'trust proxy': true
});
...
hosting.register(keystone);
keystone.start();
```
# Configuration

The following environment variables need to be set

```txt
ANONYMOUS_ACCESS_BLOCKER_ENABLED=true
ANONYMOUS_ACCESS_BLOCKER_ALLOWED_IP_RANGES=127.0.0.1/32 ::1

HEALTH_CHECK_ENABLED=true
HEALTH_CHECK_PATH={application path}
HEALTH_CHECK_KEYSTONE_USER_EMAIL={email address}
HEALTH_CHECK_AMAZON_TEST_FILE={filename}
HEALTH_CHECK_AZURE_TEST_FILE={filename}
HEALTH_CHECK_CLOUDINARY_TEST_FILE={filename}

LOG41N_CLIENT_ID={client id}
LOG41N_CLIENT_SECRET={client secret}
LOG41N_ENABLED=true
LOG41N_ENDPOINT={log41n endpoint}
LOG41N_PATH={application path}
```

# Examples

```js
var keystone = require('keystone');
var hosting = require('@onenorth/keystone-hosting');
...
keystone.init({
    ...
    'trust proxy': true
});
...
hosting.register(keystone);
keystone.start();
```

# License

The associated code is released under the terms of the [MIT license](http://onenorth.mit-license.org).
npm package: @oneoff/storybook-webpack2-patch
Description: React Storybook: Isolate React Component Development with Hot Reloading.
Latest version: 2.35.11

Unmodified package from the [gconaty fork of React-storybook](https://github.com/gconaty/react-storybook).

This should not be downloaded or relied on.  Storybook is once again being maintained and webpack 2 integration has been promised ASAP.

This is just a patch to use in the meantime.