Skip to content

Mahinkumar/weir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


A digital painting of a weir in a forest, with water flowing over a low barrier into a calm pool, surrounded by grass, tall green trees and soft cloudy sky.

Weir

A waiting room server built in Go.

Artwork by Mahinkumar licensed under CC BY 4.0

Quick start

go run .

The waiting room page is served at port 8080 by default

Configuration

Start by editing constants in main.go

const rate = 500                           // admission rate
const redirectURL = "https://example.com"  // where admitted users go
const WeirServerDomain = "localhost"       // The domain and subdomain of waiting server
const AdmitCookieDomain = "localhost"      // The domain and subdomain of main server to redirect too 
const isQueryBasedAdmit = false            // cookie-based or query-based

License

MIT

About

A light weight waiting room server built in Go.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Contributors