mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Add web support info to readme
This commit is contained in:
parent
cee9747d1f
commit
b3ca0f6272
1 changed files with 41 additions and 0 deletions
41
README.md
41
README.md
|
@ -3,6 +3,8 @@ Photos (for Nextcloud) is a new gallery app for viewing your photos hosted on Ne
|
|||
|
||||
[<img src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" alt="Google Play" width="160" />](https://play.google.com/store/apps/details?id=com.nkming.nc_photos&referrer=utm_source%3Drepo)
|
||||
|
||||
*\*See [Web Support](#web-support) if you want to try the experimental web app*
|
||||
|
||||
Features:
|
||||
- Sign-in to multiple servers
|
||||
- EXIF support (JPEG only for now)
|
||||
|
@ -10,3 +12,42 @@ Features:
|
|||
- and more to come!
|
||||
|
||||
This app does not require any server-side plugins.
|
||||
|
||||
## Web Support
|
||||
Web support is **EXPERIMENTAL** and is provided on a best effort basis. It may be subject to change at any time without notice. Please read carefully the instructions listed below or else the app will likely fail to work.
|
||||
|
||||
### Enable CORS support on Nextcloud server
|
||||
By default your browser will block **all** requests due to the lack of CORS support. To fix it, you can add the following lines to `.htaccess` in your Nextcloud installation directory. This can only be done by admins with remote access rights to the Nextcloud server.
|
||||
```
|
||||
...
|
||||
ModPagespeed Off
|
||||
</IfModule>
|
||||
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
|
||||
|
||||
# Copy from this line
|
||||
RewriteCond %{REQUEST_METHOD} OPTIONS
|
||||
RewriteRule .* / [R=200,L]
|
||||
SetEnvIf Origin "http(s)?://nkming2.gitlab.io$" AccessControlAllowOrigin=$0
|
||||
Header always set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
|
||||
Header always merge Vary Origin
|
||||
Header always set Access-Control-Allow-Methods "*"
|
||||
Header always set Access-Control-Allow-Headers "*"
|
||||
Header always set Access-Control-Allow-Credentials "true"
|
||||
Header always set Access-Control-Max-Age "86400"
|
||||
# up to this line
|
||||
|
||||
ErrorDocument 403 /
|
||||
ErrorDocument 404 /
|
||||
<IfModule mod_rewrite.c>
|
||||
...
|
||||
```
|
||||
|
||||
You may need to reload the server config and clear browser cache afterwards.
|
||||
|
||||
If it's not possible to gain remote access to the server, you can instead disable CORS support in your browser. **WARNING: This is highly discouraged and must only be done with caution**
|
||||
|
||||
### HTTP/HTTPS
|
||||
You are suggested to configure your server to accept HTTPS connections. If that's again, not possible, you must use the HTTP link below as your browser would block all HTTP communications coming from a HTTPS site.
|
||||
|
||||
### Ok, I'm ready
|
||||
Cool. Follow the [https link](https://nkming2.gitlab.io/nc-photos-web) or the [http link](http://nkming2.gitlab.io/nc-photos-web) (use this only if your server doesn't support HTTPS)
|
||||
|
|
Loading…
Reference in a new issue