···11# Maple
2233-A very simple static Gemini server; written within a single file and liberally
44-spanning 159 lines-of-code.
33+A very simple static Gemini server, now with Titan support!
44+55+### Lines-of-code
66+This codebase is now 351 lines of lines-of-code!
77+88+The statement "... written within a single file and liberally
99+spanning 159 lines-of-code." has been removed.
1010+1111+If you would still like the minimal 159-LOC experience, checkout
1212+[49ce0f8](https://github.com/gemrest/maple/tree/49ce0f83b8abd1af4760e56c1673c6997ef8a2c4)!
1313+(Docker tag `0.1.4`) Do note, that version of this project is outdated and only
1414+has Gemini support.
515616## Usage
717···2434Docker Compose file or executable -- named [`.maple/gmi`](.maple/gmi) and
2535ending with the file extension `.gmi`.
26363737+### Environment Variables
3838+3939+Maple can be configured with three optional environment variables:
4040+4141+#### `TITAN`
4242+4343+Enable Titan support.
4444+4545+Takes a value of either `true` or `1`, case-insensitive.
4646+4747+Defaults to off.
4848+4949+#### `TITAN_TOKEN`
5050+5151+Set a token to restrict Titan access.
5252+5353+Takes a string value, case-sensitive.
5454+5555+Defaults to no token, **anyone can upload!**
5656+5757+#### `TITAN_MAX_SIZE`
5858+5959+The maximum size in bytes which a Titan upload is permitted to perform.
6060+6161+Takes an integer.
6262+6363+Default to `1024`.
6464+2765### Docker Compose
28662967A Docker Compose file is already setup [here](./docker-compose.yaml). The only
···3573### Executable
367437751. Build: `ninja` (requires [Ninja](https://ninja-build.org/))
3838-2. Run: `out/maple`
7676+2. Run: `out/maple`, or
7777+ `TITAN=1 TITAN_TOKEN=secret TITAN_MAX_SIZE=2048 out/maple`
39784079## Capsules using Maple
4180