A website for producing interactive charts without writing a single line of code. Built with Common Lisp and Python.
https://charts.craigoates.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
upstream hunchentoot {
|
|
|
|
server 127.0.0.1:3002;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name charts.craigoates.net;
|
|
|
|
|
|
|
|
root ~/quicklisp/local-projects/hot-line/templates/;
|
|
|
|
|
|
|
|
# General request handling this will match all locations
|
|
|
|
location / {
|
|
|
|
|
|
|
|
# check if with it's a directory and there'a an index.html
|
|
|
|
# if so, rewrite the url to include it and stop processing rules.
|
|
|
|
if (-f $request_filename/index.html) {
|
|
|
|
rewrite ^(.*) $1/index.html break;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define custom HTTP Headers to be used when proxying
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
|
|
# if the requested file does not exist then
|
|
|
|
# proxy to the hunchentoot server cluster
|
|
|
|
if (!-f $request_filename) {
|
|
|
|
proxy_pass http://hunchentoot;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|