mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 09:20:15 -06:00
add changelog + rename OCIS_RUNTIME_HOSTNAME -> OCIS_RUNTIME_HOST
This commit is contained in:
17
changelog/unreleased/runtime-address-configurable.md
Normal file
17
changelog/unreleased/runtime-address-configurable.md
Normal file
@@ -0,0 +1,17 @@
|
||||
Enhancement: Runtime Hostname and Port are now configurable
|
||||
|
||||
Without any configuration the ocis runtime will start on `localhost:6060` unless specified otherwise. Usage:
|
||||
|
||||
- `OCIS_RUNTIME_PORT=6061 bin/ocis server`
|
||||
- overrides the oCIS runtime and starts on port 6061
|
||||
- `OCIS_RUNTIME_PORT=6061 bin/ocis list`
|
||||
- lists running extensions for the runtime on `localhost:6061`
|
||||
|
||||
All subcommands are updated and expected to work with the following environment variables:
|
||||
|
||||
```
|
||||
OCIS_RUNTIME_HOST
|
||||
OCIS_RUNTIME_PORT
|
||||
```
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1822
|
||||
@@ -22,7 +22,7 @@ func KillCommand(cfg *config.Config) *cli.Command {
|
||||
&cli.StringFlag{
|
||||
Name: "hostname",
|
||||
Value: "localhost",
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOSTNAME"},
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOST"},
|
||||
Destination: &cfg.Runtime.Host,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -21,7 +21,7 @@ func ListCommand(cfg *config.Config) *cli.Command {
|
||||
&cli.StringFlag{
|
||||
Name: "hostname",
|
||||
Value: "localhost",
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOSTNAME"},
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOST"},
|
||||
Destination: &cfg.Runtime.Host,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -23,7 +23,7 @@ func RunCommand(cfg *config.Config) *cli.Command {
|
||||
&cli.StringFlag{
|
||||
Name: "hostname",
|
||||
Value: "localhost",
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOSTNAME"},
|
||||
EnvVars: []string{"OCIS_RUNTIME_HOST"},
|
||||
Destination: &cfg.Runtime.Host,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
Reference in New Issue
Block a user