From 05d62ad4d341be057ed72bfd0b308de8f492efa8 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 6 Apr 2021 23:39:44 -0400 Subject: Migrate to Java Gemini Server --- molly-capsule/Dockerfile | 16 ++++++++++++++ molly-capsule/molly.conf | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 molly-capsule/Dockerfile create mode 100644 molly-capsule/molly.conf (limited to 'molly-capsule') diff --git a/molly-capsule/Dockerfile b/molly-capsule/Dockerfile new file mode 100644 index 0000000..945c93e --- /dev/null +++ b/molly-capsule/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:stable-slim + +RUN apt-get update && apt-get install -y golang git +RUN mkdir /opt/go +ENV GOPATH=/opt/go +RUN go get github.com/BurntSushi/toml +RUN go get tildegit.org/solderpunk/molly-brown + +EXPOSE 1965 +VOLUME /etc/certs +VOLUME /var/log/molly +VOLUME /var/gemini + +COPY molly.conf /etc/molly.conf + +ENTRYPOINT /opt/go/bin/molly-brown diff --git a/molly-capsule/molly.conf b/molly-capsule/molly.conf new file mode 100644 index 0000000..bd1a223 --- /dev/null +++ b/molly-capsule/molly.conf @@ -0,0 +1,55 @@ +## Basic settings +# +Port = 1965 +Hostname = "senders.io" +CertPath = "/etc/certs/live/senders.io/fullchain.pem" +KeyPath = "/etc/certs/live/senders.io/privkey.pem" +DocBase = "/var/gemini/" +#HomeDocBase = "users" +GeminiExt = "gmi" +DefaultLang = "en" +AccessLog = "/var/log/molly/access.log" +ErrorLog = "/var/log/molly/error.log" +#ReadMollyFiles = true +# +## Directory listing +# +DirectorySort = "Time" +DirectoryReverse = true +#DirectoryTitles = true +# +## Dynamic content +# +#CGIPaths = [ +# "/var/gemini/cgi-bin", +# "/var/gemini/users/*/cgi-bin/", # Unsafe! +#] +# +#[SCGIPaths] +#"/scgi-app-1/" = "/var/run/scgi1.sock" +#"/scgi-app-2/" = "/var/run/scgi2.sock" +# +## MIME type overrides +# +#[MimeOverrides] +"atom.xml$" = "application/atom+xml" +"rss.xml$" = "application/rss+xml" +"favicon.txt$" = "text/plain" +# +## Redirects +# +#[TempRedirects] +#"/old/path/file.ext" = "/new/path/file.ext" +#[PermRedirects] +#"/old/path/file.ext" = "/new/path/file.ext" +# +## Certificate zones +# +#[CertificateZones] +#"^/secure-zone-1/" = [ +# "d146953386694266175d10be3617427dfbeb751d1805d36b3c7aedd9de02d9af", +#] +#"^/secure-zone-2/" = [ +# "d146953386694266175d10be3617427dfbeb751d1805d36b3c7aedd9de02d9af", +# "786257797c871bf617e0b60acf7a7dfaf195289d8b08d1df5ed0e316092f0c8d", +#] -- cgit v1.2.3-54-g00ecf