Update readme

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-03-01 11:12:08 +01:00
parent 4eecb8fc64
commit eca65e4469

View File

@@ -32,6 +32,9 @@ start proxy server example:
poxy-server --m3u-url http://iptvexample.net/iptvm3ufile.m3u \ # or local m3u file
--port 8080 \ # port you want to expose your proxy
--hostname proxyserver.com # hostname of your machine running this proxy
##### UNSAFE AUTH TODO ADD REAL AUTH
--user test
--password passwordtest
```
@@ -54,14 +57,22 @@ http://poxyserver.com:8080/15/test/4
### Without Docker
Download lasted [release](https://github.com/pierre-emmanuelJ/iptv-proxy/releases)
```
% iptv-proxy --m3u-url http://example.com/iptv.m3u --port 8080 --hostname poxyexample.com
```Bash
% iptv-proxy --m3u-url http://example.com/iptv.m3u \
--port 8080 --hostname poxyexample.com \
##### UNSAFE AUTH TODO ADD REAL AUTH
--user test
--password passwordtest
```
Or
```
```Bash
% go install
% iptv-proxy --m3u-url http://example.com/iptv.m3u --port 8080 --hostname poxyexample.com
% iptv-proxy --m3u-url http://example.com/iptv.m3u \
--port 8080 --hostname poxyexample.com \
##### UNSAFE AUTH TODO ADD REAL AUTH
--user test
--password passwordtest
```
### With Docker
@@ -84,6 +95,9 @@ Or
PORT: 8080
# Hostname or IP to expose the IPTVs endpoints (for machine not for docker)
HOSTNAME: localhost
##### UNSAFE AUTH TODO ADD REAL AUTH
USER: test
PASSWORD: testpassword
```
#### Start
@@ -92,5 +106,11 @@ Or
% docker-compose up -d
```
## TODO
there is unsafe auth just for testing.
change with real auth with database and user management
and auth with token
**ENJOY!**