Configuration 

adsum is configured through environment variables. Composer writes a first .env without secrets (see Composer); set your values in .env.local. The defaults below are those of the development repository; the generated .env sets APP_ENV=prod and APP_DEBUG=0.

Essential configuration 

APP_SECRET
Type
string
Default
(empty)

A unique random secret per installation:

openssl rand -hex 32
Copied!
DATABASE_URL
Type
string
Default
postgresql://app:app@127.0.0.1:5432/app?serverVersion=17&charset=utf8

The database connection string. Examples:

  • PostgreSQL 17: postgresql://user:pass@localhost:5432/dbname?serverVersion=17&charset=utf8
  • MariaDB 11.4: mysql://user:pass@127.0.0.1:3306/dbname?serverVersion=11.4.0-MariaDB&charset=utf8mb4 (for MariaDB 10.11: serverVersion=10.11.0-MariaDB)
  • SQLite (development only): sqlite:///%kernel.project_dir%/var/app.db
DEFAULT_URI
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

MAILER_DSN
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://null discards all e-mails. Providers such as Amazon SES need their Symfony Mailer bridge package.

MAILER_SENDER
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.local only.

MERCURE_JWT_SECRET
Type
string
Default
(empty)

Signs the Mercure tokens; at least 256 random bits:

openssl rand -hex 32
Copied!

The hub uses the same value as publisher and subscriber key.

ACCESS_TOKEN_SECRET
Type
string
Default
(empty)

Signs the API access tokens (HS256); at least 32 characters:

openssl rand -hex 16
Copied!
APP_ENCRYPTION_KEY
Type
string
Default
(empty)

Encrypts stored secrets (TOTP seeds, identity provider credentials); 32 random bytes, base64-encoded:

openssl rand -base64 32
Copied!

Keep the key safe: without it, stored secrets cannot be decrypted.

Application behaviour 

APP_ENV
Type
string
Default
dev

dev, test or prod. Use prod on production servers.

APP_DEBUG
Type
boolean
Default
0 for prod, 1 otherwise

Shows detailed error pages. prod does not start with APP_DEBUG=1 or without APP_SECRET.

TRUSTED_PROXIES
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_ADDR, or PRIVATE_SUBNETS for all private IP ranges.

Example: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 or PRIVATE_SUBNETS

Message queue and real-time 

MESSENGER_TRANSPORT_DSN
Type
string
Default
doctrine://default?auto_setup=0

The Messenger transport of the queues async_high, async_low and failed. The default keeps the messages in the application database; adsum installs only the Doctrine transport.

MERCURE_URL
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.

MERCURE_PUBLIC_URL
Type
string
Default
http://localhost:3000/.well-known/mercure

The URL browsers subscribe to: https://<application host>/.well-known/mercure.

File storage 

ADSUM_FILE_BACKEND
Type
string
Default
local

Where uploaded and generated files are kept: local keeps them below var/storage/files, s3 in an S3-compatible bucket, which needs the Composer package league/flysystem-aws-s3-v3 and the settings below. Files are always served through the application, never from the bucket.

ADSUM_FILE_S3_BUCKET
Type
string
Default
(empty)

The bucket, with private access only. ADSUM_FILE_S3_REGION, ADSUM_FILE_S3_ENDPOINT (empty for Amazon S3, the URL of another S3-compatible service otherwise), ADSUM_FILE_S3_KEY and ADSUM_FILE_S3_SECRET complete the connection; set the key and the secret in .env.local.

Outgoing calls 

ADSUM_OUTBOUND_ALLOWED_HOSTS
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.intranet.example. 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.

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.

PUSH_GATEWAY_URL
Type
string
Default
https://push.adsum.team

The address of the push gateway. Change it only if web-vision tells you to.

PUSH_GATEWAY_TOKEN
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/log/:

  • prod.log: warnings and errors, the last 14 files
  • dev.log: everything, the last 3 files
  • translation-<environment>.log: texts missing in the user's language

To change handlers or levels, add config/packages/monolog.yaml.