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
|
{
# Global options block
auto_https off
debug
}
:9092 {
# Serve files from the directory specified by WHATCD_RESOLVER_TRANSMISSION_DOWNLOAD_DIRECTORY
handle_path /files/* {
root * {env.WHATCD_RESOLVER_TRANSMISSION_DOWNLOAD_DIRECTORY}
file_server {
browse off
}
}
handle_path /static/* {
root * {env.WHATCD_RESOLVER_SOURCE_DIRECTORY}/static
file_server {
browse off
}
}
# Reverse proxy from localhost:9092 to localhost:9093
reverse_proxy * localhost:9093
}
|