Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
raven-administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raven
raven-administration
Commits
6c3fb0bf
Commit
6c3fb0bf
authored
1 year ago
by
Christoffer Stoll
Browse files
Options
Downloads
Patches
Plain Diff
windows iis userguide
parent
bbe64758
No related branches found
No related tags found
1 merge request
!14
new version - various bug fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
guides/windows_iis_setup.md
+107
-0
107 additions, 0 deletions
guides/windows_iis_setup.md
with
107 additions
and
0 deletions
guides/windows_iis_setup.md
0 → 100644
+
107
−
0
View file @
6c3fb0bf
# Setup Raven on Windows and IIS
Work in progress
## Requirements
-
Git
-
Application request routing installed and enabled
-
https://www.iis.net/downloads/microsoft/application-request-routing
-
https://bmscloud.no/vapcloud/help/engineeringhelp/en-us/23598993547.html
## Setup
### Clone repository:
```
powershell
git
clone
https://git.nilu.no/raven/raven-administration
```
### Install and build client
Inside the client folder run these commands.
This will create a
`dist`
folder
```
powershell
npm
install
npm
build
```
### Create a web.config file in the `dist` folder
Change the api port if needed
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule
name=
"backend"
enabled=
"true"
stopProcessing=
"true"
>
<match
url=
"^api/(.*)$"
/>
<action
type=
"Rewrite"
url=
"http://localhost:5000/api/{R:1}"
/>
</rule>
<rule
name=
"frontend"
stopProcessing=
"true"
>
<match
url=
"^(?!api/)(.*)"
/>
<conditions
logicalGrouping=
"MatchAll"
>
<add
input=
"{REQUEST_FILENAME}"
matchType=
"IsFile"
negate=
"true"
/>
<add
input=
"{REQUEST_FILENAME}"
matchType=
"IsDirectory"
negate=
"true"
/>
</conditions>
<action
type=
"Rewrite"
url=
"/"
/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
```
### Install and build api
Inside the
`api`
folder, create a virtual environment, activate it and istall packages
```
powershell
python
-m
venv
venv
\venv\Scripts\activate
pip
install
-r
requirements.txt
```
### Create a web.config file
```
xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add
name=
"raven-administration-handler"
path=
"*"
verb=
"*"
modules=
"FastCgiModule"
scriptProcessor=
"<path_to_raven>\api\venv\Scripts\python.exe|<path_to_raven>\api\venv\Lib\site-packages\wfastcgi.py"
resourceType=
"Unspecified"
/>
</handlers>
<urlCompression
doStaticCompression=
"true"
doDynamicCompression=
"true"
/>
</system.webServer>
<appSettings>
<add
key=
"WSGI_HANDLER"
value=
"app.app"
/>
</appSettings>
</configuration>
```
### Enable wfastcgi
```
powershell
pip
install
wfastcgi
wfastcgi-enable
```
### Add .env file
```
DB_URI = postgresql://postgres:password@host:5432/database
JWT_ACCESS_TOKEN_EXPIRES_SECONDS = 3600
JWT_SECRET_KEY = make-up-a-secure-key
```
### IIS
Setup a new website on port 80 (or use the default website)
Set the path to the
`dist`
folder
Setup a new website on port 5000
Set the path to the
`api`
folder
Set The applicationpool to
`No managed code`
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment