-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env
102 lines (85 loc) · 3.65 KB
/
.env
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
92
93
94
95
96
97
98
99
100
101
102
# Use by development docker setup.
COMPOSE_PROJECT_NAME=cover-service-imports
COMPOSE_DOMAIN=imports.local.itkdev.dk
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
# https://symfony.com/doc/current/configuration/secrets.html
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=4501ce61ff46591fa2f11036970164b1
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###
###> symfony/messenger ###
MESSENGER_TRANSPORT_DSN=amqp://user:password@rabbit:5672/%2f/messages
MESSENGER_TRANSPORT_DSN_FAILED=doctrine://default?queue_name=failed
###< symfony/messenger ###
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8&charset=utf8mb4"
DATABASE_URL="mysql://db:[email protected]:3306/db"
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=14&charset=utf8"
###< doctrine/doctrine-bundle ###
###> custom ###
# These setting are used to authenticate against the open platform.
OPENPLATFORM_AUTH_ID=myId
OPENPLATFORM_AUTH_SECRET=mySecret
OPENPLATFORM_AUTH_URL=https://auth.dbc.dk/oauth/token
OPENPLATFORM_AUTH_AGENCY=DK-775100
# Configuration used to get information from open search through the open
# platform.
OPENPLATFORM_SEARCH_URL=https://openplatform.dbc.dk/v3/search
OPENPLATFORM_SEARCH_TTL=86400
OPENPLATFORM_SEARCH_PROFILE=coverservice
OPENPLATFORM_SEARCH_LIMIT=100
DATAWELL_VENDOR_AGENCY=775100
DATAWELL_VENDOR_PROFILE=coverservice
DATAWELL_VENDOR_SEARCH_URL=https://opensearch.addi.dk/b3.5_5.2/
DATAWELL_VENDOR_USER=myUserName
DATAWELL_VENDOR_PASSWORD=myPassword
# First service to connect to RabbitMQ sets the queues, so we need this in all services
APP_NO_HITS_TTL=3600000
# Cache pool TTL for single cover no hit check (default 7 days)
APP_NO_HITS_CACHE_SINGLE_COVER_TTL=604800
CLOUDINARY_CLOUD_NAME=myCloudName
CLOUDINARY_API_KEY=MyCloudApiKey
CLOUDINARY_API_SECRET=MyCloudApiSecret
HAS_COVER_ENABLED=false
HAS_COVER_SERVICE_URL=https://ddfhascover-stg.dbc.dk/api/v1/events
###< custom ###
###> redis ###
REDIS_CACHE_PREFIX=DDBCoverImporters
REDIS_CACHE_DSN=redis://redis:6379/11
REDIS_VENDOR_LOCK_DNS=redis://redis:6379/2
###< redis ###
###> metrics ###
METRICS_NAMESPACE=CoverServiceImports
METRICS_HOST=redis
METRICS_PORT=6379
###< metrics
###> INDEXING ###
INDEXING_URL=http://elasticsearch:9200
INDEXING_ALIAS=coverservice
###< INDEXING ###
###> vendor ###
THEMOVIEDATABASE_APIKEY=myApiKey
FORSIDERDK_ENABLED=true
FORSIDERDK_USER=myUser
FORSIDERDK_PASSWORD=myPassword
FORSIDERDK_SUBFOLDERS='["business", "business2", "culture", "economics", "hospitality", "industries", "law", "literature2", "medicine", "politics", "technology"]'
###< vendor ###