-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4427 from owncloud/oc10-app
- Loading branch information
Showing
8 changed files
with
146 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<info> | ||
<id>oc-web</id> | ||
<name>ownCloud Web</name> | ||
<summary>Next generation user interface for ownCloud</summary> | ||
<description> | ||
Next generation user interface for ownCloud based on vue.js. | ||
This is an early release with known limitations and missing features. | ||
|
||
Please, report any findings in https://github.com/owncloud/phoenix/issues | ||
</description> | ||
<licence>AGPLv3</licence> | ||
<author>ownCloud</author> | ||
<version>1.0.0</version> | ||
<category>tools</category> | ||
<dependencies> | ||
<owncloud min-version="10.6" max-version="10" /> | ||
</dependencies> | ||
<screenshot>https://user-images.githubusercontent.com/25989331/101360859-80185a80-389e-11eb-9b96-185aee559d3f.png</screenshot> | ||
</info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Add oc10 app build artifact | ||
|
||
We've added a build step to the release process which creates an ownCloud Web bundle which can be deployed as an app to ownCloud 10. | ||
|
||
https://github.com/owncloud/phoenix/pull/4427 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Deployments" | ||
date: 2018-05-02T00:00:00+00:00 | ||
weight: 55 | ||
geekdocRepo: https://github.com/owncloud/phoenix | ||
geekdocEditPath: edit/master/docs/deployments | ||
geekdocFilePath: _index.md | ||
--- | ||
|
||
Showcases of different scenarios of deploying ownCloud Web. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
title: "Deploy as an app in ownCloud 10" | ||
date: 2018-05-02T00:00:00+00:00 | ||
weight: 1 | ||
geekdocRepo: https://github.com/owncloud/phoenix | ||
geekdocEditPath: edit/master/docs/deployments | ||
geekdocFilePath: oc10-app.md | ||
--- | ||
|
||
{{< toc >}} | ||
|
||
One of the build artifacts of the ownCloud Web is a ownCloud 10 app bundle. | ||
|
||
## Prerequisites | ||
- Running [ownCloud 10 server](https://owncloud.com/download-server/) with version 10.6 | ||
- Installed [oauth2 app](https://marketplace.owncloud.com/apps/oauth2) | ||
|
||
## Deploying ownCloud Web | ||
To download the ownCloud Web, go to https://github.com/owncloud/phoenix/releases and pick your desired version. In the release, you will find a file called `phoenix-app.tar.gz`. | ||
Download this file and move it into the `apps` folder in your ownCloud 10 server. | ||
|
||
{{< hint info >}} | ||
The app bundle is provided only from version 1.0.0 | ||
{{< /hint >}} | ||
|
||
To unpack the app, run the following command: | ||
```bash | ||
tar -xzf phoenix.tar.gz && rm -Rf phoenix-app.tar.gz | ||
``` | ||
|
||
Next step is to enable the app: | ||
```bash | ||
cd ../ && occ apps:enable phoenix | ||
``` | ||
|
||
## Configure oauth2 | ||
In the `Admin` of ownCloud 10, head into `User Authentication` and add a new client with arbitrary name and redirection URL `https://<your-owncloud-server>/apps/phoenix/oidc-callback.html`. | ||
|
||
## Configure ownCloud 10 | ||
To display ownCloud Web in the app switcher and to redirect all private and public links to the new WebUI, add the following config into `config/config.php`: | ||
|
||
```php | ||
'phoenix.baseUrl' => 'https://<your-owncloud-server>/apps/phoenix', | ||
``` | ||
|
||
## Configure ownCloud Web | ||
There are a few config values which need to be set in order for ownCloud Web to work correctly. Navigate into `apps/phoenix` and adjust `config.json` according to the following example: | ||
|
||
```json | ||
{ | ||
"server" : "https://<your-owncloud-server>", // ownCloud 10 server address | ||
"theme": "owncloud", // Theme to be used in ownCloud Web pointing to a json file inside of `themes` folder | ||
"auth": { | ||
"clientId": "<client-id-from-oauth2>", // Client ID received when adding ownCloud Web in the `User Authentication` section in `Admin` | ||
"url": "https://<your-owncloud-server>/index.php/apps/oauth2/api/v1/token", | ||
"authUrl": "https://<your-owncloud-server>/index.php/apps/oauth2/authorize" | ||
}, | ||
"apps" : [ // List of extensions to be loaded | ||
"files" | ||
], | ||
"applications" : [] // Apps to be displayed in the application switcher | ||
} | ||
``` | ||
|
||
## Accessing ownCloud Web | ||
After following all the steps, you should see a new entry in the application switcher called `New Design` which points to the ownCloud web. | ||
|
||
{{< figure src="/phoenix/static/application-switcher-oc10.jpg" >}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.