New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Synology Cloudstation support #703

Closed
Thargarius opened this Issue Aug 1, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@Thargarius
Copy link

Thargarius commented Aug 1, 2017

Hello !
For use Keeweb on webdav, CORS must be enable.
On Synology devices this is a problem because its disable.
I have achieved with a lot of config to enable this but next week, with the first DSM update CORS was disabled again...
Is it possible to support Synology Cloudstation ?
It would solve the problem easily...
Thank you for your wonderful work guys !

@antelle

This comment has been minimized.

Copy link
Member

antelle commented Aug 1, 2017

Unfortunately, as you're saying CORS cannot be enabled, it's not possible.
As a workaround, you can put keeweb html right on your synology server and open it from there in your browser, it will work.

@skad

This comment has been minimized.

Copy link

skad commented Aug 31, 2017

Hi, just for information and maybe need to go in the wiki
for enable the CORS on webdav server in Synology:

ssh ip-synology
cd /var/packages/WebDAVServer/target/etc/httpd/
sudo vim conf/httpd.conf-webdav add
   LoadModule rewrite_module modules/mod_rewrite.so
sudo vim conf/extra/httpd-ssl.conf-webdav add :
   Header always set Access-Control-Allow-Origin "*"
   Header always set Access-Control-Allow-Headers "origin, content-type, cache-control, accept, authorization, if-match, destination, overwrite"
   Header always set Access-Control-Expose-Headers "ETag"
   Header always set Access-Control-Allow-Methods "GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK"
   Header always set Access-Control-Allow-Credentials "true"

   RewriteEngine on
   RewriteCond %{REQUEST_METHOD} OPTIONS
   RewriteRule ^(.*)$ blank.html [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]

cd /var/packages/WebDAVServer/target/tools
sudo ./start_stop.sh start restart

Keeweb must ask for the password of the kdbx file

Sadly, the next update of the webdav server will break this :/

@alexanderharm

This comment has been minimized.

Copy link

alexanderharm commented May 10, 2018

@skad: Would you mind if I wrap your solution into a little script that you can run periodically on your NAS to have it always configured even after an update?

@skad

This comment has been minimized.

Copy link

skad commented May 11, 2018

Do has you want

@alexanderharm

This comment has been minimized.

Copy link

alexanderharm commented May 12, 2018

I wrapped @skad's solution into a little bash-script which you can run periodically via Synology's task manager. It creates/restores the necessary settings. You can find the repo here:
https://github.com/alexanderharm/syno-webdav-keeweb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment