all repos — flounder @ dbbe0d4f998ebd47ee4216d7109fc9bc369dbd1b

A small site builder for the Gemini protocol

example-config.toml (view raw)

 1# Used in HTML templates and titles
 2SiteTitle="demoflounder"
 3
 4# Include port if running locally
 5Host="localhost:8165"
 6
 7# Set this depending on whether you want to run this service standalone or through a reverse proxy server
 8HttpPort=8165
 9HttpsEnabled=false
10
11# Folder containing subfolders for each user's files
12FilesDirectory="./files"
13LogFile="./flounder.log"
14
15# Gemini autogenerates self-signed certs
16GeminiCertStore="/tmp"
17
18# A wildcard TLS cert for HTTPS.
19# Only required if HttpsEnabled=true
20# TLSCertFile="./server.crt"
21# TLSKeyFile="./server.key"
22
23# Should we capture prometheus metrics?
24PrometheusMetrics=false
25# TODO rename to addr
26PrometheusMetricsPort="8081"
27
28# Optional SMTP -- to send notification emails to users on acct activation
29# SMTPServer = mail.goodsite.com:587
30# SMTPUsername = myemail@coolplace.com
31# SMTPPassword = hunter2
32
33# Templates and static files
34# Everything in the static subfolder will be served at /
35TemplatesDirectory="./templates"
36DBFile="./flounder.db"
37
38MaxFileBytes=128000 # 128 KB
39MaxUserBytes=10000000 # 10 MB
40
41OkExtensions=[".gmi", ".txt", ".jpg", ".jpeg", ".gif", ".png", ".svg", ".webp", ".midi", ".json", ".csv", ".gemini", ".mp3", ".css", ".ttf", ".otf", ".woff", ".woff2"]
42