Open GhostYiL opened 1 week ago
So the docs mention on using ./m3uproxy users add -c config.json user pass. But while doing so im receiving unexpected end of JSON input error.
./m3uproxy users add -c config.json user pass.
unexpected end of JSON input
My config:
"port": 8080, "epg": "https://m3upt.com/epg", "m3u":"http://supercoollisthere.com/bigcars.m3u", "playlist": "/path/to/playlist.json", "no_service_image": "/path/to/image.jpg", "default_timeout": 3, "num_workers": 10, "scan_time": 600, "security": { "geoip": { "database": "/path/to/GeoLite2-Country.mmdb", "whitelist": [], "internal_networks": [ "127.0.0.0/8" ] }, "allowed_cors_domains": [ "*" ] }, "auth": { "provider": "file", "secret_key": "secret", "settings": { "file_path": "/path/to/auth.json" } } }
How are you supposed to configure auth.json?
Indeed the command should work, it is also being used in Dockerfile (https://github.com/a13labs/m3uproxy/blob/main/scripts/entrypoint.sh#L31), I will take a look ASAP.
So the docs mention on using
./m3uproxy users add -c config.json user pass.
But while doing so im receivingunexpected end of JSON input
error.My config:
How are you supposed to configure auth.json?