Skip to content

Commit

Permalink
Added note on --allowed-origins flag (#5436)
Browse files Browse the repository at this point in the history
* Added note on --allowed-origins flag

Added under get-started where we mention start a new rill project as a note,

added the flag to references/cli/start.md

* Improve --allowed-origins CLI usage + regenerate CLI docs

* Update get-started.md

---------

Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com>
  • Loading branch information
royendo and begelundmuller authored Aug 22, 2024
1 parent 075e80e commit 45a082b
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func StartCmd(ch *cmdutil.Helper) *cobra.Command {
// --env was previously used for variables, but is now used to set the environment name. We maintain backwards compatibility by keeping --env as a slice var, and setting any value containing an equals sign as a variable.
startCmd.Flags().StringSliceVarP(&env, "env", "e", []string{}, `Environment name (default "dev")`)
startCmd.Flags().StringSliceVarP(&vars, "var", "v", []string{}, "Set project variables")
startCmd.Flags().StringSliceVarP(&allowedOrigins, "allowed-origins", "", []string{}, "add additional allowed-origins")
startCmd.Flags().StringSliceVarP(&allowedOrigins, "allowed-origins", "", []string{}, "Override allowed origins for CORS")

// We have deprecated the ability configure the OLAP database via the CLI. This should now be done via rill.yaml.
// Keeping these for backwards compatibility for a while.
Expand Down
5 changes: 5 additions & 0 deletions docs/docs/home/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ rill start my-rill-project

The Rill web app runs locally at `http://localhost:9009` and will create code files in the `my-rill-project` directory.

:::note
Starting from v0.48, we've made changes to the CORS policy to only allow calls from the default HTTP URL by default for security purposes. If you are hosting Rill Developer on a non-localhost endpoint **(not officially supported)**, this means that they will need to pass in the appropriate CORS origins / hostname via the --allowed-origins flag when starting Rill. Please refer to the [rill start reference page](https://docs.rilldata.com/reference/cli/start) for more details on using the `--allowed-origins` flag.
:::


## Load and transform data

On the welcome screen, initialize an example project or load up Rill with your own data (use local files, cloud storage and/or database connections)
Expand Down
5 changes: 3 additions & 2 deletions docs/docs/reference/cli/org/edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ rill org edit [<org-name>] [flags]
### Flags

```
--org string Organization name
--description string Description
--org string Organization name
--description string Description
--billing-email string Billing email
```

### Global flags
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/cli/project/edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rill project edit [<project-name>] [flags]
--prod-branch string Production branch name
--public Make dashboards publicly accessible
--path string Project directory (default ".")
--subpath string Relative path to project in the repository (for monorepos)
--provisioner string Project provisioner (default: current provisioner)
--prod-ttl-seconds int Prod deployment TTL in seconds
--prod-version string Rill version (default: current version)
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/cli/project/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ Manage projects
* [rill project rename](rename.md) - Rename project
* [rill project reset](reset.md) - Re-deploy project
* [rill project show](show.md) - Show project details
* [rill project splits](splits.md) - List splits for a model
* [rill project status](status.md) - Project deployment status

37 changes: 37 additions & 0 deletions docs/docs/reference/cli/project/splits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
note: GENERATED. DO NOT EDIT.
title: rill project splits
---
## rill project splits

List splits for a model

```
rill project splits [<project>] <model> [flags]
```

### Flags

```
--project string Project Name
--path string Project directory (default ".")
--model string Model Name
--local Target locally running Rill
--page-size uint32 Number of splits to return per page (default 50)
--page-token string Pagination token
```

### Global flags

```
--api-token string Token for authenticating with the cloud API
--format string Output format (options: "human", "json", "csv") (default "human")
-h, --help Print usage
--interactive Prompt for missing required parameters (default true)
--org string Organization Name
```

### SEE ALSO

* [rill project](project.md) - Manage projects

27 changes: 14 additions & 13 deletions docs/docs/reference/cli/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ rill start [<path>] [flags]
### Flags

```
--no-open Do not open browser
--port int Port for HTTP (default 9009)
--port-grpc int Port for gRPC (internal) (default 49009)
--readonly Show only dashboards in UI
--no-ui Serve only the backend
--verbose Sets the log level to debug
--debug Collect additional debug info
--reset Clear and re-ingest source data
--log-format string Log format (options: "console", "json") (default "console")
--tls-cert string Path to TLS certificate
--tls-key string Path to TLS key file
-e, --env strings Environment name (default "dev")
-v, --var strings Set project variables
--no-open Do not open browser
--port int Port for HTTP (default 9009)
--port-grpc int Port for gRPC (internal) (default 49009)
--readonly Show only dashboards in UI
--no-ui Serve only the backend
--verbose Sets the log level to debug
--debug Collect additional debug info
--reset Clear and re-ingest source data
--log-format string Log format (options: "console", "json") (default "console")
--tls-cert string Path to TLS certificate
--tls-key string Path to TLS key file
-e, --env strings Environment name (default "dev")
-v, --var strings Set project variables
--allowed-origins strings Override allowed origins for CORS
```

### Global flags
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/cli/usergroup/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: rill usergroup remove
---
## rill usergroup remove

Remove role of a user group in an organization or prodject
Remove role of a user group in an organization or project

```
rill usergroup remove [flags]
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/cli/usergroup/usergroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Manage user groups
* [rill usergroup delete](delete.md) - Delete a user group
* [rill usergroup edit](edit.md) - Edit a user group
* [rill usergroup list](list.md) - List user groups
* [rill usergroup remove](remove.md) - Remove role of a user group in an organization or prodject
* [rill usergroup remove](remove.md) - Remove role of a user group in an organization or project
* [rill usergroup rename](rename.md) - Rename a user group
* [rill usergroup set](set.md) - Set role to a user group in an organization or project
* [rill usergroup show](show.md) - Show a user group
Expand Down

0 comments on commit 45a082b

Please sign in to comment.