mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
added paths to the config files
This commit is contained in:
@ -11,8 +11,10 @@ You should change `http://documentserver` to your server address in these files:
|
|||||||
* [.Net (C# MVC)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp-mvc) - `web/documentserver-example/csharp-mvc/web.appsettings.config`
|
* [.Net (C# MVC)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp-mvc) - `web/documentserver-example/csharp-mvc/web.appsettings.config`
|
||||||
* [.Net (C#)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp) - `web/documentserver-example/csharp/settings.config`
|
* [.Net (C#)](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/csharp) - `web/documentserver-example/csharp/settings.config`
|
||||||
* [Java](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java) - `web/documentserver-example/java/src/main/resources/settings.properties`
|
* [Java](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java) - `web/documentserver-example/java/src/main/resources/settings.properties`
|
||||||
|
* [Java Spring](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/java-spring) - `web/documentserver-example/java-spring/src/main/resources/application.properties`
|
||||||
* [Node.js](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/nodejs) - `web/documentserver-example/nodejs/config/default.json`
|
* [Node.js](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/nodejs) - `web/documentserver-example/nodejs/config/default.json`
|
||||||
* [PHP](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/php) - `web/documentserver-example/php/config.php`
|
* [PHP](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/php) - `web/documentserver-example/php/config.json`
|
||||||
|
* [Python](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/python) - `web/documentserver-example/python/config.py`
|
||||||
* [Ruby](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/ruby) - `web/documentserver-example/ruby/config/application.rb`
|
* [Ruby](https://github.com/ONLYOFFICE/document-server-integration/tree/master/web/documentserver-example/ruby) - `web/documentserver-example/ruby/config/application.rb`
|
||||||
|
|
||||||
More information on how to use these examples can be found here: [http://api.onlyoffice.com/editors/demopreview](http://api.onlyoffice.com/editors/demopreview "http://api.onlyoffice.com/editors/demopreview")
|
More information on how to use these examples can be found here: [http://api.onlyoffice.com/editors/demopreview](http://api.onlyoffice.com/editors/demopreview "http://api.onlyoffice.com/editors/demopreview")
|
||||||
|
|||||||
@ -14,7 +14,7 @@ See the detailed guide to learn how to install Document Server [for Windows](htt
|
|||||||
|
|
||||||
Download the [.Net (C# MVC) example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
Download the [.Net (C# MVC) example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
||||||
|
|
||||||
To connect the editors to your website, specify the path to the editors installation and the path to the storage folder in the *settings.config* file:
|
To connect the editors to your website, specify the path to the editors installation and the path to the storage folder in the *web.appsettings.config* file:
|
||||||
```
|
```
|
||||||
<add key="storage-path" value=""/>
|
<add key="storage-path" value=""/>
|
||||||
<add key="files.docservice.url.site" value="https://documentserver/" />
|
<add key="files.docservice.url.site" value="https://documentserver/" />
|
||||||
|
|||||||
@ -20,7 +20,7 @@ See the detailed guide to learn how to install Document Server [for Windows](htt
|
|||||||
|
|
||||||
Download the [Java-Spring example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
Download the [Java-Spring example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
||||||
|
|
||||||
To connect the editors to your website, specify the path to the editors installation, server port and the path to the storage folder in the *\src\main\resources\application.properties* file:
|
To connect the editors to your website, specify the path to the editors installation, server port and the path to the storage folder in the *src/main/resources/application.properties* file:
|
||||||
|
|
||||||
```
|
```
|
||||||
files.storage=
|
files.storage=
|
||||||
@ -158,7 +158,7 @@ See the detailed guide to learn how to install Document Server [for Linux](https
|
|||||||
```
|
```
|
||||||
cd document-server-integration/web/documentserver-example/java-spring
|
cd document-server-integration/web/documentserver-example/java-spring
|
||||||
```
|
```
|
||||||
4. Edit the *application.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
4. Edit the *src/main/resources/application.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
||||||
|
|
||||||
```
|
```
|
||||||
nano src/main/resources/application.properties
|
nano src/main/resources/application.properties
|
||||||
@ -244,7 +244,7 @@ See the detailed guide to learn how to install Document Server [for Docker](http
|
|||||||
```
|
```
|
||||||
cd document-server-integration/web/documentserver-example/java-spring
|
cd document-server-integration/web/documentserver-example/java-spring
|
||||||
```
|
```
|
||||||
4. Edit the *application.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed:
|
4. Edit the *src/main/resources/application.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed:
|
||||||
|
|
||||||
```
|
```
|
||||||
nano src/main/resources/application.properties
|
nano src/main/resources/application.properties
|
||||||
|
|||||||
@ -16,7 +16,7 @@ See the detailed guide to learn how to [install Document Server for Windows](htt
|
|||||||
|
|
||||||
Download the [Java example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
Download the [Java example](https://api.onlyoffice.com/editors/demopreview) from our site.
|
||||||
|
|
||||||
To connect the editors to your website, specify the path to the editors installation and the path to the storage folder in the *\src\main\resources\settings.properties* file:
|
To connect the editors to your website, specify the path to the editors installation and the path to the storage folder in the *src/main/resources/settings.properties* file:
|
||||||
|
|
||||||
```
|
```
|
||||||
storage-folder = app_data
|
storage-folder = app_data
|
||||||
@ -158,7 +158,7 @@ See the detailed guide to learn how to [install Document Server for Linux](https
|
|||||||
cd Java\ Example/
|
cd Java\ Example/
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Edit the *settings.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
4. Edit the *src/main/resources/settings.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
||||||
|
|
||||||
```
|
```
|
||||||
nano src/main/resources/settings.properties
|
nano src/main/resources/settings.properties
|
||||||
@ -263,7 +263,7 @@ See the detailed guide to learn how to install Document Server [for Docker](http
|
|||||||
cd Java\ Example/
|
cd Java\ Example/
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Edit the *settings.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed:
|
4. Edit the *src/main/resources/settings.properties* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed:
|
||||||
|
|
||||||
```
|
```
|
||||||
nano src/main/resources/settings.properties
|
nano src/main/resources/settings.properties
|
||||||
|
|||||||
@ -110,7 +110,7 @@ See the detailed guide to learn how to [install Document Server for Linux](https
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Edit the *default.json* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
5. Edit the *config/default.json* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
||||||
|
|
||||||
```
|
```
|
||||||
nano config/default.json
|
nano config/default.json
|
||||||
|
|||||||
@ -44,7 +44,7 @@ See the detailed guide to learn how to install Document Server [for Windows](htt
|
|||||||
bundle install
|
bundle install
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Edit the *application.rb* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
5. Edit the *config/application.rb* configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed.
|
||||||
|
|
||||||
```
|
```
|
||||||
nano config/application.rb
|
nano config/application.rb
|
||||||
|
|||||||
Reference in New Issue
Block a user