added README and change name to scm

This commit is contained in:
wt
2025-07-13 15:30:28 +07:00
parent 9644786dd4
commit 68fa4d30d6
7 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
certs
scm
+26
View File
@@ -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
View File
@@ -1,11 +1,11 @@
package api
import (
"certs/utils"
"encoding/json"
"fmt"
"net/http"
"os"
"scm/utils"
"github.com/google/uuid"
)
+1 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
module certs
module scm
go 1.24.5
+2 -2
View File
@@ -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")
}
View File