Nostr site (nsite) publisher and Gemini gateway server.
This is a Gemini gateway server that serves nsites (static nostr websites hosted on Blossom servers) made of gemtext documents, which can be browsed with a Gemini browser. The gateway is also able to render HTML documents.
A ngemsite is simply a nsite that contains gemtext (or Markdown) documents, and it can be browsed with a Gemini browser.
cargo install ngemsite
ngem is a browser based on Lagrange that can load nsites over Gemini (AppImage Download).
First initialize your site with the create command.
ngemsite create mysite
Publish your site with the deploy command.
ngemsite deploy mysite
Use the --sec argument to pass your private key, otherwise it will be prompted on the terminal.
Initialize configuration and certificates for gateway with id "local" and hostname "localhost" (the hostname is used to create the TLS certificate). The config file path will be printed on the console.
ngemsite gw-init local localhost
After editing the config file, run the gateway with the "gw-run" command and pass the gateway id.
ngemsite gw-run local