manio143 / Fedirector

Simple web redirector with F# and Suave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fedirector

An F# web redirector.

Requirements

Preparing

Pull required packages from NuGet

nuget install -ExcludeVersion Suave

Editing

To add new urls for redirection you just need to add entries to the array in app creation. The pattern is

path "/path/to/go/to" >=> redirect "http://where.to.redirect/"

To change the port edit config.bindings and replace 80 with the port you want.

Running

On Windows

fsi.exe app.fsx

On Linux

fsharpi app.fsx

Then simply visit http://localhost/path/to/go/to and enjoy ;)

About

Simple web redirector with F# and Suave


Languages

Language:F# 100.0%