File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ # TFTP config
2
+ enable-tftp
3
+ user=nbxyz
4
+ tftp-secure
5
+ tftp-root=/config/menus
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ directory=/app
22
22
priority = 3
23
23
24
24
[program:dnsmasq]
25
- command=/usr/sbin/dnsmasq --port=0 --keep-in-foreground --enable-tftp --user=nbxyz --tftp-secure --tftp-root=/config/menus %(ENV_TFTPD_OPTS)s
25
+ command=/usr/sbin/dnsmasq --conf-file=/config/dnsmasq/dnsmasq.conf -- port=0 --keep-in-foreground %(ENV_TFTPD_OPTS)s
26
26
stdout_logfile=/config/tftpd.log
27
27
redirect_stderr=true
28
28
priority = 4
Original file line number Diff line number Diff line change @@ -5,15 +5,21 @@ mkdir -p \
5
5
/assets \
6
6
/config/nginx/site-confs \
7
7
/config/log/nginx \
8
+ /config/dnsmasq \
8
9
/run \
9
10
/var/lib/nginx/tmp/client_body \
10
11
/var/tmp/nginx
11
12
12
13
# copy config files
13
- [[ ! -f /config/nginx/nginx.conf ]] && \
14
+ [[ ! -f /config/nginx/nginx.conf ]] &&
14
15
cp /defaults/nginx.conf /config/nginx/nginx.conf
15
- [[ ! -f /config/nginx/site-confs/default ]] && \
16
- envsubst < /defaults/default > /config/nginx/site-confs/default
16
+ [[ ! -f /config/nginx/site-confs/default ]] &&
17
+ envsubst < /defaults/default > /config/nginx/site-confs/default
18
+
19
+ # create dnsmasq config
20
+ if [[ ! -f /config/dnsmasq/dnsmasq.conf ]]; then
21
+ cp /defaults/dnsmasq.conf /config/dnsmasq/dnsmasq.conf
22
+ fi
17
23
18
24
# Ownership
19
25
chown -R nbxyz:nbxyz /assets
@@ -67,7 +73,7 @@ if [[ ! -f /config/menus/remote/menu.ipxe ]]; then
67
73
/config/menus/remote/netboot.xyz-arm64-snponly.efi -sL \
68
74
" https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION} /netboot.xyz-arm64-snponly.efi"
69
75
# layer and cleanup
70
- echo -n " ${MENU_VERSION} " > /config/menuversion.txt
76
+ echo -n " ${MENU_VERSION} " > /config/menuversion.txt
71
77
cp -r /config/menus/remote/* /config/menus
72
78
rm -f /tmp/menus.tar.gz
73
79
fi
You can’t perform that action at this time.
0 commit comments