aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-11-08 17:44:41 +0100
committerTeddy Wing2018-11-08 17:44:41 +0100
commit3fed5de1b0b8b390e89b4c85cdceebcdb4560ebd (patch)
tree1568af10f5ca63ed5caf1ded7d177b5161b2f5e8
parent6e696f8c4323c618115bf9a008b1166723b913b4 (diff)
downloaddome-key-web-3fed5de1b0b8b390e89b4c85cdceebcdb4560ebd.tar.bz2
Add lighttpd.conf
Allows us to test the FastCGI script locally. Thanks to this article for describing how to set up a local FastCGI server with Lighttpd: http://yaikhom.com/2014/12/18/handling-requests-c-fast-cgi-and-lighttpd.html Found out how to get the current config directory using `var.CWD` from: https://stackoverflow.com/questions/11702989/lighttpd-conf-document-root-as-directory-containing-config-file/12435777#12435777
-rw-r--r--license-generator/lighttpd.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/license-generator/lighttpd.conf b/license-generator/lighttpd.conf
new file mode 100644
index 0000000..4fc6f2d
--- /dev/null
+++ b/license-generator/lighttpd.conf
@@ -0,0 +1,17 @@
+var.log_root = "/usr/local/var/log/lighttpd"
+var.server_root = "/usr/local/var/www"
+server.document-root = server_root
+server.port = 8080
+server.errorlog = log_root + "/error.log"
+
+server.modules += ( "mod_fastcgi" )
+
+fastcgi.debug = 1
+fastcgi.server = (
+ "/" => ((
+ "socket" => "./fcgi.socket",
+ "check-local" => "disable",
+ "bin-path" => var.CWD + "/target/debug/license-generator",
+ "max-procs" => 1
+ ))
+)