Syntax highlighting in README
This commit is contained in:
parent
efe1a34a9f
commit
bd02236ca5
1 changed files with 49 additions and 46 deletions
31
README.md
31
README.md
|
@ -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/):
|
||||
|
||||
npm install
|
||||
composer install
|
||||
```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:
|
||||
|
||||
chmod 777 templates_c/
|
||||
```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:
|
||||
|
||||
cp config.example.yml config.yml
|
||||
```bash
|
||||
cp config.example.yml config.yml
|
||||
```
|
||||
|
||||
## Web server configuration
|
||||
### Apache
|
||||
|
@ -43,8 +46,8 @@ You will need the following modules:
|
|||
|
||||
### Nginx
|
||||
Here is an exemple Nginx configuration:
|
||||
|
||||
server {
|
||||
```nginx
|
||||
server {
|
||||
server_name localhost;
|
||||
listen 443 ssl;
|
||||
|
||||
|
@ -87,8 +90,8 @@ 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:
|
||||
|
||||
sudo apt-get install libav-tools rtmpdump curl
|
||||
|
||||
```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).
|
||||
|
|
Loading…
Reference in a new issue