added README and change name to scm
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
certs
|
||||
scm
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# scm - SSL Certificate Manager
|
||||
|
||||
## endpoints
|
||||
|
||||
- `/api/certs` - get all certificates and details
|
||||
|
||||
## build
|
||||
|
||||
```shell
|
||||
go build -o scm
|
||||
```
|
||||
|
||||
## configuration
|
||||
|
||||
### example config file - scm.conf
|
||||
|
||||
```
|
||||
ENABLE_TLS=true
|
||||
CERT_FILE=/home/tola/certs/localhost/localhost.crt
|
||||
KEY_FILE=/home/tola/certs/localhost/localhost.key
|
||||
|
||||
CERTS_PATH=/home/tola/certs
|
||||
|
||||
SERVER_ADDRESS=0.0.0.0
|
||||
SERVER_PORT=8777
|
||||
```
|
||||
+1
-1
@@ -1,11 +1,11 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"certs/utils"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"scm/utils"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<script src="js/bootstrap.min.js" defer></script>
|
||||
<script src="js/theme.js" defer></script>
|
||||
<script src="js/certs.js" defer></script>
|
||||
<title>Certs</title>
|
||||
<title>Scm</title>
|
||||
</head>
|
||||
<style>
|
||||
@media screen and (max-width: 1000px) {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"certs/api"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"scm/api"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := godotenv.Load("./certs_service.conf")
|
||||
err := godotenv.Load("./scm.conf")
|
||||
if err != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user