diff --git a/install/windows.md b/install/windows.md index da8b3a115..9e91949b3 100644 --- a/install/windows.md +++ b/install/windows.md @@ -57,4 +57,67 @@ There are several solutions to run Wiki.js as a background service, e.g.: - [forever](https://www.npmjs.com/package/forever) - [node-windows](https://github.com/coreybutler/node-windows) -![](https://a.icons8.com/djxbtnYm/GBjHDS/svg.svg){.align-abstopright} \ No newline at end of file +![](https://a.icons8.com/djxbtnYm/GBjHDS/svg.svg){.align-abstopright} + +# Run under IIS + +## Install iisnode + +If we want to run wikijs under iis then we first need to install [iisnode](https://github.com/Azure/iisnode/releases). + +## Setup a IIS site + +Next we need to setup a new site under IIS. +Configuring new sites under IIS is outside the scope of this document + +make a note of the directory that the site points to +In this case we're going to assume this is **C:\\wikijs\\** for the sake of simplicity + +## Create an init file + +Next we need to create a javascript startup file +place this under **C:\\wikijs\\** or your site directory + +**wikiSiteInit.js** +```js +require('./server/index.js'); +``` + +## Web.Config file + +Next we're going to create a Web.Config file +place this under **C:\\wikijs\\** or your site directory + +**Web.Config** +```xml + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + > You'll notice above that we may need to pass in the flags + **--no-deprecation --no-warnings** + to get things to work. This is due to a bug associated with iisnode's use of the depreciated Buffer() [tjanczuk/iisnode#668](https://github.com/tjanczuk/iisnode/issues/668) +{.is-warning}