You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+177-8Lines changed: 177 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,26 +5,195 @@ A simple, fully translatable admin interface and frontend for `sabre/dav` based
5
5
6
6
# Requirements
7
7
8
-
PHP > 7.1.3
8
+
PHP > 7.1.3, MySQL (or MariaDB).
9
9
10
10
# Installation
11
11
12
-
1. Retrieve the dependencies
12
+
0. Clone this repository
13
13
14
-
composer install
14
+
1. Retrieve the dependencies:
15
15
16
-
2. Migrate the database
16
+
```
17
+
composer install
18
+
```
17
19
18
-
bin/console migrate
20
+
2. At least put the correct credentials to your database in your `.env.local` file so you can easily migrate your database.
21
+
22
+
3. Migrate the database:
23
+
24
+
```
25
+
bin/console migrate
26
+
```
27
+
28
+
**Davis** can be used with a pre-existing MySQL database (_for instance, one previously managed by Baïkal_). The only missing table would be the `migrations` table, that you can recreate automatically when running the migrations.
29
+
30
+
> The migrations are not _exactly_ equivalent to those of Baïkal, and allow for a bit more room in columns.
31
+
32
+
## Configuration
33
+
34
+
Create your own `.env.local` file to change the necessary variables, if you plan on using `symfony/dotenv`.
35
+
36
+
> If your installation is behind a web server like Apache or Nginx, you can setup the env vars directly in your Apache or Nginx configuration (see below). Skip this part in this case.
37
+
38
+
a. The database url (_you should already have it configured since you migrated the database previously_)
More examples and information [here](https://symfony.com/doc/current/setup/web_server_configuration.html).
151
+
152
+
## Well-known redirections for CalDAV and CardDAV
153
+
154
+
Web-based protocols like CalDAV and CardDAV can be found using a discovery service. Some clients require that you implement a path prefix to point to the correct location for your service. See [here](https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers) for more info.
155
+
156
+
If you use Apache as your webserver, you can enable the redirections with:
157
+
158
+
RewriteEngine On
159
+
RewriteRule ^\.well-known/carddav /dav/ [R=301,L]
160
+
RewriteRule ^\.well-known/caldav /dav/ [R=301,L]
161
+
162
+
Make sure that `mod_rewrite` is enabled on your installation beforehand.
163
+
164
+
If you use Nginx, you can add this to your configuration:
165
+
166
+
location / {
167
+
rewrite ^/.well-known/carddav /dav/ redirect;
168
+
rewrite ^/.well-known/caldav /dav/ redirect;
169
+
}
170
+
171
+
# Dockerized installation
172
+
173
+
A Dockerfile is available for you to compile the container.
174
+
175
+
We use `ssmtp` as a delivery service for a configured mailhost instead of using local delivery (_that should work out of the box_). You can ignore this or remove it from the Dockerfile if you want.
176
+
177
+
A `docker-compose.yml` file is also included as a minimal example setup.
19
178
20
179
# Development
21
180
22
-
If you change or add translations, you need to update the `messages` XLIFF file with :
181
+
You can spin off a local PHP webserver with:
182
+
183
+
php -S localhost:8000 -t public
184
+
185
+
If you change or add translations, you need to update the `messages` XLIFF file with:
23
186
24
187
bin/console translation:update en --force --domain=messages+intl-icu
25
188
26
189
# Libraries used
27
190
28
-
- Bootstrap 4 (Licence : MIT)
191
+
- Symfony 4 (Licence : MIT)
192
+
- Sabre-io/dav (Licence : BSD-3-Clause)
193
+
- Bootstrap 4 (Licence : MIT)
194
+
195
+
_This project does not use any pipeline for the assets since the frontend side is relatively simple, and based on Bootstrap._
196
+
197
+
# Licence
29
198
30
-
This project does not use any pipeline for the assets since the frontend side is relatively simple, and based on Bootstrap.
199
+
This project is release under the MIT licence. See the LICENCE file
0 commit comments