-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.example.toml
53 lines (47 loc) · 1.61 KB
/
config.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[app]
# running mode, "oneshot" or "watch"
# - oneshot: generate the feed and exit
# - watch: generate the feed and watch for changes
mode = "oneshot"
# level of logging, "DEBUG", "INFO", "WARNING", "ERROR"
loglevel = "INFO"
# optional, the admin of the feed
[owner]
name = "podmaker"
email = "[email protected]"
# notice: the sources is an array, it must specify using `[[]]`
[[sources]]
# used to generate the feed url, must be unique, prefer to use numbers, letters, space and underscores
id = "source_1"
# optional, the display name of the source
name = "Source 1"
# optional, the regex to match the episode
regex = "Episode \\d+"
# the url of the source
url = "https://example.com/source_1/"
# optional, the interval to check the source, in seconds, default to 3600
interval = 3600
[[sources]]
id = "source_2"
name = "Source 2"
regex = "Episode \\d+"
url = "https://example.com/source_2/"
interval = 3600
# only one is allowed to be specified
[storage]
# destination of the generated feed, support "local" and "s3"
dest = "local"
# the directory to store the generated feed, your must change it
# the files will save to $base_dir/data/, and the feed will save to $base_dir/data/feed.xml
# you can use nginx to serve the $base_dir/data/
# !!WARNING!! don't serve the $base_dir/ directly, it may leak your config file
base_dir = "/path/to/storage"
# must be public-read, this endpoint should be pointed to $base_dir/data/
public_endpoint = "https://example.com/"
#[storage]
#dest = "s3"
#access_key = "123"
#access_secret = "456"
#bucket = "podmake"
#endpoint = "https://s3.amazonaws.com/"
#public_endpoint = "https://s3.amazonaws.com/"