Files @ 95dfce5c12ce
Branch filter:

Location: light9/bin/homepage

drewp@bigasterisk.com
rearrange /static. new bin/homepage
Ignore-this: 2b17aa8e74a9c052a9a93704e85287b1
#!/bin/zsh

CONF=/tmp/light9_nginx.conf
ROOT=`dirname $0`/..
ROOT=${ROOT:a}

cat > $CONF <<EOF
worker_processes 1;

daemon off;
error_log /tmp/light9_homepage.err;
pid /dev/null;

events {
  worker_connections 1024;
}

http {
 include $ROOT/light9/web/mime.types;
 
 server {
  listen 8052;
  access_log /tmp/light9_homepage_access.log;

  location /rdfdb { proxy_pass http://localhost:8051/; }
  location /ascoltami { proxy_pass http://localhost:8040/; rewrite /ascoltami(.*) $1 break; }

  location / {
    root $ROOT/light9/web;
  }

 }
}
EOF

exec nginx -c $CONF