<@U04UQ68083H> How do I configure Ory tunnel to us...
# ory-copilot
m
@chilly-king-10285 How do I configure Ory tunnel to use https?
b
A message from kapa.ai
To configure Ory Tunnel to use HTTPS, you don't need to take any additional steps as it uses HTTPS by default. The Ory Tunnel is designed to mirror Ory APIs on your local machine for development and testing purposes, and it automatically handles HTTPS connections. According to the [Ory CLI documentation](https://www.ory.sh/docs/cli/ory-tunnel), the Ory Tunnel connects your application and Ory's APIs through a local HTTP server, enabling both to run on the same domain or subdomain. This setup is required for features such as CORS and cookie support. Here's an example of how to use Ory Tunnel with HTTPS:
Copy code
$ ory tunnel --project <project-id-or-slug> <https://www.example.org>
In this example,
<https://www.example.org>
is the URL where your application is running. It's important to note that while Ory Tunnel uses HTTPS, it's primarily intended for development and testing. The documentation explicitly states:
Copy code
Important: The Ory Tunnel is designed for development purposes only and should not be used in production environments.
For production environments, it's recommended to use a custom domain setup instead of Ory Tunnel. You can find more information about setting up custom domains in the [Custom Domains guide](https://www.ory.sh/docs/guides/custom-domains).