run npm i
node index.js # starts the tracker on port 8000
# install html2 haml gem then run in the directory to convert erb haml files | |
# You have to delete erb files your self after checking if everything is ok.. | |
for file in $(find . -type f -name \*.html.erb); do | |
html2haml -e ${file} "$(dirname ${file})/$(basename ${file} .erb).haml"; | |
done |
Do all in https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 | |
iptables -I FORWARD -i tun0 -o eth0 \ | |
-s 10.8.0.0/24 -m conntrack --ctstate NEW -j ACCEPT | |
iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED \ | |
-j ACCEPT | |
iptables -t nat -I POSTROUTING -o eth0 \ | |
-s 10.8.0.0/24 -j MASQUERADE |
server { | |
listen 80; | |
server_name extratorrent.cc; | |
location / { | |
proxy_bind $server_addr; | |
proxy_pass http://extratorrent.cc; | |
} | |
} | |
server { |
server { | |
listen 80; | |
server_name torrentz.eu; | |
location / { | |
proxy_bind $server_addr; | |
proxy_pass http://torrentz.eu; | |
} | |
} | |
server { |
#!/bin/bash | |
# | |
# watchdog | |
# | |
# Run as a cron job to keep an eye on what_to_monitor which should always | |
# be running. Restart what_to_monitor and send notification as needed. | |
# | |
# This needs to be run as root or a user that can start system services. | |
# | |
# Revisions: 0.1 (20100506), 0.2 (20100507) |
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /usr/local/nginx/conf/nginx.conf | |
# pidfile: /usr/local/nginx/logs/nginx.pid |