Mercurial > code > home > repos > homeauto
changeset 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 | 3930f997ceeb |
children | 24c004aac998 |
files | service/rfid_pn532_py/local.conf service/rfid_pn532_py/makefile |
diffstat | 2 files changed, 41 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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; + } + } +}
--- 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 +