Return code | Definition |
---|---|
100 | Success |
101 | Unknown error |
102 | Version not supported |
103 | Illegal request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
daemon | |
maxconn 4096 | |
log 172.17.0.1:514 local0 | |
stats socket /var/run/haproxy.sock mode 600 | |
defaults | |
log global | |
retries 7 | |
option httplog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# For install | |
# curl -sSL raw_url | sh | |
GO_VERSION_DEFAULT=1.11.4 | |
if [ -z "$GO_VERSION" ]; then | |
GO_VERSION=$GO_VERSION_DEFAULT | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
http_listen_port: 9080 | |
grpc_listen_port: 0 | |
positions: | |
filename: /tmp/positions.yaml | |
client: | |
url: http://localhost:3100/api/prom/push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
loki: | |
services: | |
promtail: | |
image: grafana/promtail:latest | |
restart: always | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin | |
* * * * * $(docker ps -a --filter=label=io.yucca.task --format '- targets: ["{{.ID}}"]\n labels:\n container_name: "{{.Names}}"\n task_id: "{{.Label "io.yucca.task"}}"\n job: "containers"' > /opt/loki/promtail/promtail-targets.yaml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Display current git branch in bash prompt | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_blue=`tput setaf 4` | |
c_sgr0=`tput sgr0` | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then |
Тема на 4pda.ru: https://4pda.ru/forum/index.php?showtopic=638230
ссылка на RTSP:
rtsp://CAMERAIP:554/ch0_1.h264
rtsp://CAMERAIP:554/ch0_0.h264
telnet:
user: root
passwd: 1234qwer
OlderNewer