adele/ergol-http
3
4
Fork
You've already forked ergol-http
1
Ergol companion to serve #gemini capsules through http/https. It is a http wrapper written in php working with ergol gemini server or in standalone.
  • PHP 91%
  • CSS 9%
2025年08月18日 20:28:32 +00:00
.gitignore minor adapation and doc 2021年04月03日 06:41:20 +02:00
.htaccess minor adapation and doc 2021年04月03日 06:41:20 +02:00
changelog.gmi add files 2021年04月02日 21:10:46 +02:00
check-human.php remove human check for http (not https) requests 2025年08月18日 20:28:32 +00:00
config-sample.php Basic whitelist domain implementation 2022年04月28日 09:02:59 +02:00
ergol-http-screenshot.png Change screenshot 2021年06月24日 09:09:18 +00:00
html.png convert to html 5 format 2024年03月08日 08:23:56 +00:00
index.php remove human check for http (not https) requests 2025年08月18日 20:28:32 +00:00
LICENSE Initial commit 2021年04月02日 18:29:58 +02:00
README.md correctly adding Romain as author 2021年05月25日 21:28:29 +02:00
robots.txt Correct human-check redirection 2025年06月02日 03:56:48 +00:00
style.css Add asterism after articles 2024年03月10日 08:09:56 +00:00
template.php remove html validator button 2025年05月23日 04:15:34 +00:00
TwitterColorEmoji-SVGinOT.ttf add files 2021年04月02日 21:10:46 +02:00

ergol-http

Ergol companion to serve #gemini capsules through http/https. It is a http wrapper written in php, working with ergol gemini server or standalone.

Screenshot of a web browser using ergol-http

authors:

ergol-http is under MIT/X Consortium License

ergol-http uses and provides a copy of Twitter Emoji aka twemoji packaged in a TrueType font format. twemoji is also published under MIT license.

Main repository on Codeberg.

Installation

Clone repository or unzip archive and copy main files in the document root of your website. Copy config-sample.php to config.php and change edit config.php to adapt it.

cd ~/
git clone https://codeberg.org/adele.work/ergol-http.git
cd ergol-http
cp index.php style.css TwitterColorEmoji-SVGinOT.ttf .htaccess /var/www/
cp config-sample.php /var/www/config.php
nano /var/www/config.php

Web server needs to support url rewriting. Rule is present in .htaccess.

In Apache config:

RewriteEngine on
RewriteRule "^/(.*)" "/?q=1ドル" [R,L]

In lighttpd config:

server.modules += ("mod_rewrite")
url.rewrite-once = ( "^/(.*)" => "/?q=/1ドル" )

It is also possible to run ergol-http with php embedded web server (not the recommended way).

php -S 0.0.0.0:8080 -t ./ ./index.php

Upgrade

Get the last version the same way as installation but do not overwrite your config.php, check if there are new constants in config-sample.php and add them into your config.php.