# MastoGem : a Mastodon proxy for Gemini ## Build from sources ``` $ make ``` All builds are in the `build` folder. ## Generate key and certificate TLS is mandatory with Gemini, a self-signed certificate is recommended. You must generate a key first: ``` $ openssl genrsa -out key.rsa 4096 ``` Then, you must generate the certificate (replace localhost with your domain name): ``` $ openssl req -x509 -key key.rsa -out cert.pem -days 365 -subj "/CN=localhost" ``` ## Config You have an example of config file in `config.json`, the program only accepts json files. ## Run this program You should provide the `MASTOGEM_CONFIG_PATH` environment variable when launching the program, if it was not provided or it was empty, default config will be loaded. To run the program simply run the executable file corresponding to your architecture in the `build` folder. Make sure the certificate and the key where generated before. ## Contribute You contributions are welcomed, you can send me an email (romain.delaage@rdelaage.ovh). *This program is under AGLPv3 License*