# HG changeset patch # User drewp@bigasterisk.com # Date 1555214190 25200 # Node ID d453cdd8a86f8ef44bf8d26b78117a5f4f4338a6 # Parent 2dc7756dfc5eb00be0833cd994c64c8ef7559d34 start dev mode nginx config. not working yet Ignore-this: d18b11cd5566d844bf126b8a9e50b912 diff -r 2dc7756dfc5e -r d453cdd8a86f service/rfid_pn532_py/local.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/rfid_pn532_py/local.conf Sat Apr 13 20:56:30 2019 -0700 @@ -0,0 +1,37 @@ +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; + } + } +} diff -r 2dc7756dfc5e -r d453cdd8a86f service/rfid_pn532_py/makefile --- a/service/rfid_pn532_py/makefile Sat Apr 13 20:23:35 2019 -0700 +++ b/service/rfid_pn532_py/makefile Sat Apr 13 20:56:30 2019 -0700 @@ -48,3 +48,7 @@ redeploy: fresh_sudo build_image_pi sudo /my/proj/ansible/playbook -l $(RUNHOST) -t rfid supervisorctl -s http://$(RUNHOST):9001/ restart $(JOB)_$(PORT) + +nginx_local: + nginx -c `pwd`/local.conf +