kvaster / iptv-proxy

Simple iptv restreamer
Other
91 stars 20 forks source link

Its runs, but what now..? #15

Open sebastianengman opened 11 months ago

sebastianengman commented 11 months ago

Hi.

Am I correct that the service will provide a webservice on the port configured in config.yml?

I get everything to run on the machine, but cannot access the service from browser or VLC.

This is what iptv-proxy dumps when starting.

17.07.2023 10:08:52 [INFO ] :: App :: loading config... 17.07.2023 10:08:53 [INFO ] :: IptvProxyService :: starting 17.07.2023 10:08:53 [INFO ] :: IptvProxyService :: updating channels 17.07.2023 10:08:53 [INFO ] :: AsyncLoader :: 00001| loading playlist: iptvteststream, retry: 0, url: http:// 17.07.2023 10:08:53 [INFO ] :: IptvProxyService :: parsing playlist: iptvteststream, url: http:// 17.07.2023 10:08:53 [DEBUG] :: HttpUtils :: 00001| ok (739ms) 17.07.2023 10:08:54 [INFO ] :: IptvProxyService :: channels updated 17.07.2023 10:08:54 [INFO ] :: IptvProxyService :: started <

sebastianengman commented 11 months ago

This is my config.yml

host: 127.0.0.1 port: 8080 base_url: http://ubuntu:8080 servers:

parryhotter007 commented 7 months ago

Can you elobrate more on what would be the URL we need to access in the above example?

kvaster commented 7 months ago

Above example is misconfigured unless 'ubuntu' is resolved to 127.0.0.1 or you have something like nginx in front of. With base_url above you need to access via:

http://ubuntu:8080/m3u/<login> - m3u http://ubuntu:8080/epg.xml.gz - epg if you have one

kvaster commented 7 months ago

My proposition is to try following config for you:

host: 0.0.0.0
port: 8080
servers:
  name: iptvteststream
  connections:
    url: http://*******
    max_connections: 1
    allow_anonymous: true

Omit base_url and listen on all interfaces with 0.0.0.0 And connect via url: http://<you ip address>:8080/m3u

kvaster commented 6 months ago

@sebastianengman , looks like your config have an error:

[Source: (File); line: 5, column: 3] -> it seems here (in 'servers' section) you have object instead of array.

Just realized that you have used my snippet. Corrected one:

host: 0.0.0.0
port: 8080
servers:
- name: iptvteststream
  connections:
    url: http://*******
    max_connections: 1
    allow_anonymous: true
sebastianengman commented 6 months ago

@sebastianengman , looks like your config have an error:

[Source: (File); line: 5, column: 3] -> it seems here (in 'servers' section) you have object instead of array.

Just realized that you have used my snippet. Corrected one:

host: 0.0.0.0
port: 8080
servers:
- name: iptvteststream
  connections:
    url: http://*******
    max_connections: 1
    allow_anonymous: true

Thanks :)

I found it and deleted my comment but you replied after. Thank you!

sebastianengman commented 6 months ago

@sebastianengman , looks like your config have an error: [Source: (File); line: 5, column: 3] -> it seems here (in 'servers' section) you have object instead of array. Just realized that you have used my snippet. Corrected one:

host: 0.0.0.0
port: 8080
servers:
- name: iptvteststream
  connections:
    url: http://*******
    max_connections: 1
    allow_anonymous: true

Thanks :)

I found it and deleted my comment but you replied after. Thank you!

allow_anonymous: true has to be without spaces right? Not under the server section?