idiotbox-c

youtube web application in C
git clone git://git.codemadness.org/idiotbox-c
Log | Files | Refs | README | LICENSE

README (729B)


      1 Dependencies:
      2 -------------
      3 
      4 - C compiler.
      5 - LibreSSL + libtls.
      6 
      7 
      8 Compile
      9 -------
     10 
     11 - Define GOOGLE_API_KEY
     12 - make
     13 - doas make install
     14 
     15 
     16 Install
     17 -------
     18 
     19 Nginx + slowcgi example:
     20 
     21 	location /idiotbox/css/.* {
     22 		root /home/www/domains/www.codemadness.org/htdocs/idiotbox/css;
     23 	}
     24 
     25 	location ~ ^/idiotbox(/|/\?.*)$ {
     26 		include /etc/nginx/fastcgi_params;
     27 		fastcgi_pass  unix:/run/slowcgi.sock;
     28 		fastcgi_param SCRIPT_FILENAME  /cgi-bin/idiotbox;
     29 		fastcgi_param SCRIPT_NAME  /cgi-bin/idiotbox;
     30 		fastcgi_param REQUEST_URI  /cgi-bin/idiotbox;
     31         }
     32 
     33 httpd + slowcgi example:
     34 
     35 	location match "/idiotbox" {
     36 		root "/cgi-bin/idiotbox.cgi"
     37 		fastcgi
     38 	}
     39 
     40 
     41 When using a chroot make sure to copy /etc/resolv.conf and /etc/ssl/cert.pem.