mirror of
https://github.com/haugene/docker-transmission-openvpn.git
synced 2025-08-07 14:57:20 +02:00
RSS plugin not supporting HTTP authorization (#1741)
* RSS plugin not supporting HTTP authorization This fork will fix the issue #781 * Add rpc login details to rss plugin if necessary * updated docs Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
This commit is contained in:
parent
e0fc061d5a
commit
7a9944d533
@ -7,3 +7,32 @@ $ docker run -d \
|
||||
--name "transmission-rss" \
|
||||
haugene/transmission-rss
|
||||
```
|
||||
At first start a transission-rss.conf file will be created in /etc if no manual one is mounted
|
||||
A manual transmission-rss.conf file can be mounted into the container to add additional parameters, e.g. login details to rpc
|
||||
example:
|
||||
```
|
||||
$ docker run -d \
|
||||
-v <transmission-rss.conf>:/etc/transmission-rss.conf \
|
||||
--link <transmission-container>:transmission \
|
||||
--name "transmission-rss" \
|
||||
haugene/transmission-rss
|
||||
```
|
||||
|
||||
transmission-rss.conf example
|
||||
|
||||
```
|
||||
feeds:
|
||||
- url: <placeholder>
|
||||
download_path: <placeholder>
|
||||
regexp: <placeholder>
|
||||
|
||||
server:
|
||||
host: transmission
|
||||
port: 9091
|
||||
rpc_path: /transmission/rpc
|
||||
|
||||
login:
|
||||
username: <username>
|
||||
password: <password>
|
||||
|
||||
```
|
@ -28,6 +28,12 @@ else
|
||||
else
|
||||
sed -i "s#regexp: placeholder#regexp: $rss_regex_esc#" /etc/transmission-rss.conf
|
||||
fi
|
||||
if [[ $TRANSMISSION_RPC_ENABLED == 'true' ]] && [ -z $(grep login /etc/transmission-rss.conf) ]; then
|
||||
echo "RPC enabled, adding login details to rss config as no login details exist"
|
||||
printf "login:\n username: $TRANSMISSION_RPC_USERNAME\n password: $TRANSMISSION_RPC_PASSWORD" >>/etc/transmission-rss.conf
|
||||
else
|
||||
echo "Login already provided in config OR RPC does not seem to be enabled"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Starting RSS plugin with the following config:"
|
||||
|
Loading…
Reference in New Issue
Block a user