Skip to content

Add parameter for custom SSL files .crt & .key - as an alternative to using Cloudflare #8716

Closed

Description

@Aztexx
Image Currently it appears the only way to "securely" access the Unsloth Studio using HTTPS is using a Cloudflare tunnel. In my use-case, I am using Tailscale to handle identity and access, ideally I would like to deny any access of HTTP so that only the users authenticating with the HTTPS provided by Tailscale can access the Unsloth Studio.

I would like to instead use Tailscale's HTTPS certificates for access and it provides a FQDN with two files:

  1. FQDN.crt
  2. FQDN.key

Could I specify these two files in a parameter when launching Unsloth Studio to securely be able to access through HTTPS and Tailscale / whatever 3rd party certificate issuer?

Something like:
--ssl-keyfile SSL_KEYFILE The path to the SSL certificate key file.
--ssl-certfile SSL_CERTFILE The path to the SSL certificate cert file.

Thank you,
Aztec

Activity

  1. added
    feature request
    on Aug 13, 2026
  2. changed the title [-]Add parameter for custom HTTPS .crt & .key - as an alternative to using Cloudflare[/-] [+]Add parameter for custom SSL files .crt & .key - as an alternative to using Cloudflare[/+] on Aug 13, 2026
  3. Aztexx commented on Aug 27, 2026

    @Aztexx
    Author

    See also

    Perhaps Tailscale will natively work and I don't need to explicitly specify SSL certificates?
    I'll give it a shot later

  4. Aztexx commented on Sep 3, 2026

    @Aztexx
    Author

    Confirmed that Tailscale works - but does not allow for proper SSL certificates while accessing Unsloth Studio over the network.
    ~
    I think this should still be implemented

  5. Aztexx commented on Sep 30, 2026

    @Aztexx
    Author

    Bumping this feature request.
    ~
    We are starting to roll out Unsloth Studio at work for local AI inference and we are using LAN access with Tailscale for authentication.
    Instead of using a public URL provided by Cloudflare, I would like to specify a cert & key file locally to allow for local HTTPS access which is actually secure.

    I am very happy with Unsloth as a product, but would like maximum security which means non-publicly exposing an HTTPS certificate for remote connections.

  6. danielhanchen commented on Oct 13, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. Studio can now serve HTTPS itself from your own certificate and key, so you can use your Tailscale .crt / .key directly without the Cloudflare tunnel: unsloth studio -H 0.0.0.0 --ssl-certfile host.ts.net.crt --ssl-keyfile host.ts.net.key. Plain HTTP on that port is refused. Added in #13447.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

  7. added a commit that references this issue on Oct 13, 2026
    966a4b8
  8. Aztexx commented on Oct 13, 2026

    @Aztexx
    Author

    Thank you both @danielhanchen & @oobabooga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions