-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
167 lines (147 loc) · 6.23 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# 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.
#
# 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
# Main user is 1000 on Linux
UID=1000
PUBLIC_NGINX_PORT=8781
PUBLIC_VARNISH_PORT=8784
PUBLIC_PMA_PORT=8782
PUBLIC_DB_PORT=3306
PUBLIC_REDIS_PORT=6379
PUBLIC_SOLR_PORT=8783
PUBLIC_MAILER_PORT=8725
PUBLIC_SMTP_PORT=1025
# Example Traefik local IP and
TRUSTED_PROXIES=172.18.0.1,172.18.0.2,REMOTE_ADDR,varnish
#TRUSTED_HOSTS=roadiz-skeleton.test,varnish.roadiz-skeleton.test
# Docker networking
DEFAULT_GATEWAY=172.144.0.0
SOLR_HOST=solr
SOLR_PORT=8983
SOLR_CORE_NAME=roadiz
VARNISH_HOST=varnish
VARNISH_DOMAIN=varnish.roadiz-skeleton.test
VARNISH_URL=http://varnish
VARNISH_SIZE=256M
HTTP_CACHE_MAX_AGE=60
HTTP_CACHE_SHARED_MAX_AGE=600
HTTP_CACHE_STALE_WHILE_REVALIDATE=60
# To use with Traefik and your local dev environment
# On linux you can use dnsmasq to redirect all DNS for *.test TLD to your machine.
# Or just copy this line to your /etc/hosts
#
# 127.0.0.1 roadiz-skeleton.test roadiz-skeleton.local varnish.roadiz-skeleton.test varnish.roadiz-skeleton.local pma.roadiz-skeleton.test pma.roadiz-skeleton.local solr.roadiz-skeleton.test solr.roadiz-skeleton.local mail.roadiz-skeleton.test mail.roadiz-skeleton.local
#
#HOSTNAME=`roadiz-skeleton.test`,`roadiz-skeleton.local`
# Default dev env use varnish
HOSTNAME_VARNISH=`roadiz-skeleton.test`,`roadiz-skeleton.local`
# Use traefik path_prefix to host API and NuxtJS on the same domain
PATH_PREFIX=`/rz-admin`,`/files`,`/assets`,`/themes`,`/bundles`,`/api`,`/_wdt`,`/_profiler`,`/css/main-color.css`,`/custom-form`,`/css/login/image`
REDIRECT_REGEX=^(https?)://api\.roadiz\-skeleton\.test/(.*)
## Dollar char may be interpolated or not depending your system
## check docker inspect your container to see final label value
REDIRECT_REPLACEMENT=$1://roadiz\-skeleton\.test/$2
HOSTNAME_PMA=`pma.roadiz-skeleton.test`,`pma.roadiz-skeleton.local`
HOSTNAME_SOLR=`solr.roadiz-skeleton.test`,`solr.roadiz-skeleton.local`
HOSTNAME_MAILER=`mail.roadiz-skeleton.test`,`mail.roadiz-skeleton.local`
###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=flock
###< symfony/lock ###
###> symfony/messenger ###
# Choose one of the transports below
#MESSENGER_TRANSPORT_DSN=doctrine://default
MESSENGER_FAILED_TRANSPORT_DSN=doctrine://default?queue_name=failed
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
MESSENGER_TRANSPORT_DSN=redis://redis:6379/messages
# When using symfony server:start
#MESSENGER_TRANSPORT_DSN=redis://127.0.0.1:6379/messages
###< symfony/messenger ###
###> symfony/mailer ###
MAILER_DSN=smtp://mailer:1025?encryption=&auth_mode=
# When using symfony server:start
#MAILER_DSN=smtp://127.0.0.1:1025?encryption=&auth_mode=
###< symfony/mailer ###
###> roadiz/core-bundle ###
APP_TITLE="Roadiz skeleton"
APP_DESCRIPTION="Roadiz skeleton"
APP_NAMESPACE=roadiz_skeleton
APP_ROUTER_DEFAULT_URI=http://roadiz-skeleton.test
APP_CACHE=0
APP_UNSPLASH_CLIENT_ID=
APP_VERSION=0.1.0
APP_HEALTH_CHECK_TOKEN=
APP_RECAPTCHA_PUBLIC_KEY=
## Define these secret values with Symfony secret and Vault
#APP_GOOGLE_SERVER_ID=
#APP_SOUNDCLOUD_CLIENT_ID=
#APP_RECAPTCHA_PRIVATE_KEY=
APP_FFMPEG_PATH=/usr/bin/ffmpeg
# When no information to find locale is found and "force_locale" setting is ON,
# Roadiz can find root path translation based on Accept-Language header.
# Be careful if you are using a reverse-proxy cache, YOU MUST vary on Accept-Language header and normalize it.
# @see https://varnish-cache.org/docs/6.3/users-guide/increasing-your-hitrate.html#http-vary
APP_USE_ACCEPT_LANGUAGE_HEADER=false
###< roadiz/core-bundle ###
###> roadiz/rozier-bundle ###
OPEN_ID_DISCOVERY_URL=
OPEN_ID_HOSTED_DOMAIN=
OPEN_ID_CLIENT_ID=
## Define this secret value with Symfony secret and Vault
#OPEN_ID_CLIENT_SECRET=
###< roadiz/rozier-bundle ###
###> rezozero/intervention-request-bundle ###
IR_DEFAULT_QUALITY=90
IR_MAX_PIXEL_SIZE=2500
IR_DRIVER=gd
###< rezozero/intervention-request-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1|192\.168\.[0-9]+\.[0-9]+)(:[0-9]+)?$
###< nelmio/cors-bundle ###
###> symfony/framework-bundle ###
## Do not directly set APP_DEBUG in this file
## But use .env.local or .env.$APP_ENV.local instead
APP_ENV=dev
REDIS_DSN=redis://redis:6379
# When using symfony server:start
#REDIS_DSN=redis://127.0.0.1:6379
###< symfony/framework-bundle ###
###> symfony/notifier ###
###< symfony/notifier ###
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
###< lexik/jwt-authentication-bundle ###
###> 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://roadiz:roadiz@db:3306/roadiz?serverVersion=mariadb-10.11.9&charset=utf8mb4"
# When using symfony server:start
#DATABASE_URL="mysql://roadiz:[email protected]:3306/roadiz?serverVersion=8.0.40&charset=utf8mb4"
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=14&charset=utf8"
###< doctrine/doctrine-bundle ###
## Restic backup configuration
#S3_ACCESS_KEY=
#S3_SECRET_KEY=
#S3_STORAGE_CLASS=STANDARD
#RESTIC_PASSWORD=
RESTIC_REPOSITORY=
MYSQL_DUMP_FILENAME=api_database_dump.sql
###> sentry/sentry-symfony ###
SENTRY_DSN=
###< sentry/sentry-symfony ###