File: server_configure.md

package info (click to toggle)
incus 6.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,788 kB
  • sloc: sh: 16,313; ansic: 3,121; python: 457; makefile: 337; ruby: 51; sql: 50; lisp: 6
file content (38 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(server-configure)=
# How to configure the Incus server

See {ref}`server` for all configuration options that are available for the Incus server.

If the Incus server is part of a cluster, some of the options apply to the cluster, while others apply only to the local server, thus the cluster member.
In the {ref}`server` option tables, options that apply to the cluster are marked with a `global` scope, while options that apply to the local server are marked with a `local` scope.

## Configure server options

You can configure a server option with the following command:

    incus config set <key> <value>

For example, to allow remote access to the Incus server on port 8443, enter the following command:

    incus config set core.https_address :8443

In a cluster setup, to configure a server option for a cluster member only, add the `--target` flag.
For example, to configure where to store image tarballs on a specific cluster member, enter a command similar to the following:

    incus config set storage.images_volume my-pool/my-volume --target member02

## Display the server configuration

To display the current server configuration, enter the following command:

    incus config show

In a cluster setup, to show the local configuration for a specific cluster member, add the `--target` flag.

## Edit the full server configuration

To edit the full server configuration as a YAML file, enter the following command:

    incus config edit

In a cluster setup, to edit the local configuration for a specific cluster member, add the `--target` flag.