gemspace/cgi-example
James Tomasino edaac5ee45 a tiny bit of code cleanup 2022-02-21 01:08:40 +00:00
..
add-cert all working but messy 2022-02-21 00:52:45 +00:00
change-name name update working 2022-02-21 00:17:45 +00:00
login all working but messy 2022-02-21 00:52:45 +00:00
update-auth-code all working but messy 2022-02-21 00:52:45 +00:00
README.md a tiny bit of code cleanup 2022-02-21 01:08:40 +00:00
create_schema.sql stubbing out cgi-example 2022-02-20 20:50:55 +00:00
db.py a tiny bit of code cleanup 2022-02-21 01:08:40 +00:00
helpers.py a tiny bit of code cleanup 2022-02-21 01:08:40 +00:00
index.gmi restructured app with subdirs for each feature 2022-02-20 23:43:08 +00:00

README.md

CGI Example Project

The goal of this project is to give a working example of a basic Gemini CGI application. User identities are driven by TLS Client Certificates. This project will serve as a reference for CGI authors and be explained in detail in an instructional video.

Features

  • (DONE) New TLS certificates automatically create a new user account
  • (DONE) Users can set data on their own account (a name field for example)
  • (DONE) Users can add additional certificates to the same account by using a special code

Setup

Create database with:

sqlite3 db/cgi-example.sqlite3 < create_schema.sql

Then give write permission to the both the database and the containing directory (db) to the user that your Gemini server runs as. It is important that the containing folder write permissions are in place or you will see 50 errors returned when trying to write to the database.