File tree Expand file tree Collapse file tree 5 files changed +54
-2
lines changed Expand file tree Collapse file tree 5 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# Test binary, build with `go test -c`
9
9
* .test
10
+ dist /
11
+ dist /*
10
12
11
13
# Output of the go coverage tool, specifically when used with LiteIDE
12
- * .out
14
+ * .out
Original file line number Diff line number Diff line change
1
+ env :
2
+ - GO111MODULE=on
3
+ - GOPROXY=https://gocenter.io
4
+ before :
5
+ hooks :
6
+ - go mod tidy
7
+ builds :
8
+ - env :
9
+ - CGO_ENABLED=0
10
+ archives :
11
+ - replacements :
12
+ darwin : Darwin
13
+ linux : Linux
14
+ windows : Windows
15
+ 386 : i386
16
+ amd64 : x86_64
17
+ checksum :
18
+ name_template : ' checksums.txt'
19
+ snapshot :
20
+ name_template : " {{ .Tag }}-next"
21
+ changelog :
22
+ sort : asc
23
+ filters :
24
+ exclude :
25
+ - ' ^docs:'
26
+ - ' ^test:'
Original file line number Diff line number Diff line change 1
1
# tftp-proxy
2
2
A TFTP server that proxies request to an HTTP backend if a file is not found.
3
3
4
- # How to build
4
+ # Building
5
+
5
6
go build
6
7
8
+ or for linux:
9
+
10
+ env GOOS=linux GOARCH=amd64 go build
11
+
7
12
# How to run
8
13
./tftp-proxy -url=http://example.com -dir=/var/lib/tftpboot &
14
+
15
+ or for linux:
16
+
17
+ scp tftp-proxy.service tftp-proxy destination-host:
18
+ ssh destination-host
19
+ sudo mv tftp-proxy.service /etc/systemd/system/
20
+ sudo mv tftp-proxy /usr/bin/tftp-proxy
21
+ sudo vi /etc/systemd/system/tftp-proxy.service
22
+ systemctl enable tftp-proxy
Original file line number Diff line number Diff line change 1
1
module tftp-proxy
2
2
3
3
require github.com/pin/tftp v2.1.0+incompatible
4
+
5
+ go 1.13
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =tftp-proxy
3
+
4
+ [Service]
5
+ ExecStart =/usr/bin/tftp-proxy -url =http://zerotouch.example.com
6
+
7
+ [Install]
8
+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments