TODO
SSH to your UDM
// LICENSE for this file: MIT | |
// Copyright: Alex Ellis, OpenFaaS Ltd 2020 | |
// Do not remove this notice | |
package handlers | |
import ( | |
"context" | |
"encoding/json" | |
"os" |
export class EventEmitter<Events, K = keyof Events|symbol> { | |
addListener(event: K, listener: (...args: any[]) => void): this; | |
on(event: K, listener: (...args: any[]) => void): this; | |
once(event: K, listener: (...args: any[]) => void): this; | |
removeListener(event: K, listener: (...args: any[]) => void): this; | |
removeAllListeners(event?: K): this; | |
setMaxListeners(n: number): this; | |
getMaxListeners(): number; | |
listeners(event: K): Function[]; | |
emit(event: K, ...args: any[]): boolean; |
/** | |
* ESP8266 project template with optional: | |
* - WiFi config portal - auto or manual trigger | |
* - OTA update - Arduino or web server | |
* - Deep sleep | |
* - Process timeout watchdog | |
* | |
* Copyright (c) 2016 Dean Cording <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
server { | |
listen 80; | |
server_name your_server_name; | |
access_log /var/log/nginx/access.log; | |
location / { | |
proxy_pass http://localhost:1880; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; |