From b3c8b31fa0237274f232318d5240653f8d8e7a50 Mon Sep 17 00:00:00 2001 From: RuhNet Date: Wed, 20 Apr 2022 22:54:54 -0400 Subject: [PATCH] Readme fixes. --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6e37256..87b4ed8 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,15 @@ LEAPI operates in a multi-master configuration. When you add or delete a server - Download the LEAPI binary, or build from source. - Copy it to ```/opt/leapi``` - You may use the included SystemD service file if you use a SystemD based distribution. -- Edit the ```leapi_config.json``` file for your needs, leaving ```production``` set to ```false``` until setup is complete, and copy it to ```/opt/leapi``` or ```/etc```. -- Install getssl with ```curl --silent https://raw.githubusercontent.com/srvrco/getssl/latest/getssl > /opt/leapi/getssl ; chmod 700 /opt/leapi/getssl``` -- Create the base config for getssl: ```/opt/leapi/getssl -w /opt/leapi -c mycoolsite.com``` +- Edit the ```leapi_config.json``` file for your needs, leaving ```production``` set to ```false``` until setup is complete. Copy the config file to ```/opt/leapi``` or ```/etc```. +- Install getssl +``` +curl --silent https://raw.githubusercontent.com/srvrco/getssl/latest/getssl > /opt/leapi/getssl ; chmod 700 /opt/leapi/getssl +``` +- Create the base config for getssl: +``` +/opt/leapi/getssl -w /opt/leapi -c mycoolsite.com +``` - Start LEAPI, either from the commandline or with ```systemctl start leapi``` - Add your servers via the LEAPI API: (You don't necessarily have to do this on the server itself.) @@ -45,7 +51,9 @@ curl -X PUT http://localhost/api/domains/myothersite.com -H 'Authorization: Bear ``` - Assuming there were no errors, edit your ```leapi_config.json``` file and change ```production``` to ```true```. - Force a renewal via the API: - curl -X POST http://localhost/api/renew -H 'Authorization: Bearer mySeCrEtKeY' +``` +curl -X POST http://localhost/api/renew -H 'Authorization: Bearer mySeCrEtKeY' +```