You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if your target rffmpeg host exposes sshd on a port other than 22, rffmpeg.yml on the client must be modified after initial setup.
Adding a new variable for initial setup (I suggest RFFMPEG_PORT) to be captured and processed by init-mod-jellyfin-rffmpeg-setup/run would automate this step.
Proposed code change
I'm not too familiar with sed -- not sure if this is correct but I will test.
...
sed -i 's~# - "/var/lib/jellyfin/id_rsa"~ - "/config/rffmpeg/.ssh/id_rsa"~' /config/rffmpeg/rffmpeg.yml
if [ !-z"$RFFMPEG_PORT" ];then
sed -i 's~# - "-p"~ - "-p"~' /config/rffmpeg/rffmpeg.yml
sed -i "s~# - $RFFMPEG_PORT~ - $RFFMPEG_PORT~" /config/rffmpeg/rffmpeg.yml
fi
...
We will likely also want to ensure that, if the service is reconfigured without the variable after previously including it, these lines are removed from the file:
...
else
sed "args that remove the line with the port flag"
sed "args that remove the line with the port value"fi
...
Or we could default the variable to 22 and remove the check altogether.
The text was updated successfully, but these errors were encountered:
You can always edit the yaml as it's in the config folder and add any custom args you need.
The current logic doesn't allow for changing vars after they've been set anyway. The init logic is pretty barebones.
@a-priestley agree with @aptalca that this would not work with the current setup. You can add any SSH args into the config file easily as its exposed to host, and the default config does not have any port flags in it (it is direct from the upstream rffmpeg project and is a little out of date but can easily be updated manually if there are any options the end user wants to set). I would be reluctant to have manual downstream additions to the default config file.
Alternatively, as I don't actively use this mod anymore, would be happy for you to submit a pull request with a updated logic to sed the existing file and add port options in if it is set as an env eg.
if [ ! -z "$RFFMPEG_PORT" ]; then
sed -i "\~ - \"/config/rffmpeg/.ssh/id_rsa\"~a\\ -p $RFFMPEG_PORT" /config/rffmpeg/rffmpeg.yml
fi
Is this a new feature request?
Name of mod
jellyfin-rffmpeg
Wanted change
Expose a new environment variable for initial rffmpeg setup, appending to
rffmpeg.yml
:Reason for change
Currently, if your target rffmpeg host exposes sshd on a port other than 22,
rffmpeg.yml
on the client must be modified after initial setup.Adding a new variable for initial setup (I suggest
RFFMPEG_PORT
) to be captured and processed by init-mod-jellyfin-rffmpeg-setup/run would automate this step.Proposed code change
I'm not too familiar with
sed
-- not sure if this is correct but I will test.We will likely also want to ensure that, if the service is reconfigured without the variable after previously including it, these lines are removed from the file:
Or we could default the variable to 22 and remove the check altogether.
The text was updated successfully, but these errors were encountered: