Home

Awesome

glot-www

Overview

glot-www is the website hosted at glot.io. Code are run through docker-run PostgreSQL is used as the datastore.

Environment variables

glot-www takes its configuration from environment variables. All vars need to be set, no default values are provided.

Variable nameAllowed valuesExampleDescription
APPROOTurlhttps://glot.ioBase url to where the app is hosted
PORT1-655353000Listen port
PGHOSThostname10.0.0.12Postgresql host
PGPORT1-655355432Postgresql port
PGUSERstringglotPostgresql username
PGPASSstringsecret-passwordPostgresql password
PGDATABASEstringglotPostgresql database name
DOCKER_RUN_BASE_URLurlhttp://docker-server:8088Url to docker-run
DOCKER_RUN_ACCESS_TOKENstringsome-secret-tokendocker-run access token
DOCKER_RUN_RESPONSE_TIMEOUTinteger60Seconds to wait for the response
MAILGUN_DOMAINstringglot.ioMailgun domain
MAILGUN_API_KEYstringkey-1234567890Mailgun api key
ANALYTICS_IDstringsecret-idGoogle analytics id (optional)
DISABLE_ADSbooleantrueDisable ads (optional)

Compile from source

git clone git@github.com:glotcode/glot-www.git
cd glot-www
stack build

Develop with yesod-bin

git clone git@github.com:glotcode/glot-www.git
cd glot-www
stack build yesod-bin
./dev.sh