# HG changeset patch # User drewp # Date 1555214190 25200 # Node ID 6900a284724eff7ca43da2c304b3c7f8203f1309 # Parent 3930f997ceebf928acdb42a8a4105deb19724d14 start dev mode nginx config. not working yet Ignore-this: d18b11cd5566d844bf126b8a9e50b912 darcs-hash:f7862f9c368b9f0e37cb961a63ed7cd56faf9cc7 diff -r 3930f997ceeb -r 6900a284724e 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 3930f997ceeb -r 6900a284724e 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 +