Sign inSign up

javierprovecho/glot-www

By javierprovecho

Updated over 10 years ago

glot-www is the website hosted at glot.io.

Image
1

1.1K

javierprovecho/glot-www repository overview

glot-www

Overview

glot-www is the website hosted at glot.io. Snippets are stored and managed in glot-snippets and code are run through glot-run via their respective api's. PostgreSQL is used to store user profiles, api tokens, etc.

Environment variables

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

Variable nameAllowed valuesExampleDescription
APPROOT<url>https://glot.ioBase url to where the app is hosted
PORT1-655353000Listen port
PGHOST<ip> | <hostname>10.0.0.12Postgresql host
PGPORT1-655355432Postgresql port
PGUSER<string>glotPostgresql username
PGPASS<string>secret-passwordPostgresql password
PGDATABASE<string>glotPostgresql database name
RUN_API_BASE_URL<url>https://run.glot.ioUrl to run api
RUN_API_ADMIN_TOKEN<string>some-secretAdmin token for the run api (to create users)
RUN_API_ANONYMOUS_TOKEN<string>secret-tokenToken used to run snippets for anonymous users
SNIPPETS_API_BASE_URL<url>https://snippets.glot.ioUrl to snippets api
SNIPPETS_API_ADMIN_TOKEN<string>some-secretAdmin token for the snippets api (to create users)
MAILGUN_DOMAIN<string>glot.ioMailgun domain
MAILGUN_API_KEY<string>key-1234567890Mailgun api key
ANALYTICS_ID<string>secret-idGoogle analytics id (optional)
DISABLE_ADStruetrueDisable ads (optional)

Compile from source

git clone [email protected]:prasmussen/glot-www.git
cd glot-www
cabal sandbox init
cabal install -j --only-dependencies --max-backjumps=-1 --reorder-goals
cabal build

Tag summary

Content type

Image

Digest

Size

358.9 MB

Last updated

over 10 years ago

docker pull javierprovecho/glot-www