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
[Unit] | |
Description=repcached - add data replication feature to memcached 1.2.x | |
After=network.target | |
[Service] | |
ExecStart=/opt/repcached/bin/memcached -m 256 -p 11211 -u root -P /var/run/memcachedrep.pid -x 1.2.3.4 -d | |
Type=forking | |
PIDFile=/var/run/memcachedrep.pid | |
Restart=always |
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
sub vcl_recv { | |
if (req.http.host == "www.example.com") { | |
set req.http.location = "http://example.com" + req.url; | |
return (synth(750, "Permanently moved")); | |
} | |
} | |
sub vcl_synth { | |
if (resp.status == 750) { | |
set resp.http.location = req.http.location; |
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/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <[email protected]> | |
# Modified: | |
# Claudio Kuenzler |
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
# [0-9].example.com -> /srv/tickets.example.com/[0-9]/app/build | |
# http://nginx.org/en/docs/http/server_names.html | |
server { | |
listen 80; | |
server_name "~^(?<subdomain>^\d).example.com$"; | |
root /srv/tickets.example.com/$subdomain/app/build; | |
} |
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
# /etc/apt/apt.conf | |
Acquire::Check-Valid-Until false; |
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/bash | |
index=$(date --date='14 days ago' +%Y.%m.%d) | |
curl -s -XDELETE "http://localhost:9200/filebeat-$index?pretty" |
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 | |
/usr/sbin/ntpdate -s 0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org |
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
# /etc/logrotate.d/turnserver | |
/var/log/turnserver.log { | |
daily | |
rotate 14 | |
compress | |
missingok | |
notifempty | |
create 644 root root | |
su root root |
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
# /etc/turnserver.conf | |
external-ip=11.22.33.44/10.0.0.44 | |
tls-listening-port=443 | |
listening-port=443 | |
min-port=49152 | |
max-port=65535 | |
verbose | |
lt-cred-mech | |
user=demo:asdf1234 |
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
[Unit] | |
Description=turnserver - coturn TURN server | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/turnserver -c /etc/turnserver.conf -o --no-stdout-log | |
Type=forking | |
PIDFile=/var/run/turnserver.pid | |
Restart=always |
OlderNewer