an-empty-string / amethyst Goto Github PK
View Code? Open in Web Editor NEWa gemini server written in python!
License: MIT License
a gemini server written in python!
License: MIT License
Client certificates should be handled, and information about the certificate should be made available to resources. At least this information should be available:
Currently, we use a hardcoded dictionary of file extensions mapped to MIME types to decide what type to return to the client. The builtin mimetypes module provides a better way of handling this.
Currently, CGI script handling leaves a lot to be desired:
index.gmi
(or similar) of a directory -- the script's source is served instead./cgi-bin/index.cgi/this/should/be/pathinfo/
simply don't work (they should execute index.cgi
and pass /this/should/be/pathinfo/
as the PATH_INFO
environment variable).Additionally, it's probably worth reviewing the CGI spec again to make sure we are implementing as much of it as possible.
Currently we enforce RSA key usage, but this is mostly just to satisfy the typechecker. Non-RSA keys are great but we need to make sure we handle them properly in every case.
Other Gemini servers support .meta
files, which contain information about how to serve the files in the directory (for example, MIME type overrides, lists of authorized client certificates, and other directory-specific configuration). Amethyst should support these too.
Currently, the NixOS module for this project lives at an-empty-string/nixos-modules, but it could easily be moved into this repository.
This would be a good opportunity to switch the project over to using flakes.
Set up GitHub Actions for CI. Currently we can run type checking (mypy) and potentially some other static analysis tooling, but it would be nice to have some unit tests too.
config.TLSConfig.get_ssl_context
never automatically updates a certificate at runtime, even though it should when the tls
config option is set to auto
. Manually clearing the _context_cache
(by sending SIGHUP) causes the certificate to be automatically regenerated, however.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.