Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create cloudflare service without TUNNEL-UUID and CREDENTIALS-FILE #17

Open
c-hri-s opened this issue Oct 9, 2023 · 0 comments

Comments

@c-hri-s
Copy link

c-hri-s commented Oct 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant