1 |
# Example XO-Server configuration. |
2 |
|
3 |
# This file is automatically looking for at the following places: |
4 |
# - `./.xo-server.yaml` up to `/.xo-server.yaml` |
5 |
# - `$HOME/.config/xo-server/config.yaml` |
6 |
# - `/etc/xo-server/config.yaml` |
7 |
# |
8 |
# The first entries have priority. |
9 |
|
10 |
# Note: paths are relative to the configuration file. |
11 |
|
12 |
#===================================================================== |
13 |
|
14 |
# It may be necessary to run XO-Server as a privileged user (e.g. |
15 |
# `root`) for instance to allow the HTTP server to listen on a |
16 |
# [privileged ports](http://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html). |
17 |
# |
18 |
# To avoid security issues, XO-Server can drop its privileges by |
19 |
# changing the user and the group is running with. |
20 |
# |
21 |
# Note: XO-Server will change them just after reading the |
22 |
# configuration. |
23 |
|
24 |
# User to run XO-Server as. |
25 |
# |
26 |
# Note: The user can be specified using either its name or its numeric |
27 |
# identifier. |
28 |
# |
29 |
# Default: undefined |
30 |
#user: 'nobody' |
31 |
|
32 |
# Group to run XO-Server as. |
33 |
# |
34 |
# Note: The group can be specified using either its name or its |
35 |
# numeric identifier. |
36 |
# |
37 |
# Default: undefined |
38 |
#group: 'nogroup' |
39 |
|
40 |
#===================================================================== |
41 |
|
42 |
# Configuration of the embedded HTTP server. |
43 |
http: |
44 |
|
45 |
# Hosts & ports on which to listen. |
46 |
# |
47 |
# By default, the server listens on 0.0.0.0:80. |
48 |
listen: |
49 |
# Basic HTTP. |
50 |
- |
51 |
# Address on which the server is listening on. |
52 |
# |
53 |
# Sets it to '127.0.0.1' to listen only on the local host. |
54 |
# |
55 |
# Default: '0.0.0.0' (all addresses) |
56 |
#host: '127.0.0.1' |
57 |
|
58 |
# Port on which the server is listening on. |
59 |
# |
60 |
# Default: undefined |
61 |
port: 80 |
62 |
|
63 |
# Instead of `host` and `port` a path to a UNIX socket may be |
64 |
# specified (overrides `host` and `port`). |
65 |
# |
66 |
# Default: undefined |
67 |
#socket: './http.sock' |
68 |
|
69 |
# Basic HTTPS. |
70 |
# - |
71 |
# # The only difference is the presence of the certificate and the |
72 |
# # key. |
73 |
|
74 |
# #host: '127.0.0.1' |
75 |
# port: 443 |
76 |
|
77 |
# # File containing the certificate (PEM format). |
78 |
# # |
79 |
# # Default: undefined |
80 |
# certificate: './certificate.pem' |
81 |
|
82 |
# # File containing the private key (PEM format). |
83 |
# # |
84 |
# # If the key is encrypted, the passphrase will be asked at |
85 |
# # server startup. |
86 |
# # |
87 |
# # Default: undefined |
88 |
# key: './key.pem' |
89 |
|
90 |
# List of files/directories which will be served. |
91 |
mounts: |
92 |
'/': |
93 |
- '/root/xen-orchestra/packages/xo-web/dist' |
94 |
#===================================================================== |
95 |
|
96 |
# Connection to the Redis server. |
97 |
redis: |
98 |
# Syntax: tcp://[db[:password]@]hostname[:port] |
99 |
# |
100 |
# Default: tcp://localhost:6379 |
101 |
#uri: '' |