Browse Source

Mise à jour du fichier de conf sunstone-server

Prise en compte des évolutions entre 5.0.1 et 5.0.2

Ajout de la configuration pour utiliser memecached pour stocker les
sessions plutôt que la RAM, de cette manière on limite l'effet du
reconfigure sur les utilisateurs finaux

ref #17017 @20m
Philippe Caseiro 2 years ago
parent
commit
cf2d08a0c6
1 changed files with 48 additions and 17 deletions
  1. 48
    17
      tmpl/sunstone-server.conf

+ 48
- 17
tmpl/sunstone-server.conf View File

@@ -1,5 +1,5 @@
1 1
 # -------------------------------------------------------------------------- #
2
-# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs        #
2
+# Copyright 2002-2016, OpenNebula Project, OpenNebula Systems                #
3 3
 #                                                                            #
4 4
 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
5 5
 # not use this file except in compliance with the License. You may obtain    #
@@ -28,23 +28,29 @@
28 28
 
29 29
 # Server Configuration
30 30
 #
31
-#:host: 127.0.0.1
32 31
 :host: %%ip_sunstone
33 32
 :port: %%port_sunstone
34 33
 
35
-# Place where to store sessions, this value can be memory or memcache
34
+# Place where to store sessions, this value can be memory, memcache or memcache-dalli
36 35
 # Use memcache when starting multiple server processes, for example,
37 36
 # with passenger
38 37
 #
39 38
 # NOTE. memcache needs a separate memcached server to be configured. Refer
40 39
 # to memcached documentation to configure the server.
41
-:sessions: memory
40
+:sessions: memcache-dalli
42 41
 
43 42
 # Memcache configuration
44 43
 :memcache_host: localhost
45 44
 :memcache_port: 11211
46 45
 :memcache_namespace: opennebula.sunstone
47 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
+
48 54
 ################################################################################
49 55
 # Log
50 56
 ################################################################################
@@ -55,21 +61,25 @@
55 61
 :debug_level: 3
56 62
 
57 63
 ################################################################################
64
+# Proxy
65
+################################################################################
66
+
67
+# Enable an http proxy for the support portal and to download MarketPlaceApps
68
+# from the MarketPlace to the user's desktop.
69
+# :proxy: http://<hostname>:<port>
70
+
71
+################################################################################
58 72
 # Auth
59 73
 ################################################################################
60 74
 
61 75
 # Authentication driver for incomming requests
62
-#   sunstone, for OpenNebula's user-password scheme
63
-#   x509, for x509 certificates based authentication
64
-#   opennebula, the authentication will be done by the opennebula core using the
65
-#   driver defined for the user
76
+#   sunstone: for OpenNebula's user-password scheme
77
+#   x509: for x509 certificates based authentication
78
+#   opennebula: the authentication will be done by the opennebula core using the
79
+#     driver defined for the user
80
+#   remote: performs the login based on a Kerberos REMOTE_USER
66 81
 #
67
-#:auth: sunstone
68
-%if %%getVar('sunstone_auth_modes', 'sunstone') == 'ldap'
69 82
 :auth: opennebula
70
-%else
71
-:auth: sunstone
72
-%end if
73 83
 
74 84
 # Authentication driver to communicate with OpenNebula core
75 85
 #   cipher, for symmetric cipher encryption of tokens
@@ -77,12 +87,21 @@
77 87
 #
78 88
 :core_auth: cipher
79 89
 
80
-# For LDAP auth. Encode credentials sent to OpenNebula. Turns espaces into %20.
90
+# For external authentication drivers, such as LDAP. Performs a URL encoding
91
+# on the credentials sent to OpenNebula, e.g. secret%20password
81 92
 # This only works with "opennebula" auth.
82 93
 #
83 94
 #:encode_user_password: true
84 95
 
85 96
 ################################################################################
97
+# Check Upgrades
98
+################################################################################
99
+
100
+# To check for the latest release. Comment this value if you don't want to check
101
+# this.
102
+:remote_version: http://downloads.opennebula.org/latest
103
+
104
+################################################################################
86 105
 # UI Settings
87 106
 ################################################################################
88 107
 # :vnc_proxy_
@@ -93,11 +112,16 @@
93 112
 #   vnc_proxy_cert: Certificate to encrypt wss connections.
94 113
 #   vnc_proxy_key:  Key for wss connections. Only necessary if not included in cert.
95 114
 #   vnc_proxy_ipv6: Enable ipv6 support for novnc-server
115
+#
116
+# :vnc_request_password: true | false
117
+#   Request VNC password for external windows, by default it will not be requested
118
+#
96 119
 :vnc_proxy_port: %%vnc_proxy_port_sunstone
97 120
 :vnc_proxy_support_wss: yes
98 121
 :vnc_proxy_cert: %%server_cert
99 122
 :vnc_proxy_key: %%server_key
100 123
 :vnc_proxy_ipv6: false
124
+:vnc_request_password: false
101 125
 
102 126
 
103 127
 # Default language setting
@@ -117,11 +141,16 @@
117 141
 #:marketplace_password:
118 142
 
119 143
 # Marketplace endpoint
144
+# The url should not include the /appliance path since it will be automatically
145
+# included
120 146
 #
121 147
 %if %%getVar('activer_market_place','non') == 'oui'
122 148
 :marketplace_url: %%market_place_url
149
+%else
150
+:marketplace_url: http://marketplace.opennebula.systems/
123 151
 %end if
124 152
 
153
+
125 154
 %if %%getVar('activer_oneflow', 'non') == 'oui'
126 155
 ################################################################################
127 156
 # OneFlow
@@ -129,7 +158,7 @@
129 158
 
130 159
 # OneFlow endpoint
131 160
 #
132
-:oneflow_server: http://%%getVar('ip_oneflow','172.0.0.1'):%%getVar('port_oneflow', '2474')/
161
+:oneflow_server: http://%%getVar('ip_oneflow','172.0.0.1'):%%getVar('port_oneflow','2474')/
133 162
 %end if
134 163
 
135 164
 ################################################################################
@@ -157,6 +186,8 @@
157 186
 %if %%getVar('activer_oneflow', 'non') == 'oui'
158 187
     - oneflow
159 188
 %end if
160
-%if %%getVar('activer_market_views', 'non') == 'oui'
189
+%if %%getVar('activer_market_views', 'non') == 'oui
161 190
     - appmarket
162
-%end if
191
+%end if'
192
+    - vcenter
193
+    - support