-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Docker configuration, improve README
- Loading branch information
Cyril
committed
Nov 13, 2019
1 parent
1c8e717
commit c71244f
Showing
6 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
DATABASE_URL=mysql://davis:[email protected]:3306/davis | ||
# For the MariaDB container | ||
MYSQL_ROOT_PASSWORD=notSoSecure | ||
MYSQL_DATABASE=davis | ||
MYSQL_USER=davis_user | ||
MYSQL_PASSWORD=davis_password | ||
|
||
# For Davis | ||
APP_ENV=prod | ||
DATABASE_URL=mysql://davis_user:davis_password@mysql:3306/davis | ||
|
||
ADMIN_LOGIN=admin | ||
ADMIN_PASSWORD=test | ||
ADMIN_PASSWORD=admin | ||
|
||
AUTH_REALM=SabreDAV | ||
|
||
AUTH_METHOD=Basic | ||
AUTH_METHOD=Digest | ||
|
||
CALDAV_ENABLED=true | ||
CARDDAV_ENABLED=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This is a very simple / naive configuration for Davis | ||
upstream docker-davis { | ||
server davis:9000; | ||
} | ||
|
||
server { | ||
listen 80; | ||
access_log off; | ||
|
||
root /var/www/davis/public/; | ||
index index.php; | ||
|
||
rewrite ^/.well-known/caldav /dav redirect; | ||
rewrite ^/.well-known/carddav /dav redirect; | ||
|
||
charset utf-8; | ||
|
||
location ~ /(\.ht) { | ||
deny all; | ||
return 404; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php$is_args$args; | ||
} | ||
|
||
location ~ ^(.+\.php)(.*)$ { | ||
try_files $fastcgi_script_name =404; | ||
include fastcgi_params; | ||
fastcgi_pass docker-davis; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_split_path_info ^(.+\.php)(.*)$; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters