Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tftp-proxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
Description=tftp-proxy

[Service]
ExecStart=/usr/bin/tftp-proxy -url=http://zerotouch.example.com
Environment="TFTP_PROXY_UPSTREAM_URL=http://127.0.0.1/tftpboot"
EnvironmentFile=-/etc/sysconfig/tftp-proxy
EnvironmentFile=-/etc/default/tftp-proxy
ExecStart=/usr/bin/tftp-proxy -url=${TFTP_PROXY_UPSTREAM_URL} $TFTP_PROXY_OPTIONS

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
17 changes: 17 additions & 0 deletions tftp-proxy.sysconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Path: Productivity/Networking/Ftp/Servers
## Description: TFTP Proxy configuration

## Type: string
## Default: "http://127.0.0.1/tftpboot"
#
# URL stem of the upstream HTTP server - the TFTP file request will be
# suffix to this.
#
TFTP_PROXY_UPSTREAM_URL="http://127.0.0.1/tftpboot"

## Type: string
## Default: ""
#
# extra comand line options to be handed to the TFTP PRoxy program
#
TFTP_PROXY_OPTIONS=""