Go to file
2021-06-14 13:35:12 +08:00
cmd/svc [feat] first version 2021-06-13 22:59:50 +08:00
contrib/systemd [feat] add service file 2021-06-14 13:35:12 +08:00
pkg [feat] first version 2021-06-13 22:59:50 +08:00
.gitignore [feat] add makefile 2021-06-13 23:08:34 +08:00
config.yml.sample [feat] add sample config 2021-06-13 23:09:26 +08:00
go.mod [feat] first version 2021-06-13 22:59:50 +08:00
go.sum [feat] first version 2021-06-13 22:59:50 +08:00
LICENSE Initial commit 2021-06-13 11:36:49 +00:00
Makefile [feat] add makefile 2021-06-13 23:08:34 +08:00
README.md [feat] add readme 2021-06-13 23:03:52 +08:00

auto-deploy-service

Config struct

server:
  port: 10230 # server listen port
listens:
  - http:
      method: get # http method only support get and post
      path: /test # http register path
      headers: # header check map[string]string 
        x-validate-key: '123'
      script: /tmp/run.sh # script location required execute permission
  - http:
      method: post
      path: /test-post
      headers: {}
      script: /tmp/run.sh