|
| 1 | +# This is an example of TOML configuration file for Podsync. |
| 2 | + |
| 3 | +# Web server related configuration. |
| 4 | +[server] |
| 5 | +# HTTP server port. |
| 6 | +port = 8080 |
| 7 | +# Optional. If you want to hide Podsync behind reverse proxy like nginx, you can use hostname field. |
| 8 | +# Server will be accessible from http://localhost:8080, but episode links will point to https://my.test.host:4443/ID1/XYZ |
| 9 | +hostname = "https://my.test.host:4443" |
| 10 | +# Bind a specific IP addresses for server ,"*": bind all IP addresses which is default option, localhost or 127.0.0.1 bind a single IPv4 address |
| 11 | +bind_address = "172.20.10.2" |
| 12 | +# Specify path for reverse proxy and only [A-Za-z0-9] |
| 13 | +path = "test" |
| 14 | +data_dir = "/app/data" # Don't change if you run podsync via docker |
| 15 | + |
| 16 | +# API keys to be used to access Youtube and Vimeo. |
| 17 | +# These can be either specified as string parameter or array of string (so those will be rotated). |
| 18 | +[tokens] |
| 19 | +youtube = "YOUTUBE_API_TOKEN" # YouTube API Key. See https://developers.google.com/youtube/registering_an_application |
| 20 | +vimeo = [ # Multiple keys will be rotated. |
| 21 | + "VIMEO_API_KEY_1", # Vimeo developer keys. See https://developer.vimeo.com/api/guides/start#generate-access-token |
| 22 | + "VIMEO_API_KEY_2" |
| 23 | +] |
| 24 | + |
| 25 | +# The list of data sources to be hosted by Podsync. |
| 26 | +# These are channels, users, playlists, etc. |
| 27 | +[feeds] |
| 28 | + # Each channel must have a unique identifier (in this example "ID1"). |
| 29 | + [feeds.ID1] |
| 30 | + # URL address of a channel, group, user, or playlist. |
| 31 | + url = "https://www.youtube.com/channel/CHANNEL_NAME_TO_HOST" |
| 32 | + |
| 33 | + # The number of episodes to query each update (keep in mind, that this might drain API token) |
| 34 | + page_size = 50 |
| 35 | + |
| 36 | + # How often query for updates, examples: "60m", "4h", "2h45m" |
| 37 | + update_period = "12h" |
| 38 | + |
| 39 | + quality = "high" # or "low" |
| 40 | + format = "video" # or "audio" |
| 41 | + playlist_sort = "asc" # or "desc", which will fetch playlist items from the end |
| 42 | + |
| 43 | + # Optional maximal height of video, example: 720, 1080, 1440, 2160, ... |
| 44 | + max_height = 720 |
| 45 | + |
| 46 | + # Optinally include this feed in OPML file (default value: false) |
| 47 | + opml = true |
| 48 | + |
| 49 | + # Optional cron expression format for more precise update schedule. |
| 50 | + # If set then overwrite 'update_period'. |
| 51 | + cron_schedule = "@every 12h" |
| 52 | + |
| 53 | + # Whether to cleanup old episodes. |
| 54 | + # Keep last 10 episodes (order desc by PubDate) |
| 55 | + clean = { keep_last = 10 } |
| 56 | + |
| 57 | + # Optional Golang regexp format. |
| 58 | + # If set, then only download matching episodes. |
| 59 | + filters = { title = "regex for title here", not_title = "regex for negative title match", description = "...", not_description = "..." } |
| 60 | + |
| 61 | + # Optional extra arguments passed to youtube-dl when downloading videos from this feed. |
| 62 | + # This example would embed available English closed captions in the videos. |
| 63 | + # Note that setting '--audio-format' for audio format feeds, or '--format' or '--output' for any format may cause |
| 64 | + # unexpected behaviour. You should only use this if you know what you are doing, and have read up on youtube-dl's options! |
| 65 | + youtube_dl_args = ["--write-sub", "--embed-subs", "--sub-lang", "en,en-US,en-GB"] |
| 66 | + |
| 67 | + # Optional feed customizations |
| 68 | + [feeds.ID1.custom] |
| 69 | + title = "Level1News" |
| 70 | + description = "News sections of Level1Techs, in a podcast feed!" |
| 71 | + author = "Level1Tech" |
| 72 | + cover_art = "{IMAGE_URL}" |
| 73 | + cover_art_quality = "high" |
| 74 | + category = "TV" |
| 75 | + subcategories = ["Documentary", "Tech News"] |
| 76 | + explicit = true |
| 77 | + lang = "en" |
| 78 | + author = "Mrs. Smith ([email protected])" |
| 79 | + ownerName = "Mrs. Smith" |
| 80 | + |
| 81 | + |
| 82 | +# Podsync uses local database to store feeds and episodes metadata. |
| 83 | +# This section is optional and usually not needed to configure unless some very specific corner cases. |
| 84 | +# Refer to https://dgraph.io/docs/badger/get-started/#memory-usage for documentation. |
| 85 | +[database] |
| 86 | + badger = { truncate = true, file_io = true } |
| 87 | + |
| 88 | +# Youtube-dl specific configuration. |
| 89 | +[downloader] |
| 90 | +# Optional, auto update youtube-dl every 24 hours |
| 91 | +self_update = true |
| 92 | +# Download timeout in minutes. |
| 93 | +timeout = 15 |
| 94 | + |
| 95 | +# Optional log config. If not specified logs to the stdout |
| 96 | +[log] |
| 97 | +filename = "podsync.log" |
| 98 | +max_size = 50 # MB |
| 99 | +max_age = 30 # days |
| 100 | +max_backups = 7 |
| 101 | +compress = true |
0 commit comments