edit traefik.yml
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
dot: # <- ADD THIS
address: ":853" # <- ADD THIS
edit traefik.yml
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
dot: # <- ADD THIS
address: ":853" # <- ADD THIS
Options de useradd
-m
ajoute le home directory
-r
crée un user system
-g
affecte le user au group
sudo useradd -r -m -g root ansible
Utilisation d'un double relais
dreamodule esp32 relay
ll changer les gpios utilsé par les relais par défaut car ils sont initialisés lors du boot de l'ESP32
17->22
16->21
Configuration du Tasmota
Utilisation de l'index sur les relais
#!/bin/bash | |
# Pour ne pas avoir trop de notif dès la dispo | |
DONT_SPAM=/tmp/ovh.exist | |
#https://www.pushbullet.com/#settings/account to retrieve your API key/access | |
TOKEN=<VOTRE_TOKEN PUSHBULLET> | |
# remplacer planCode, server dans l'url à votre convenance et le datacenter recherché dans le filtre jq contains (ici= fr) | |
if [ ! -f "${DONT_SPAM}" ]; then | |
RESULT=$(curl -s 'https://www.ovh.com/engine/apiv6/dedicated/server/datacenter/availabilities?excludeDatacenters=false&planCode=22sk080&server=22sk080' | jq -r '.[0].datacenters[] | select (.datacenter |contains ("ca")).availability') | |
if [ $RESULT != "unavailable" ]; then |
/** | |
* @file fsm.c | |
* @brief an implementation for a FSM in C, this file contains | |
* implementation of definations. | |
* License GPLv3+ | |
* @author Ankur Shrivastava | |
*/ | |
#include "fsm.h" | |
#include<stdlib.h> |
# BUILD | |
FROM node:slim AS build | |
COPY . /app | |
WORKDIR /app | |
RUN npm run ng build -- --prod --base-href='\${BASE_URL}' | |
# RUN | |
FROM nginx:alpine AS run |
const eventListenerOptionsSupported = () => { | |
let supported = false; | |
try { | |
const opts = Object.defineProperty({}, 'passive', { | |
get() { | |
supported = true; | |
} | |
}); |
Dont miss header Content-Type:application/json
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Test",
"themeColor": "AA78D7",
"title": "TEST",
"sections": [