RENDER the lighttpd-proxy.conf file and other changes

This commit is contained in:
S David 2023-01-29 05:26:30 +00:00
parent 392b9d5e9e
commit 59c3b93506
3 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,12 @@
ARG SSH_PORT
ARG FQDN
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\"
@ -13,4 +14,7 @@ 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 certonly --standalone --domains ${DOMAIN}
SERVICE lighttpd restart

View File

View File

@ -2,7 +2,7 @@
server.modules = ("mod_proxy", "mod_openssl", "mod_setenv", "mod_redirect")
server.bind = "[::]"
server.name = "${FQDN}"
server.name = "${DOMAIN}"
server.v4mapped = "disable"
server.use-ipv6 = "enable"
@ -24,7 +24,7 @@ $HTTP["scheme"] == "http" {
url.redirect = ("/(.*)" => "https://gitea.beniquez.me/$1")
}
$HTTP["host"] == "${FQDN}" {
$HTTP["host"] == "${DOMAIN}" {
server.errorlog = "/var/log/lighttpd/proxy.error.log"
proxy.server = (
"" => (( "host" => "127.0.0.1",