add example lighttpd rest_api config file
This commit is contained in:
parent
a8b87e34a2
commit
cb4a60ccf9
1 changed files with 19 additions and 0 deletions
19
docs/rest_api/lighttpd
Normal file
19
docs/rest_api/lighttpd
Normal file
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in a new issue