Clone de https://github.com/naofode/naofo.de.git

Desobediente Civil 90a2a1ddbf Consertando recaptcha 4 years ago
css 340d32c77a proxy blocked domains handling 5 years ago
inc 659f3f1655 Alterei o domínio em todos os arquivos 4 years ago
js 7e2e19eb63 client side decoded original link 5 years ago
lib c4ef5dffb6 Atualizando recaptcha 4 years ago
.gitignore a200ee16f1 Adicionei arquivos temporários. Ou removi? 4 years ago
.htaccess 258206b45a initial 6 years ago
LICENSE b8328b768b Initial commit 6 years ago
README.md aecb002784 added installation guide into README 4 years ago
ajax-loader.gif 258206b45a initial 6 years ago
apple-touch-icon-precomposed.png 258206b45a initial 6 years ago
capture.sh 6f12902669 Consertando wkhtmlimagetopdf em servidor sem X 4 years ago
favicon.ico 258206b45a initial 6 years ago
humans.txt 258206b45a initial 6 years ago
index.php 90a2a1ddbf Consertando recaptcha 4 years ago
optimize.sh 7436a4abd9 sliced-images-new-feature 6 years ago
proxy.php 340d32c77a proxy blocked domains handling 5 years ago
robots.txt 258206b45a initial 6 years ago
schema.sql b7cdc6de32 minor fix 5 years ago
slice.sh 7436a4abd9 sliced-images-new-feature 6 years ago
static.php fbadb969b1 Consertando recaptcha 4 years ago

README.md

naofo.de

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/

simple installation guide for ubuntu 14.04

dependencies:

  • python
  • apache
  • php5
  • php5-curl
  • php5-mysql
  • mysql
  • wkhtmltoimage
  • imagemagick

other requirements:

  • recaptcha
  • google analytics

steps:

  1. add apache variables in /etc/apache2/envvars:

    export naofode_recaptchakey='???'
    export naofode_dsn='mysql:host=localhost;dbname=???'
    export naofode_dbuser='???'
    export naofode_dbpass='???'

  2. alter recaptcha site key in index.php

  3. alter analytics javascript in index.php

  4. create database table:

    mysql> source /path/to/schema.sql

  5. along all files, alter occurrences of naofo.de to the new domain (be careful not to change the github address)

  6. alter <Directory /var/www/> in /etc/apache2/apache2.conf:

    AllowOverride All

  7. execute

    mkdir /var/www/html/prints

  8. execute

    chown www-data:www-data /var/www/html/prints

  9. execute

    a2enmod rewrite

  10. execute

    service apache2 restart