The site folder config/sites/ / typo3conf/sites/

The site folder (config/sites/my-site in Composer-based installations, typo3conf/sites/my-site in Classic mode installations) must contain the following file:

config/sites/my-site/config.yaml

config.yaml
Scope
site
Path (Composer)
config/sites/my-site/config.yaml
Path (Classic)
typo3conf/sites/my-site/config.yaml

Contains the site configuration. See chapter Site handling for details.

The file is automatically created if you use the Site Management > Sites module to create a new site configuration.

The name of the folder is editable as Site Identifier in the site configuration form.

Site settings settings.yaml in the site folder

config/sites/my-site/settings.yaml

settings.yaml
Scope
site
Path (Composer)
config/sites/my-site/settings.yaml
Path (Classic)
typo3conf/sites/my-site/settings.yaml

This file stores all changes that where made to the site settings using the backend module Site Management > Settings. It overrides the settings from all included site sets, including the set of the site package.

The site as frontend TypoScript provider

If the site should be used as TypoScript provider (see Site as a TypoScript provider) it can contain the following files:

config/sites/my-site/constants.typoscript

constants.typoscript
Scope
site
Path (Composer)
config/sites/my-site/constants.typoscript
Path (Classic)
typo3conf/sites/my-site/constants.typoscript

Contains the TypoScript constants of a site.

config/sites/my-site/setup.typoscript

setup.typoscript
Scope
site
Path (Composer)
config/sites/my-site/setup.typoscript
Path (Classic)
typo3conf/sites/my-site/setup.typoscript

Contains the TypoScript setup of a site.

Page TSconfig in the site folder

config/sites/my-site/page.tsconfig

page.tsconfig
Scope
site
Path (Composer)
config/sites/my-site/page.tsconfig
Path (Classic)
typo3conf/sites/my-site/page.tsconfig

Page TSconfig in this file is automatically loaded within the site scope. See also Page TSconfig on site level.

Additional configuration files in the site folder

The site folder may also contain the following file:

config/sites/my-site/csp.yaml

csp.yaml
Scope
site
Path (Composer)
config/sites/my-site/csp.yaml
Path (Classic)
typo3conf/sites/my-site/csp.yaml