dhcp-script=/etc/detect_new_device.sh
Reference:
| private function createRedisClusterInstance($servers) | |
| { | |
| $attemps = self::CONNECT_ATTEMPS; | |
| $redisInstance = null; | |
| while ($attemps > 0) { | |
| try { | |
| $redisInstance = new \RedisCluster(null, $servers); | |
| $redisInstance->setOption(\RedisCluster::OPT_SLAVE_FAILOVER, \RedisCluster::FAILOVER_DISTRIBUTE); | |
| $attemps = 0; |
| worker_processes auto; | |
| events { | |
| use epoll; | |
| worker_connections 1024; | |
| multi_accept on; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; |
dhcp-script=/etc/detect_new_device.sh
Reference:
| 'use strict'; | |
| import axios from 'axios'; | |
| axios.defaults.baseURL = "/api"; | |
| axios.defaults.headers.common = { | |
| 'X-Requested-With': 'XMLHttpRequest', | |
| 'X-CSRF-TOKEN': document.querySelector('#token').getAttribute('value') | |
| }; |
A flow based on this article
Comments from Adam on the original version of this gist can be found here