diff options
| author | 2019-09-18 15:36:01 +0100 | |
|---|---|---|
| committer | 2019-09-18 15:36:01 +0100 | |
| commit | cb4a60ccf976eac8d165326ea91dd588e9e777d1 (patch) | |
| tree | 6f28be1a185ef284a6faecfaea844734b7ace432 /docs/rest_api | |
| parent | make nginx config specifically use ipv6 localhost loopback (diff) | |
| signature | ||
add example lighttpd rest_api config file
Diffstat (limited to 'docs/rest_api')
| -rw-r--r-- | docs/rest_api/lighttpd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/rest_api/lighttpd b/docs/rest_api/lighttpd new file mode 100644 index 00000000..9e6b7513 --- /dev/null +++ b/docs/rest_api/lighttpd @@ -0,0 +1,19 @@ +server.errorlog = "/var/log/lighttpd/error.log" +server.pid-file = "/var/run/lighttpd.pid" +server.username = "www-data" +server.groupname = "www-data" +server.port = 5000 + +server.modules += ("mod_openssl", "mod_proxy", "mod_setenv") + +ssl.engine = "enable" +ssl.ca-file = "/etc/letsencrypt/live/example.com/fullchain.pem" +ssl.pemfile = "/etc/letsencrypt/live/example.com/fullchain.pem" +ssl.privkey = "/etc/letsencrypt/live/example.com/privkey.pem" + +proxy.server = ("" => (( "host" => "::1", "port" => 5001 )) ) + +setenv.add-request-header = ( + "Host" => "example.com:5000" +) + |
