diff --git a/tftp-proxy.service b/tftp-proxy.service index fc904bc..ed1c11a 100644 --- a/tftp-proxy.service +++ b/tftp-proxy.service @@ -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 \ No newline at end of file +WantedBy=multi-user.target diff --git a/tftp-proxy.sysconfig b/tftp-proxy.sysconfig new file mode 100644 index 0000000..3306fe9 --- /dev/null +++ b/tftp-proxy.sysconfig @@ -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=""