Mercurial > code > home > repos > light9
changeset 1944:b0691e922fa1
fix nginx 502 errors upon service restarts
Ignore-this: 9db3c960c3260956fa6bd1b2c77267d3
author | drewp@bigasterisk.com |
---|---|
date | Wed, 05 Jun 2019 02:04:33 +0000 |
parents | 748ecc2d1f2a |
children | 157985a971dc |
files | show/dance2019/networking.n3 |
diffstat | 1 files changed, 21 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/show/dance2019/networking.n3 Tue Jun 04 17:19:12 2019 +0000 +++ b/show/dance2019/networking.n3 Wed Jun 05 02:04:33 2019 +0000 @@ -2,25 +2,29 @@ @prefix show: <http://light9.bigasterisk.com/show/> . @prefix sh: <http://light9.bigasterisk.com/show/dance2019/> . +# Use ip addrs in here to avoid an issue where nginx returns 502 +# errors for ~10sec after a service (re)starts. I haven't found a fix +# for that in the nginx config. + show:dance2019 :networking sh:netHome . sh:netHome - :webServer <http://localhost:8200/>; - :patchReceiverUpdateHost "localhost"; - :captureDevice <http://localhost:8215/>; - :curveCalc <http://localhost:8201/>; - :collector <http://localhost:8202/>; - :collectorZmq <http://localhost:8203/>; - :effectEval <http://localhost:8204/>; - :effectSequencer <http://localhost:8213/>; - :keyboardComposer <http://localhost:8205/>; - :musicPlayer <http://localhost:8206/>; - :oscDmxServer <udp://localhost:8207/>; - :paintServer <http://localhost:8214/>; - :picamserve <http://localhost:8208/>; - :rdfdb <http://localhost:8209/>; - :subComposer <http://localhost:8210/>; - :subServer <http://localhost:8211/>; - :vidref <http://localhost:8212/> . + :webServer <http://127.0.0.1:8200/>; + :patchReceiverUpdateHost "127.0.0.1"; + :captureDevice <http://127.0.0.1:8215/>; + :curveCalc <http://127.0.0.1:8201/>; + :collector <http://127.0.0.1:8202/>; + :collectorZmq <http://127.0.0.1:8203/>; + :effectEval <http://127.0.0.1:8204/>; + :effectSequencer <http://127.0.0.1:8213/>; + :keyboardComposer <http://127.0.0.1:8205/>; + :musicPlayer <http://127.0.0.1:8206/>; + :oscDmxServer <udp://127.0.0.1:8207/>; + :paintServer <http://127.0.0.1:8214/>; + :picamserve <http://127.0.0.1:8208/>; + :rdfdb <http://127.0.0.1:8209/>; + :subComposer <http://127.0.0.1:8210/>; + :subServer <http://127.0.0.1:8211/>; + :vidref <http://127.0.0.1:8212/> . :captureDevice :urlPath "captureDevice" . :curveCalc :urlPath "curveCalc" .