diff options
author | Mike Mazur | 2009-02-16 02:27:34 +0000 |
---|---|---|
committer | Mike Mazur | 2009-02-16 02:27:34 +0000 |
commit | 529dd66ed01f598696ef8d20b465b911931d6fe8 (patch) | |
tree | 5bde49aaa0be88479d118b09c465af13538f1139 /bin/AssetInventoryServer.ini.example | |
parent | - asset server functionality works with OpenSim's HttpServer (diff) | |
download | opensim-SC_OLD-529dd66ed01f598696ef8d20b465b911931d6fe8.zip opensim-SC_OLD-529dd66ed01f598696ef8d20b465b911931d6fe8.tar.gz opensim-SC_OLD-529dd66ed01f598696ef8d20b465b911931d6fe8.tar.bz2 opensim-SC_OLD-529dd66ed01f598696ef8d20b465b911931d6fe8.tar.xz |
- remove dependency on ExtensionLoader.dll (DBConnString.cs can go)
- bring config system in line with other servers
- add new plugin filter class which filters on ID
- update AssetInventoryServer.ini file
Diffstat (limited to 'bin/AssetInventoryServer.ini.example')
-rw-r--r-- | bin/AssetInventoryServer.ini.example | 260 |
1 files changed, 107 insertions, 153 deletions
diff --git a/bin/AssetInventoryServer.ini.example b/bin/AssetInventoryServer.ini.example index f346624..503870e 100644 --- a/bin/AssetInventoryServer.ini.example +++ b/bin/AssetInventoryServer.ini.example | |||
@@ -1,153 +1,107 @@ | |||
1 | [Config] | 1 | ;[Config] |
2 | 2 | ||
3 | ; The port number for the asset server to listen on. If a valid SSL certificate | 3 | ; The port number for the asset server to listen on. |
4 | ; file is given for SSLCertFile, the HTTPS protocol will be used. Otherwise, the | 4 | listen_port = 8003 |
5 | ; HTTP protocol is used. | 5 | |
6 | ListenPort = 8003 | 6 | ;[Extensions] |
7 | 7 | ||
8 | ; An SSL certificate file for the server. If a valid raw certificate or PKCS#12 | 8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
9 | ; file is given the server will run in HTTPS mode. | 9 | ; Asset Storage Provider |
10 | ;SSLCertFile = server.p12 | 10 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
11 | 11 | ||
12 | [Extensions] | 12 | ; Simple storage is a very basic storage system for the purposes of illustrating |
13 | 13 | ; a storage backend example. The assets are stored in SimpleAssets/ and | |
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 14 | ; TempAssets/ (which is deleted when the server shuts down). Metadata is |
15 | ; Storage Providers | 15 | ; generated for all of the files at startup and when new assets are uploaded. |
16 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 16 | ;asset_storage_provider = SimpleAssetStorage |
17 | 17 | ||
18 | ; Simple storage is a very basic storage system for the purposes of illustrating | 18 | ; OpenSimMySQL storage connects to a MySQL server that has an assets table created |
19 | ; a storage backend example. The assets are stored in SimpleAssets/ and | 19 | ; by OpenSim. Open the AssetServer_Config.xml file from OpenSim and use the |
20 | ; TempAssets/ (which is deleted when the server shuts down). Metadata is | 20 | ; database connection string for the database_connect option in the MySQL section |
21 | ; generated for all of the files at startup and when new assets are uploaded. | 21 | ; below. This backend combined with the OpenSimFrontend will allow the asset |
22 | ;SimpleStorage | 22 | ; server to be used as a drop-in replacement for OpenSim.Grid.AssetServer.exe, |
23 | 23 | ; while also allowing other frontends to run. | |
24 | ; OpenSimMySQL storage connects to a MySQL server that has an assets table created | 24 | asset_storage_provider = OpenSimAssetStorage |
25 | ; by OpenSim. Open the AssetServer_Config.xml file from OpenSim and use the | 25 | |
26 | ; database connection string for the database_connect option in the MySQL section | 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
27 | ; below. This backend combined with the OpenSimFrontend will allow the asset | 27 | ; Inventory Storage Provider |
28 | ; server to be used as a drop-in replacement for OpenSim.Grid.AssetServer.exe, | 28 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
29 | ; while also allowing other frontends to run. | 29 | |
30 | OpenSimMySQLStorage | 30 | ; Simple inventory is a very basic inventory storage system for the purposes of |
31 | 31 | ; illustrating an inventory backend example. The inventory is stored in | |
32 | ; Uses Amazon.com's Simple Storage Service (http://aws.amazon.com/s3/) to store | 32 | ; SimpleInventory/ by creating a folder for each agent that contains all of the |
33 | ; asset data and metadata. This backend does not handle any data requests, as the | 33 | ; inventory items and folders serialized as XML files. |
34 | ; data is stored remotely and metadata replies will contain the amazon.com URL | 34 | ;inventory_asset_provider = SimpleInventoryStorage |
35 | ; holding the actual asset data. Your Access Key ID and Secret Access Key must be | 35 | |
36 | ; set in the [Amazon] section below for this backend to function. If | 36 | ; OpenSimMySQL inventory connects to a MySQL server that has an inventory table |
37 | ; UseCloudFront is true and your Amazon account has CloudFront enabled, | 37 | ; created by OpenSim. If the OpenSimMySQLStorage backend is also being used, the |
38 | ; CloudFront URLs will be returned in metadata instead of normal S3 URLs. | 38 | ; inventory and asset tables must be stored in the same database. The |
39 | ;AmazonS3Storage | 39 | ; database_connect string in the MySQL section below is used to connect to the |
40 | 40 | ; database. This backend combined with the OpenSimInventoryFrontend will allow | |
41 | ; Uses memcached (http://www.danga.com/memcached/) as a caching layer on top of | 41 | ; the server to be used as a drop-in replacement for |
42 | ; another storage backend. If you use this, make sure you enable another storage | 42 | ; OpenSim.Grid.InventoryServer.exe, while also allowing other frontends to run. |
43 | ; provider as the actual backend, and that the MemcacheStorage line appears in | 43 | inventory_asset_provider = OpenSimInventoryStorage |
44 | ; this config file after the other storage provider. | 44 | |
45 | ;MemcachedStorage | 45 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
46 | 46 | ; Authentication Provider | |
47 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 47 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
48 | ; Inventory Providers | 48 | |
49 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 49 | ; NullAuthentication does nothing. |
50 | 50 | authentication_provider = NullAuthentication | |
51 | ; Simple inventory is a very basic inventory storage system for the purposes of | 51 | |
52 | ; illustrating an inventory backend example. The inventory is stored in | 52 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
53 | ; SimpleInventory/ by creating a folder for each agent that contains all of the | 53 | ; Authorization Provider |
54 | ; inventory items and folders serialized as XML files. | 54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
55 | ;SimpleInventory | 55 | |
56 | 56 | ; Authorize all is a dummy authorization module that allows all requests for | |
57 | ; OpenSimMySQL inventory connects to a MySQL server that has an inventory table | 57 | ; metadata, data, and asset creation. Use this extension if your primary |
58 | ; created by OpenSim. If the OpenSimMySQLStorage backend is also being used, the | 58 | ; storage provider or front-end interface does not support authentication. |
59 | ; inventory and asset tables must be stored in the same database. The | 59 | authroization_provider = AuthorizeAll |
60 | ; database_connect string in the MySQL section below is used to connect to the | 60 | |
61 | ; database. This backend combined with the OpenSimInventoryFrontend will allow | 61 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
62 | ; the server to be used as a drop-in replacement for | 62 | ; Metrics Provider |
63 | ; OpenSim.Grid.InventoryServer.exe, while also allowing other frontends to run. | 63 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
64 | OpenSimMySQLInventory | 64 | |
65 | 65 | ; NullMetrics contains empty logging functions. Use this metrics provider if | |
66 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 66 | ; you want to disable metrics collection and reporting. |
67 | ; Authentication Providers | 67 | metrics_provider = NullMetrics |
68 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 68 | |
69 | 69 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
70 | ; OpenID provides a direct method of authenticating with the asset server. Users | 70 | ; Frontends |
71 | ; can provide credentials and receive a session token directly from the asset | 71 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
72 | ; server. The OpenIdAuth module provides a browser-based form login and an | 72 | |
73 | ; XML-based API, both accessible through the URL /authenticate. | 73 | ; Specify multiple frontends as a comma-separated list. |
74 | ;OpenIdAuth | 74 | |
75 | NullAuthentication | 75 | ; ReferenceFrontend is a simple frontend that provides three basic REST |
76 | 76 | ; methods. /assetid/metadata will return the metadata for an asset (currently in | |
77 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 77 | ; LLSD format, that will change soon). /assetid/data will return the raw asset |
78 | ; Authorization Providers | 78 | ; data with proper Content-Type and Content-Disposition headers to make |
79 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 79 | ; downloading assets in a web browser easy. |
80 | 80 | ||
81 | ; Authorize all is a dummy authorization module that allows all requests for | 81 | ; OpenSimAssetFrontend is a frontend that matches the existing OpenSim XML for |
82 | ; metadata, data, and asset creation. Use this extension if your primary | 82 | ; transferring grid assets. This will allow the asset server to function as a |
83 | ; storage provider or front-end interface does not support authentication. | 83 | ; drop-in replacement for OpenSim.Grid.AssetServer.exe, and can be combined with |
84 | AuthorizeAll | 84 | ; OpenSimAssetStorage to provide an identical replacement, or any other asset |
85 | 85 | ; storage backend. | |
86 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 86 | |
87 | ; Metrics Providers | 87 | ; OpenSimInventoryFrontend is a frontend that matches the existing OpenSim XML |
88 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 88 | ; for transferring inventory. This will allow the inventory server to function as |
89 | 89 | ; a drop-in replacement for OpenSim.Grid.InventoryServer.exe, and can be combined | |
90 | ; NullMetrics contains empty logging functions. Use this metrics provider if | 90 | ; with OpenSimInventoryStorage to provide an identical replacement, or any other |
91 | ; you want to disable metrics collection and reporting. | 91 | ; inventory storage backend. |
92 | NullMetrics | 92 | ; *** NOTE: Inventory is not currently implemented. |
93 | 93 | ||
94 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 94 | ; BrowseFrontend is an HTML interface for browsing through the asset store. |
95 | ; Frontends | 95 | |
96 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 96 | frontends = ReferenceFrontend,OpenSimAssetFrontend,OpenSimInventoryFrontend,BrowseFrontend |
97 | 97 | ||
98 | ; A simple frontend that provides three basic REST methods. /assetid/metadata | 98 | ;[MySQL] |
99 | ; will return the metadata for an asset (currently in LLSD format, that will | 99 | |
100 | ; change soon). /assetid/data will return the raw asset data with proper | 100 | ; Database connection string used by the OpenSim MySQL backend. If these lines |
101 | ; Content-Type and Content-Disposition headers to make downloading assets in a | 101 | ; are commented out or missing, the server will look for an |
102 | ; web browser easy. | 102 | ; AssetServer_Config.xml or InventoryServer_Config.xml file in the current |
103 | ReferenceFrontend | 103 | ; working directory. These files are generated by OpenSim.Grid.AssetServer.exe |
104 | 104 | ; and OpenSim.Grid.InventoryServer.exe, respectively, and can be used without | |
105 | ; A frontend that matches the existing OpenSim XML for transferring grid | 105 | ; modification. |
106 | ; assets. This will allow the asset server to function as a drop-in replacement | 106 | asset_database_connect = "Server=localhost; Database=opensim; User=changeme; Password=changeme;" |
107 | ; for OpenSim.Grid.AssetServer.exe, and can be combined with OpenSimMySQLStorage | 107 | inventory_database_connect = "Server=localhost; Database=opensim; User=changeme; Password=changeme;" |
108 | ; to provide an identical replacement or any other storage backend. | ||
109 | OpenSimFrontend | ||
110 | |||
111 | ; A frontend that matches the existing OpenSim XML for handling inventory | ||
112 | ; transactions. This will allow the asset server to function as a drop-in | ||
113 | ; replacement for OpenSim.Grid.InventoryServer.exe, and can be combined with | ||
114 | ; OpenSimMySQLInventory to provide an identical replacement or any other | ||
115 | ; inventory backend. | ||
116 | OpenSimInventoryFrontend | ||
117 | |||
118 | ; An HTML interface for browsing through the asset store | ||
119 | BrowseFrontend | ||
120 | |||
121 | [MySQL] | ||
122 | |||
123 | ; Database connection string used by the OpenSim MySQL backend. If this line is | ||
124 | ; commented out or missing, the server will look for an AssetServer_Config.xml | ||
125 | ; in the current working directory. This file is generated by | ||
126 | ; OpenSim.Grid.AssetServer.exe and can be used without modification. | ||
127 | database_connect = "Server=localhost; Database=opensim; User=changeme; Password=changeme;" | ||
128 | |||
129 | [Amazon] | ||
130 | |||
131 | ; Get these values by logging in to your Amazon S3 account and going to | ||
132 | ; https://aws-portal.amazon.com/gp/aws/developer/account/index.html?ie=UTF8&action=access-key | ||
133 | AccessKeyID = xxxxxxxxxxxxxxxxxxxx | ||
134 | SecretAccessKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
135 | |||
136 | ; The bucket, or namespace, in your Amazon S3 account for storing assets in. | ||
137 | ; Bucket names on S3 are global identifiers, and must be unique. Think up | ||
138 | ; something clever or random. | ||
139 | BucketName = changeme | ||
140 | |||
141 | ; Amazon CloudFront is a Content Distribution Network for S3 stores. If this is | ||
142 | ; set to true, AmazonS3Storage will try to locate the first available CloudFront | ||
143 | ; distribution tied to the active S3 bucket. If no usable distribution is found, | ||
144 | ; a new one will be created. | ||
145 | UseCloudFront = true | ||
146 | |||
147 | [Memcached] | ||
148 | |||
149 | ; A comma-separated list of the memcached servers that make up your caching | ||
150 | ; pool. Each server is a hostname or IP address, optionally followed by a | ||
151 | ; colon and port number if the server is not listening on the default 11211 | ||
152 | ; port. | ||
153 | Servers = localhost | ||