Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / etc / sunstone-server.conf @ b9b272f0

History | View | Annotate | Download (6.38 KB)

1
# -------------------------------------------------------------------------- #
2
# Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                #
3
#                                                                            #
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
5
# not use this file except in compliance with the License. You may obtain    #
6
# a copy of the License at                                                   #
7
#                                                                            #
8
# http://www.apache.org/licenses/LICENSE-2.0                                 #
9
#                                                                            #
10
# Unless required by applicable law or agreed to in writing, software        #
11
# distributed under the License is distributed on an "AS IS" BASIS,          #
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13
# See the License for the specific language governing permissions and        #
14
# limitations under the License.                                             #
15
#--------------------------------------------------------------------------- #
16

    
17
################################################################################
18
# Server Configuration
19
################################################################################
20

    
21
# Directory to store temp files when uploading images
22
#
23
:tmpdir: /var/tmp
24

    
25
# OpenNebula sever contact information
26
#
27
:one_xmlrpc: http://localhost:2633/RPC2
28

    
29
# Server Configuration
30
#
31
:host: 0.0.0.0
32
:port: 9869
33

    
34
# Place where to store sessions, this value can be memory, memcache or memcache-dalli
35
# Use memcache when starting multiple server processes, for example,
36
# with passenger
37
#
38
# NOTE. memcache needs a separate memcached server to be configured. Refer
39
# to memcached documentation to configure the server.
40
:sessions: memory
41

    
42
# Memcache configuration
43
:memcache_host: localhost
44
:memcache_port: 11211
45
:memcache_namespace: opennebula.sunstone
46

    
47
# Excution environment for Sunstone
48
#   dev, Instead of pulling the minified js all the files will be pulled (app/main.js)
49
#     Check the Building from Source guide in the docs, for details on how to run
50
#     Sunstone in development
51
#   prod, the minified js will be used (dist/main.js)
52
:env: 'prod'
53

    
54
# Maximum allowed size of uploaded images (in bytes). Leave commented for
55
# unlimited size
56
# :max_upload_file_size: 10737418240 # 10 GiB
57

    
58
################################################################################
59
# Log
60
################################################################################
61

    
62
# Log debug level
63
#   0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
64
#
65
:debug_level: 3
66

    
67
################################################################################
68
# Proxy
69
################################################################################
70

    
71
# Enable an http proxy for the support portal and to download MarketPlaceApps
72
# from the MarketPlace to the user's desktop.
73
# :proxy: http://<hostname>:<port>
74

    
75
################################################################################
76
# Auth
77
################################################################################
78

    
79
# Authentication driver for incoming requests
80
#   sunstone: for OpenNebula's user-password scheme
81
#   x509: for x509 certificates based authentication
82
#   opennebula: the authentication will be done by the opennebula core using the
83
#     driver defined for the user
84
#   remote: performs the login based on a Kerberos REMOTE_USER
85
#
86
:auth: opennebula
87

    
88
# Authentication driver to communicate with OpenNebula core
89
#   cipher, for symmetric cipher encryption of tokens
90
#   x509, for x509 certificate encryption of tokens
91
#
92
:core_auth: cipher
93

    
94
################################################################################
95
# Check Upgrades
96
################################################################################
97

    
98
# To check for the latest release. Comment this value if you don't want to check
99
# this.
100
:remote_version: http://downloads.opennebula.org/latest
101

    
102
################################################################################
103
# UI Settings
104
################################################################################
105
# :vnc_proxy_
106
#   port:           port where the vnc proxy will listen
107
#   support_wss:    no | yes | only. For yes and only, provide path to
108
#                   cert and key. "yes" means both ws and wss connections will be
109
#                   supported.
110
#   vnc_proxy_cert: Certificate to encrypt wss connections.
111
#   vnc_proxy_key:  Key for wss connections. Only necessary if not included in cert.
112
#   vnc_proxy_ipv6: Enable ipv6 support for novnc-server
113
#
114
# :vnc_request_password: true | false
115
#   Request VNC password for external windows, by default it will not be requested
116
#
117
:vnc_proxy_port: 29876
118
:vnc_proxy_support_wss: no
119
:vnc_proxy_cert:
120
:vnc_proxy_key:
121
:vnc_proxy_ipv6: false
122
:vnc_request_password: false
123

    
124
# Login Session Length in seconds, defaults to 1 hour.
125
#:session_expire_time: 3600
126

    
127
# Default language setting
128
:lang: en_US
129

    
130
# Default table order
131
:table_order: desc
132

    
133
################################################################################
134
# Marketplace
135
################################################################################
136

    
137
# Marketplace username and password
138
# If no credentials are provided, an anonymous client will be used
139
#
140
#:marketplace_username:
141
#:marketplace_password:
142

    
143
# Marketplace endpoint
144
# The url should not include the /appliance path since it will be automatically
145
# included
146
#
147
:marketplace_url: http://marketplace.opennebula.systems/
148

    
149
################################################################################
150
# OneFlow
151
################################################################################
152

    
153
# OneFlow endpoint
154
#
155
:oneflow_server: http://localhost:2474/
156

    
157
################################################################################
158
# Routes
159
################################################################################
160

    
161
# Array of files containing ruby code to extend the default sunstone-server
162
#   routes. These files must be placed inside the custom_routes directory
163
#   in the sunstone root dir (/usr/lib/one/sunstone/routes)
164
#
165
# Example:
166
#   $ ls /usr/lib/one/sunstone/routes
167
#   custom.rb  other.rb
168
#
169
#   $ cat /usr/lib/one/sunstone/routes/example.rb
170
#   get '/custom' do
171
#       body "It works"
172
#   end
173
#
174
#:routes:
175
#    - custom
176
#    - other
177

    
178
:routes:
179
    - oneflow
180
    - vcenter
181
    - support