1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gemserv_ynh.git synced 2024-09-03 18:36:27 +02:00
gemserv_ynh/README.md

90 lines
3.2 KiB
Markdown
Raw Normal View History

2021-07-07 21:27:30 +02:00
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
2021-07-10 17:25:56 +02:00
# Gemserv for YunoHost
2021-07-07 21:27:30 +02:00
2022-07-25 23:24:03 +02:00
[![Integration level](https://dash.yunohost.org/integration/gemserv.svg)](https://dash.yunohost.org/appci/app/gemserv) ![Working status](https://ci-apps.yunohost.org/ci/badges/gemserv.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/gemserv.maintain.svg)
2021-07-10 17:25:56 +02:00
[![Install Gemserv with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gemserv)
2021-07-07 21:27:30 +02:00
2022-01-07 00:43:10 +01:00
*[Lire ce readme en français.](./README_fr.md)*
2021-07-10 17:25:56 +02:00
> *This package allows you to install Gemserv quickly and simply on a YunoHost server.
2021-07-07 21:27:30 +02:00
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
## Overview
2021-07-10 17:25:56 +02:00
A gemini server written in rust.
2021-07-07 21:27:30 +02:00
2022-05-07 23:13:33 +02:00
### Features
- Vhosts
- CGI
- User directories
- Reverse proxy
- Redirect
- SCGI
- Reload config on SIGHUP
2022-01-07 00:43:10 +01:00
2022-10-05 21:42:32 +02:00
**Shipped version:** 0.6.6~ynh5 *(:warning: This is the `testing` branch. The [`master` branch](https://github.com/YunoHost-Apps/gemserv_ynh/tree/master) used in the catalog is currently on version 0.6.6\~ynh4.)*
2022-08-15 01:09:52 +02:00
2021-07-07 21:27:30 +02:00
## Disclaimers / important information
2022-05-07 23:13:33 +02:00
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.
2021-07-07 21:27:30 +02:00
2022-05-07 23:13:33 +02:00
To add a gemini capsule, create a `/etc/gemserv/config.d/example.toml` file as following:
``` toml
2021-07-10 17:25:56 +02:00
[[server]]
2022-05-07 23:13:33 +02:00
hostname = "yourdomain.org"
2022-08-15 01:16:28 +02:00
dir = "/opt/yunohost/gemserv"
2022-05-07 23:13:33 +02:00
key = "/etc/yunohost/certs/yourdomain.org/key.pem"
cert = "/etc/yunohost/certs/yourdomain.org/crt.pem"
2021-07-10 17:25:56 +02:00
# 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
2021-07-10 17:25:56 +02:00
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"
2021-07-10 17:25:56 +02:00
# redirect is optional
redirect = { "/redirect" = "/", "/newdomain" = "gemini://example.net" }
```
2022-05-07 23:13:33 +02:00
2021-07-07 21:27:30 +02:00
## Documentation and resources
2022-07-25 23:24:03 +02:00
* Upstream app code repository: <https://git.sr.ht/~int80h/gemserv>
* YunoHost documentation for this app: <https://yunohost.org/app_gemserv>
* Report a bug: <https://github.com/YunoHost-Apps/gemserv_ynh/issues>
2021-07-07 21:27:30 +02:00
## Developer info
2021-07-10 17:25:56 +02:00
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/gemserv_ynh/tree/testing).
2021-07-07 21:27:30 +02:00
To try the testing branch, please proceed like that.
2022-07-25 23:24:03 +02:00
``` bash
2021-07-10 17:25:56 +02:00
sudo yunohost app install https://github.com/YunoHost-Apps/gemserv_ynh/tree/testing --debug
2021-07-07 21:27:30 +02:00
or
2021-07-10 17:25:56 +02:00
sudo yunohost app upgrade gemserv -u https://github.com/YunoHost-Apps/gemserv_ynh/tree/testing --debug
2021-07-07 21:27:30 +02:00
```
2022-07-25 23:24:03 +02:00
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>