https://github.com/pvik/ncml
A simple remote code execution service
https://github.com/pvik/ncml
Last synced: 5 months ago
JSON representation
A simple remote code execution service
- Host: GitHub
- URL: https://github.com/pvik/ncml
- Owner: pvik
- Created: 2022-03-01T23:25:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T17:43:36.000Z (about 3 years ago)
- Last Synced: 2024-06-21T04:55:12.717Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NCML
A Simple service to allow NCM Script Execution operations via Rest API
## Sample Config
```toml
port = 3001
workers = 1
result-store-dir = "/tmp/ncml"
[jwt-auth]
enabled = true
secret = "abc"
# Setup Credential sets
[credentials]
[credentials."cred-set-1"]
username = "test-user"
password = "abc"
[credentials."cred-set-2"]
username = "test-user-2"
password = "def"
[db]
type = "postgres" # or sqlserver
host = "localhost"
port = 5432
ssl-mode = false
username = "postgres"
password = "docker"
dbname = "ncml"
[log]
format = "text" # valid values are text or json
output = "term" # valid values are term or file
#log-directory = "./logs/" # needed if writing logs to a file
level = "debug"
```
## Deploy using Docker
```
# docker run --rm -p 3000:3000 -v ./config.toml:/app/configs/config.toml pvik/ncml:latest
```
## Usage