Move SYSRC config to the rc.conf.local file

This commit is contained in:
S David 2023-01-29 05:30:20 +00:00
parent 59c3b93506
commit 1ac9563c8e
2 changed files with 9 additions and 7 deletions

View File

@ -2,19 +2,14 @@ ARG SSH_PORT
ARG DOMAIN
ARG CERTBOT_EMAIL
INCLUDE https://github.com/s-daveb/ip6jail.template
CP usr /
RENDER /usr/local/etc/lighttpd-proxy.conf
PKG lighttpd py39-certbot
SYSRC lighttpd_enable=\"YES\"
SYSRC lighttpd_instances=\"proxy\"
SYSRC lighttpd_proxy_conf=\"/usr/local/etc/lighttpd-proxy.conf\"
SYSRC lighttpd_proxy_pidfile=\"/var/run/http-proxy.pid\"
CMD cergbot register -m ${CERBOT_EMAIL} --agree-tos
CMD certbot register -m ${CERTBOT_EMAIL} --agree-tos
CMD certbot certonly --standalone --domains ${DOMAIN}
SERVICE lighttpd restart

View File

@ -4,3 +4,10 @@ ifconfig_vnet0_ipv6="inet6 auto_linklocal accept_rtadv -tso6 -rxcsum6 up"
sshd_enable="YES"
firewall_enable="NO"
lighttpd_enable="YES"
lighttpd_instances="proxy"
lighttpd_proxy_conf="/usr/local/etc/lighttpd-proxy.conf"
lighttpd_proxy_pidfile="/var/run/http-proxy.pid"