added README and change name to scm

This commit is contained in:
wt committed 2025-07-13 15:30:28 +07:00
1 parent 9644786dd4
commit 68fa4d30d6
7 files changed
+32 -6

No files matched your search

+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 package api
import ( import (
"certs/utils"
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"os" "os"
"scm/utils"
"github.com/google/uuid" "github.com/google/uuid"
) )
+1 -1
View File
@@ -7,7 +7,7 @@
<script src="js/bootstrap.min.js" defer></script> <script src="js/bootstrap.min.js" defer></script>
<script src="js/theme.js" defer></script> <script src="js/theme.js" defer></script>
<script src="js/certs.js" defer></script> <script src="js/certs.js" defer></script>
<title>Certs</title> <title>Scm</title>
</head> </head>
<style> <style>
@media screen and (max-width: 1000px) { @media screen and (max-width: 1000px) {
+1 -1
View File
@@ -1,4 +1,4 @@
module certs module scm
go 1.24.5 go 1.24.5
+2 -2
View File
@@ -1,16 +1,16 @@
package main package main
import ( import (
"certs/api"
"log" "log"
"net/http" "net/http"
"os" "os"
"scm/api"
"github.com/joho/godotenv" "github.com/joho/godotenv"
) )
func main() { func main() {
err := godotenv.Load("./certs_service.conf") err := godotenv.Load("./scm.conf")
if err != nil { if err != nil {
log.Fatal("Error loading .env file") log.Fatal("Error loading .env file")
} }
View File
File renamed without changes.