secretshop/pkg/suse/secretshop-1.0.0
stryan 9126a01205 update readme 2020-05-14 20:34:07 -04:00
..
src update readme 2020-05-14 20:34:07 -04:00
vendor update readme 2020-05-14 20:34:07 -04:00
COPYING update readme 2020-05-14 20:34:07 -04:00
Makefile update readme 2020-05-14 20:34:07 -04:00
README.md update readme 2020-05-14 20:34:07 -04:00
config.yaml.sample update readme 2020-05-14 20:34:07 -04:00
go.mod update readme 2020-05-14 20:34:07 -04:00
go.sum update readme 2020-05-14 20:34:07 -04:00
secretshop.service update readme 2020-05-14 20:34:07 -04:00

README.md

SecretShop: a small Gemini server.

Features

  • Multi-site hosting
  • Also supports simple Gopher hosting
  • Fully compliant with Jetforce diagnostics
  • Probably won't kill your computer

Configuration

SecretShop looks in it's current running directory and /etc/secretshop for it's config file. Configuration is in config/yaml in one of the above directories. See the sample config for more details but a standard file looks like such:

---
port: 1965
active_capsules:
        - localhost
localhost:
        Hostname: "localhost"
        Port: "1965"
        RootDir: "/var/gemini"
        CGIDir: "/var/gemini/cgi"
        KeyFile: "localhost.key"
        CertFile: "localhost.crt"

Where each "active_capsule" is a virtual Gemini capsule. SecretShop supports virtual Gemini capsules all listening on port 1965 as well as multiple Gopher servers runnning (though not virtual Gopher hosts due to protocol limitations)

Building

Build Dependencies: go1.14

Running "make" should work for any given x86 machine.

If you're planning on running this on a Raspberry Pi or other ARM machine try env GOOS=linux GOARCH=arm GOARM=5 make

Installation

Running "make install" will install to /usr/local/bin by default.

Running "make service" will install to /usr/local/bin and also install the systemd service file

Uninstall

Simply run "make uninstall".

Running

Either run the executable directly or use the SystemD unit file

Caveats

Currently does not support transient certificates Only handles whitelisting for certificate authorization

Licensing

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.