Skip to content

Commit

Permalink
merge manual install into install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Sep 27, 2022
1 parent 6bf0836 commit cdb42de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 7 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Installing this app to your Nextcloud

## Set up /.well-known/openid-configuration
After installing and enabling the app, take the JSON from e.g.
After installing and enabling the appin your Nextcloud instance, take the JSON from e.g.

`https://cloud.pondersource.org/index.php/apps/solid/openid` (depending on your hostname and whether you have the `index.php/` part in there)

and put that into e.g. `/var/www/html/.well-known/openid-configuration` (depending on your webroot being e.g. `/var/www/html`)
Or you should
[edit your .htaccess file](https://github.com/solid/test-suite/blob/665824af763ddd5dd7242cbc8b18faad4ac304e3/servers/nextcloud-server/init.sh#L5)
and then test whether https://your-nextcloud-server.com/.well-known/openid-configuration redirects to https://your-nextcloud-server.com/apps/solid/openid.

Check that it works: `https://cloud.pondersource.org/.well-known/openid-configuration`
Then add this section to your apache site.conf:
Then, take the CORS instructions from site.conf and add them to your own webserver configuration.
In particular, add this section to your apache site.conf:
```
<Directory /var/www/html/.well-known/>
Header always set Access-Control-Allow-Origin: *
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A plugin to make Nextcloud compatible with Solid.

You can download it via the Nextcloud app store: https://apps.nextcloud.com/apps/solid
IMPORTANT: Follow the [additional install instructions!](https://github.com/pdsinterop/solid-nextcloud/blob/main/INSTALL.md).
IMPORTANT: Follow the [install instructions!](https://github.com/pdsinterop/solid-nextcloud/blob/main/INSTALL.md).

## Development install
Clone https://github.com/pdsinterop/test-suites, cd into it, and run:
Expand All @@ -21,11 +21,7 @@ docker exec -u root -it server service apache2 reload
Now visit https://localhost and log in as alice / alice123.

## Manual install
If you enable this app in your Nextcloud instance, you should
[edit your .htaccess file](https://github.com/solid/test-suite/blob/665824af763ddd5dd7242cbc8b18faad4ac304e3/servers/nextcloud-server/init.sh#L5)
and then test whether https://your-nextcloud-server.com/.well-known/openid-configuration redirects to https://your-nextcloud-server.com/apps/solid/openid.

Also, take the CORS instructions from site.conf and add them to your own webserver configuration.
Pleas follow the [install instructions](https://github.com/pdsinterop/solid-nextcloud/blob/main/INSTALL.md).

## Unattended testing
There is a [GitHub Action](https://github.com/pdsinterop/solid-nextcloud/actions/workflows/ci.yml) that runs a [Docker-based test script](https://github.com/pdsinterop/solid-nextcloud/blob/585b968/.github/workflows/ci.yml#L29).
Expand Down

0 comments on commit cdb42de

Please sign in to comment.