forked from tchapi/davis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.yaml
More file actions
91 lines (77 loc) 路 3.68 KB
/
Copy pathservices.yaml
File metadata and controls
91 lines (77 loc) 路 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
default_database_driver: "mysql"
default_admin_auth_bypass: "false"
timezone: '%env(APP_TIMEZONE)%'
public_calendars_enabled: '%env(default:default_public_calendars_enabled:bool:PUBLIC_CALENDARS_ENABLED)%'
default_public_calendars_enabled: "true"
birthday_reminder_offset: '%env(default:default_birthday_reminder_offset:BIRTHDAY_REMINDER_OFFSET)%'
default_birthday_reminder_offset: "PT9H"
caldav_enabled: "%env(bool:CALDAV_ENABLED)%"
carddav_enabled: "%env(bool:CARDDAV_ENABLED)%"
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/*'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
App\Services\Utils:
arguments:
$authRealm: "%env(AUTH_REALM)%"
App\Services\IMAPAuth:
arguments:
$IMAPAuthUrl: "%env(IMAP_AUTH_URL)%"
$IMAPEncryptionMethod: "%env(IMAP_ENCRYPTION_METHOD)%"
$IMAPCertificateValidation: "%env(bool:IMAP_CERTIFICATE_VALIDATION)%"
$autoCreate: "%env(bool:IMAP_AUTH_USER_AUTOCREATE)%"
App\Services\LDAPAuth:
arguments:
$LDAPAuthUrl: "%env(LDAP_AUTH_URL)%"
$LDAPDnPattern: "%env(LDAP_DN_PATTERN)%"
$LDAPMailAttribute: "%env(LDAP_MAIL_ATTRIBUTE)%"
$LDAPCertificateCheckingStrategy: "%env(LDAP_CERTIFICATE_CHECKING_STRATEGY)%"
$autoCreate: "%env(bool:LDAP_AUTH_USER_AUTOCREATE)%"
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller'
tags: ['controller.service_arguments']
App\Controller\DAVController:
arguments:
$publicDir: "%kernel.project_dir%/public"
$calDAVEnabled: "%env(bool:CALDAV_ENABLED)%"
$cardDAVEnabled: "%env(bool:CARDDAV_ENABLED)%"
$webDAVEnabled: "%env(bool:WEBDAV_ENABLED)%"
$publicCalendarsEnabled: "%public_calendars_enabled%"
$inviteAddress: "%env(INVITE_FROM_ADDRESS)%"
$authMethod: "%env(AUTH_METHOD)%"
$authRealm: "%env(AUTH_REALM)%"
$webdavPublicDir: "%env(resolve:WEBDAV_PUBLIC_DIR)%"
$webdavHomesDir: "%env(resolve:WEBDAV_HOMES_DIR)%"
$webdavTmpDir: "%env(resolve:WEBDAV_TMP_DIR)%"
App\Security\LoginFormAuthenticator:
arguments:
$adminLogin: "%env(ADMIN_LOGIN)%"
$adminPassword: "%env(ADMIN_PASSWORD)%"
App\Logging\Monolog\PasswordFilterProcessor:
tags:
- { name: monolog.processor }
App\Services\BirthdayService:
arguments:
$birthdayReminderOffset: "%birthday_reminder_offset%"
App\Security\ApiKeyAuthenticator:
arguments:
$apiKey: "%env(API_KEY)%"
when@dev:
services:
Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler'
when@test:
services:
Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler'