all repos — flounder @ 858ec21770c0e2d0b25fc302688fbde9bb24d9f1

A small site builder for the Gemini protocol

Add example caddyfile
alex wennerberg alex@alexwennerberg.com
Sat, 09 Jan 2021 15:37:25 -0800
commit

858ec21770c0e2d0b25fc302688fbde9bb24d9f1

parent

873a30d3ea4c4d1e43a21a70c9ea2dc08691d537

2 files changed, 16 insertions(+), 2 deletions(-)

jump to
A Caddyfile

@@ -0,0 +1,11 @@

+grafana.flounder.local { + reverse_proxy 127.0.0.1:3000 +} + +https://, flounder.local, *.flounder.local { + reverse_proxy 127.0.0.1:8165 + tls { + on_demand + } +} +
M README.mdREADME.md

@@ -22,9 +22,12 @@ ./flounder -c example-config.toml activate-user [your-username]

## Deploying -For production, in order to handle TLS and custom domains, I use Caddy with On Demand TLS certs. +Gemini TLS certs are handled for you. For HTTP, you'll need a reverse proxy that does the following for you: + +1. Wildcard for \*.yourdomain.whatever +2. On Demand cert for custom user domains -(TODO -- rewrite) +I'm using Caddy. I haven't tested any other servers. I have not extensively tested the self-hosting capabilities, but making it easy to self-host Flounder for either a single or multi-user instance is a goal of mine. Email me if you encounter issues or would like guidance.