Syntax highlighting in README

This commit is contained in:
Pierre Rudloff 2016-07-27 13:40:18 +02:00
parent efe1a34a9f
commit bd02236ca5

View file

@ -14,25 +14,28 @@ You just have to unzip it on your server and it should be ready to use.
### From Git
In order to get AllTube working, you need to use [npm](https://www.npmjs.com/) and [Composer](https://getcomposer.org/):
```bash
npm install
composer install
```
This will download all the required dependencies.
(Note that it will download the ffmpeg binary for 64-bits Linux. If you are on another platform, you might want to specify the path to avconv/ffmpeg in your config file.)
You should also ensure that the *templates_c* folder has the right permissions:
```bash
chmod 777 templates_c/
```
If your web server is Apache, you need to set the `AllowOverride` setting to `All` or `FileInfo`.
## Config
If you want to use a custom config, you need to create a config file:
```bash
cp config.example.yml config.yml
```
## Web server configuration
### Apache
@ -43,7 +46,7 @@ You will need the following modules:
### Nginx
Here is an exemple Nginx configuration:
```nginx
server {
server_name localhost;
listen 443 ssl;
@ -88,7 +91,7 @@ Here is an exemple Nginx configuration:
include fastcgi_params;
}
}
```
## License
This software is available under the [GNU General Public License](http://www.gnu.org/licenses/gpl.html).
@ -100,7 +103,7 @@ You need [avconv](https://libav.org/avconv.html), [rtmpdump](http://rtmpdump.mpl
If you don't want to enable conversions, you can disable it in *config.yml*.
On Debian-based systems:
```bash
sudo apt-get install libav-tools rtmpdump curl
```
You also probably need to edit the *avconv* variable in *config.yml* so that it points to your ffmpeg/avconv binary (*/usr/bin/avconv* on Debian/Ubuntu).