1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gemserv_ynh.git synced 2024-09-03 18:36:27 +02:00
A gemini server written in rust.
Find a file
2022-08-02 21:44:05 +02:00
.github Initial commit 2021-07-07 21:27:30 +02:00
conf Update systemd.service 2022-08-02 21:43:58 +02:00
doc updating the example config as upstream's one 2022-05-07 23:17:35 +02:00
scripts Fix germserv service 2022-08-02 21:09:49 +02:00
.gitignore Initial commit 2021-07-07 21:27:30 +02:00
check_process Apply last example_ynh 2022-07-29 21:01:48 +02:00
LICENSE 0.4.4 2021-07-10 17:25:49 +02:00
manifest.json Fix germserv service 2022-08-02 21:09:49 +02:00
README.md Auto-update README 2022-08-02 19:09:54 +00:00
README_fr.md Auto-update README 2022-08-02 19:09:54 +00:00

Gemserv for YunoHost

Integration level Working status Maintenance status
Install Gemserv with YunoHost

Lire ce readme en français.

This package allows you to install Gemserv quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

A gemini server written in rust.

Features

  • Vhosts
  • CGI
  • User directories
  • Reverse proxy
  • Redirect
  • SCGI
  • Reload config on SIGHUP

Shipped version: 0.6.6~ynh4

Disclaimers / important information

Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.

To add a gemini capsule, create a /etc/gemserv/config.d/example.toml file as following:

[[server]]
hostname = "yourdomain.org"
dir = "/path/to/serv"
key = "/etc/yunohost/certs/yourdomain.org/key.pem"
cert = "/etc/yunohost/certs/yourdomain.org/crt.pem"
# index is optional but defaults to index.gemini. The server will serve files
# ending in gemini or gmi.
index = "index.gmi"
# lang is optional
lang = "en"
# cgi is optional bool
cgi = true
# cgipath is optional and only checked if cgi is true. It restricts cgi to only
# this directory.
cgipath = "/path/to/cgi-bin/"
# scgi is optional
scgi = { "/scgi" = "localhost:4000" }
# cgienv is optional
cgienv = { "GIT_PROJECT_ROOT" = "/srv/git" }
# usrdir is optional. it'll look in each user's ~/public_gemini
usrdir = true
# proxy is optional
# path is what comes after the hostname e.g. example.com/path
proxy = { path = "localhost:1966" }
# proxy_all is optional
# It will send all requests to the specified server. It also supports streamming.
proxy_all = "localhost:1967"
# redirect is optional
redirect = { "/redirect" = "/", "/newdomain" = "gemini://example.net" }

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/gemserv_ynh/tree/testing --debug
or
sudo yunohost app upgrade gemserv -u https://github.com/YunoHost-Apps/gemserv_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps