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

Ability to specify custom headers for connecting to suwayomi server #302

Open
milindpatel63 opened this issue Apr 5, 2024 · 0 comments
Open

Comments

@milindpatel63
Copy link


Is your feature request related to a problem? Please describe.

I run a Suwayomi server in my homelab and expose it publically via Cloudflare and protect it via Cloudflare Access/Zero trust.
But since there's cloudflare in front of it now, all the client apps can't connect to it directly. Instead, i have to use the browser.

There's a feature in Cloudflare Access called "Service Token", in which we can specify a service token via headers and use that to authenticate.

Describe the solution you'd like
I want the ability to specify custom headers in addition to Server IP:PORT and basic auth.
This would provide me a secure way to connect to a suwayomi server which is hosted publically.

Describe alternatives you've considered
An alternative right now is to use a VPN like tailscale. But for that, i need to be connected to tailscale whenever i want to access my suwayomi which is not ideal.

Additional context
Cloudflare Service token docs: https://developers.cloudflare.com/cloudflare-one/identity/service-tokens/

Basically i need to specify these 2 in header

CF-Access-Client-Id: <CLIENT_ID>

CF-Access-Client-Secret: <CLIENT_SECRET>

Like this,

curl -H "CF-Access-Client-Id: <CLIENT_ID>" -H "CF-Access-Client-Secret: <CLIENT_SECRET>" https://app.example.com

There are various other apps that does this exact same thing for the purpose of connecting to services exposed via cloudflare tunnel and access. Like Lunasea ( https://github.com/JagandeepBrar/lunasea ).

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