view service/rfid_pn532_py/local.conf @ 1241:6900a284724e

start dev mode nginx config. not working yet Ignore-this: d18b11cd5566d844bf126b8a9e50b912 darcs-hash:f7862f9c368b9f0e37cb961a63ed7cd56faf9cc7
author drewp <drewp@bigasterisk.com>
date Sat, 13 Apr 2019 20:56:30 -0700
parents
children
line wrap: on
line source

daemon  off;
pid /dev/null;
error_log stderr;
#worker_processes  1;

events {
  worker_connections  1024;
}

http {
  types {
    text/html                 html;
    text/css                  css;
    image/gif                 gif;
    image/jpeg                jpeg jpg;
    application/x-javascript  js;
    image/png                 png;
  }

  server {
    listen 8888;
    
    access_log off;
    
    location / {
      proxy_pass http://bang;
      proxy_set_header Host bigasterisk.com;
      proxy_buffering off;
    }
    location /frontDoor/rfid/ {
      proxy_pass http://localhost:10012;
      proxy_set_header Host $http_host;
      proxy_buffering off;
      rewrite /frontDoor/rfid(.*) $1 break;
    }
  }
}