Configuration
adsum is configured through environment variables. Composer writes a first .env without secrets (see
Composer); set your values in .env.. The defaults below are those of the development
repository; the generated .env sets APP_ and APP_.
Essential configuration
-
- Type
- string
- Default
- (empty)
A unique random secret per installation:
openssl rand -hex 32Copied!
-
- Type
- string
- Default
postgresql://app: app@127. 0. 0. 1: 5432/ app?server Version=17&charset=utf8
The database connection string. Examples:
- PostgreSQL 17:
postgresql://user: pass@localhost: 5432/ dbname?server Version=17&charset=utf8 - MariaDB 11.4:
mysql://(for MariaDB 10.11:user: pass@127. 0. 0. 1: 3306/ dbname?server Version=11. 4. 0- Maria DB&charset=utf8mb4 server)Version=10. 11. 0- Maria DB - SQLite (development only):
sqlite:///%kernel.project_ dir%/ var/ app. db
-
- Type
- string
- Default
http://localhost
The base URL of links in e-mails and of links generated by the console and the worker: the URL that users open in the browser.
Example:
https://adsum. company. com
-
- Type
- string
- Default
null://null
The mail server connection string (Symfony Mailer format). Examples:
- SMTP:
smtp://localhost: 25 - SMTP with TLS:
smtp://user: pass@mail. company. com: 587?encryption=tls - sendmail:
sendmail://default
null://discards all e-mails. Providers such as Amazon SES need their Symfony Mailer bridge package.null
-
- Type
- string
- Default
adsum <no-reply@localhost>
The
From:address of all e-mails.Example:
Human Resources <no-reply@company. com>
Secrets
Set these in .env. only.
-
- Type
- string
- Default
- (empty)
Signs the Mercure tokens; at least 256 random bits:
openssl rand -hex 32Copied!The hub uses the same value as publisher and subscriber key.
-
- Type
- string
- Default
- (empty)
Signs the API access tokens (HS256); at least 32 characters:
openssl rand -hex 16Copied!
-
- Type
- string
- Default
- (empty)
Encrypts stored secrets (TOTP seeds, identity provider credentials); 32 random bytes, base64-encoded:
openssl rand -base64 32Copied!Keep the key safe: without it, stored secrets cannot be decrypted.
Application behaviour
-
- Type
- string
- Default
dev
dev,testorprod. Useprodon production servers.
-
- Type
- boolean
- Default
0forprod,1otherwise
Shows detailed error pages.
proddoes not start withAPP_or withoutDEBUG=1 APP_.SECRET
-
- Type
- string
- Default
127.0. 0. 1,:: 1
The reverse proxies in front of the application: a comma-separated list of addresses or ranges, or
REMOTE_, orADDR PRIVATE_for all private IP ranges.SUBNETS Example:
10.or0. 0. 0/ 8,172. 16. 0. 0/ 12,192. 168. 0. 0/ 16 PRIVATE_SUBNETS
Message queue and real-time
-
- Type
- string
- Default
doctrine://default?auto_ setup=0
The Messenger transport of the queues
async_,high async_andlow failed. The default keeps the messages in the application database; adsum installs only the Doctrine transport.
-
- Type
- string
- Default
http://localhost: 3000/. well- known/ mercure
The URL the application publishes updates to, reachable from the server, for example
http://.mercure: 3000/. well- known/ mercure
-
- Type
- string
- Default
http://localhost: 3000/. well- known/ mercure
The URL browsers subscribe to:
https://<application host>/..well- known/ mercure
File storage
-
- Type
- string
- Default
local
Where uploaded and generated files are kept:
localkeeps them belowvar/,storage/ files s3in an S3-compatible bucket, which needs the Composer packageleague/and the settings below. Files are always served through the application, never from the bucket.flysystem- aws- s3- v3
-
- Type
- string
- Default
- (empty)
The bucket, with private access only.
ADSUM_,FILE_ S3_ REGION ADSUM_(empty for Amazon S3, the URL of another S3-compatible service otherwise),FILE_ S3_ ENDPOINT ADSUM_andFILE_ S3_ KEY ADSUM_complete the connection; set the key and the secret inFILE_ S3_ SECRET .env..local
Outgoing calls
-
- Type
- string
- Default
- (empty)
Host names, separated by commas, that integrations such as YouTrack, Jira, GitLab and webhooks may call although they resolve to a private address, for example
youtrack.. Names match exactly and without regard to case; wildcards and networks are not supported. Every other host and every IP address in a URL stays blocked from private networks. Each listed host can reach whatever answers behind that name in your network, so list only services you run yourself.intranet. example
Push messages to the app
The adsum app receives notifications as push messages through the push gateway of web-vision. Without a token, the app gets no push messages and the notification settings offer none.
-
- Type
- string
- Default
https://push. adsum. team
The address of the push gateway. Change it only if web-vision tells you to.
-
- Type
- string
- Default
- (empty)
The token of this installation at the push gateway. Set it in
.env..local
The gateway receives, per message, the device's push token, its platform, the number of unread notifications, the notification type with the ID of its subject, and the content encrypted for the device. Names, dates and texts never leave the installation in clear; mention the gateway in your privacy statement as a processor of device tokens.
Logging
Logs are written to var/:
prod.: warnings and errors, the last 14 fileslog dev.: everything, the last 3 fileslog translation-<environment>.: texts missing in the user's languagelog
To change handlers or levels, add config/.