RENDER the lighttpd-proxy.conf file and other changes
This commit is contained in:
parent
392b9d5e9e
commit
59c3b93506
@ -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
|
||||
|
0
usr/local/etc/letsencrypt/live/.keep
Normal file
0
usr/local/etc/letsencrypt/live/.keep
Normal 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",
|
||||
|
Loading…
Reference in New Issue
Block a user