Giter Site home page Giter Site logo

fugamaru / syno-webdav-keeweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexanderharm/syno-webdav-keeweb

0.0 0.0 0.0 9 KB

Little helper to configure Synology's WebDAV Server to be compatible with KeeWeb

License: MIT License

Shell 100.00%

syno-webdav-keeweb's Introduction

Syno WebDAV KeeWeb

This script enables CORS in Synology's WebDAV Server package (https://www.synology.com/en-global/dsm/packages/WebDAVServer). This is necessary for hosting KeePass (https://keepass.info/) files that you want to use with KeeWeb (https://keeweb.info/).

All credits go to Vincent Lamouroux (@skad). You can find his original posting here keeweb/keeweb#703 (comment).

1. Notes

  • KeeWeb doesn't like self-signed certificates when using HTTPS.
  • The script is able to automatically update itself using git.

2. Installation

2.1 Install WebDAV
  • Install the package WebDAV Server using the Package Center in the WebGUI
2.2 Install Git (optional)
  • install the package Git Server on your Synology NAS, make sure it is running (requires sometimes extra action in Package Center and SSH running)
  • alternatively add SynoCommunity to Package Center and install the Git package (https://synocommunity.com/)
  • you can also use entware-ng (https://github.com/Entware/Entware-ng)
2.3 Install this script (using git)
  • create a shared folder e. g. sysadmin (you want to restrict access to administrators and hide it in the network)
  • connect via ssh to the NAS and execute the following commands
# navigate to the shared folder
cd /volume1/sysadmin
# clone the following repo
git clone https://github.com/FUGAMARU/syno-webdav-keeweb.git
# to enable autoupdate
touch syno-webdav-keeweb/autoupdate
2.3 Install this script (manually)
  • create a shared folder e. g. sysadmin (you want to restrict access to administrators and hide it in the network)
  • copy your synoWebdavKeeweb.sh to sysadmin using e. g. File Station or scp
  • make the script executable by connecting via ssh to the NAS and executing the following command
chmod 755 /volume1/sysadmin/synoWebdavKeeweb.sh

3. Setup

  • configure the WebDAV Server, e. g. enable HTTPS and set a non-standard port

  • create a task in the Task Scheduler via WebGUI

# Type
Scheduled task > User-defined script

# General
Task:    SynoWebdavKeepass
User:    root
Enabled: yes

# Schedule
Run on the following days: Daily
First run time:            00:00
Frequency:                 Every 1 hour(s)
Last run time:			   23:00

# Task Settings
User-defined script: /volume1/sysadmin/syno-webdav-keeweb/synoWebdavKeeweb.sh

syno-webdav-keeweb's People

Contributors

alexanderharm avatar fugamaru avatar drikusroor avatar felixls avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.