plexargod
plexargod copied to clipboard
Cannot create cloudflare service without TUNNEL-UUID and CREDENTIALS-FILE
Sometime around 2020 Cloudflare made a change such that you can only create a cloudflare service if you have a tunnel-uuid and credentials-file (created by a tunnel login command). This means that the tunnel would be associated with your Cloudflare account.
As a workaround I did the following. You may like to update the documentation.
Installed cloudflared as per the instructions
Manually created the file /etc/systemd/system/cloudflared.service
with the following content:
[Unit]
Description=Argo Tunnel
After=network.target
[Service]
TimeoutStartSec=0
Type=notify
ExecStartPre=/usr/local/bin/cloudflared update
ExecStart=/usr/local/bin/cloudflared tunnel --no-autoupdate --url http://<plex-ip-address>:32400 --metrics localhost:33400
ExecStartPost=/usr/local/bin/plexargod
Environment=RUN_BY_SYSTEMD=1
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Created /etc/cloudflared/config.yml
with the following content:
url: http://<plex-ip-address>:32400
metrics: localhost:33400
Then followed the documented setup for the plexargod script.