config_reverse_proxy - euzu/tuliprox GitHub Wiki

This configuration is only used for reverse proxy mode. The Reverse Proxy mode can be activated for each user individually.

stream

Contains settings for the streaming.

  • The retryoption is for transparent reconnections to the provider on provider disconnects or stream errors.

  • buffer: When buffer is enabled, the stream is buffered with the configured size. size is the amount of 8092 byte chunks. In this case the value 1024 means approx 8MB for 2Mbit/s stream.

  • a. if retry is false and buffer.enabled is false the provider stream is piped as is to the client.

  • b. if retry is true or buffer.enabled is true the provider stream is processed and send to the client.

  • The key difference: the b. approach is based on complex stream handling and more memory footprint.

cache

LRU-Cache is for resources. If it is enabled, the resources/images are persisted in the given dir. If the cache size exceeds size, In an LRU cache, the least recently used items are evicted to make room for new items if the cache sizeis exceeded.

resource_rewrite_disabled

If you have m3u-filter behind a reverse proxy and dont want rewritten resource urls inside responses, you can disable the resource_url rewrite. Default value is false. If you set it true cache is disabled! Because the cache cant work without rewritten urls.

reverse_proxy:
  resource_rewrite_disabled: fals
  stream:
    retry: true
    buffer:
      enabled: true
      size: 1024
  cache:
    size: 100KB
    enabled: true
    dir: ./cache