lighttpd.conf - selfhost - Incus configurations for my self-hosted setup.
(HTM) git clone git://jay.scot/selfhost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
lighttpd.conf (997B)
---
1 var.basedir = "/var/www/localhost"
2 var.logdir = "/var/log/lighttpd"
3 var.statedir = "/var/lib/lighttpd"
4
5 include "mime-types.conf"
6 server.username = "lighttpd"
7 server.groupname = "lighttpd"
8 server.document-root = var.basedir + "/htdocs"
9 server.pid-file = "/run/lighttpd.pid"
10 server.errorlog = var.logdir + "/error.log"
11 index-file.names = ("index.html")
12
13 server.modules += ( "mod_redirect", "mod_openssl", "mod_proxy")
14
15 $SERVER["socket"] == ":443" {
16 ssl.engine = "enable"
17 ssl.pemfile = "/etc/lighttpd/certs/jay.scot.cer"
18 ssl.privkey = "/etc/lighttpd/certs/jay.scot.key"
19 ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.3", "Options" => "-ServerPreference")
20
21 server.name = "dashboard.jay.scot"
22 server.document-root = "/srv/www/"
23 proxy.server = ( "" => (
24 ( "host" => "127.0.0.1", "port" => 8096 )
25 )
26 )
27
28 }
29
30 $HTTP["scheme"] == "http" {
31 $HTTP["host"] =~ ".*" {
32 url.redirect = (".*" => "https://%0$0")
33 }
34 }