Skip to content

Cortex Config

This command allows you to update server configurations such as CORS and Allowed Headers.

Usage

Terminal window
cortex config [options] [subcommand]

Options:

OptionDescriptionRequiredDefault valueExample
--corsToggle CORSNotrueon, off
--allowed_originsAllowed origins for CORSNohttp://localhost:39281, http://127.0.0.1:39281http://localhost:3000
-h, --helpDisplay help information for the command.No--h

Subcommands:

cortex config status

This command returns all server configurations.

Usage:

Terminal window
cortex config status

For example, it returns the following:

+-----------------------+-------------------------------------+
| Config name | Value |
+-----------------------+-------------------------------------+
| allowed_origins | http://localhost:39281 |
+-----------------------+-------------------------------------+
| allowed_origins | http://127.0.0.1:39281 |
+-----------------------+-------------------------------------+
| allowed_origins | http://0.0.0.0:39281 |
+-----------------------+-------------------------------------+
| cors | true |
+-----------------------+-------------------------------------+
| huggingface_token | |
+-----------------------+-------------------------------------+
| no_proxy | example.com,::1,localhost,127.0.0.1 |
+-----------------------+-------------------------------------+
| proxy_password | |
+-----------------------+-------------------------------------+
| proxy_url | |
+-----------------------+-------------------------------------+
| proxy_username | |
+-----------------------+-------------------------------------+
| verify_host_ssl | true |
+-----------------------+-------------------------------------+
| verify_peer_ssl | true |
+-----------------------+-------------------------------------+
| verify_proxy_host_ssl | true |
+-----------------------+-------------------------------------+
| verify_proxy_ssl | true |
+-----------------------+-------------------------------------+