Assuming you have a self-hosted Outline Wiki and Keycloak setup running, do the following:
- Add the
webhooksservice to yourdocker-compose.yml - Save the
server.tstowebhooks/server.ts(relative to your compose file) - Save
webhooks.envinto the same folder as your compose file - Via your webserver configuration add a subdomain, eg
webhooks.wiki.yoursite.orgto forward to your webhook service port 8000
This file contains hidden or 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
| deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
| # deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware | |
| deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware |
This file contains hidden or 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
| - interface: {{ 'bond0' if hostvars[item].bond_interfaces | length > 0 else 'eth0' }} | |
| dhcp: false | |
| addresses: | |
| - {{ hostvars[item].ip }} | |
| routes: | |
| - network: 0.0.0.0/0 | |
| gateway: {{ hostvars[item].ip | ipaddr('1') | ipaddr('address') }} | |
| {% if hostvars[item].bond_interfaces | length > 0 %} | |
| bond: | |
| interfaces: {{ hostvars[item].bond_interfaces }} |
This file contains hidden or 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/bash | |
| set -e | |
| # OPTIONAL: zsh will not install without ncurses. IF your machine doesn't have ncurses, you need to install it first. | |
| export CXXFLAGS=" -fPIC" CFLAGS=" -fPIC" CPPFLAGS="-I${HOME}/include" LDFLAGS="-L${HOME}/lib" | |
| wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz | |
| tar -xzvf ncurses-6.2.tar.gz | |
| cd ncurses-6.2 | |
| ./configure --prefix=$HOME --enable-shared |
This file contains hidden or 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
| $ modprobe bridge | |
| $ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf | |
| $ sysctl -p /etc/sysctl.conf | |
| sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory | |
| # SOLUTION | |
| $ modprobe br_netfilter | |
| $ sysctl -p /etc/sysctl.conf |
This file contains hidden or 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
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
This file contains hidden or 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
| ---------------------------------------- | |
| Setup Install HAProxy 1.8 on Ubuntu 16 | |
| ---------------------------------------- | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:vbernat/haproxy-1.8 | |
| sudo apt-get update | |
| apt-cache policy haproxy | |
| sudo apt install haproxy | |
| sudo update-rc.d haproxy enable |
NewerOlder