ds-site/Configuration/Services.yaml
Daniel Siepmann 6f3b519477 Remove unnecessary TYPO3 defaults from CSP
TYPO3 adds some defaults which my website doesn't use.
These are removed to keep the website more secure and reduce transferred
header size.
2023-08-08 09:00:32 +02:00

84 lines
2.6 KiB
YAML

imports:
- {resource: Services/Tracking.yaml}
services:
_defaults:
autowire: true
autoconfigure: true
public: false
DanielSiepmann\DsSite\:
resource: '../Classes/*'
querybuilder.pages:
class: 'TYPO3\CMS\Core\Database\Query\QueryBuilder'
factory:
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getQueryBuilderForTable'
arguments:
- 'pages'
DanielSiepmann\DsSite\Frontend\RssFeed\XmlSitemapRenderer:
public: true
DanielSiepmann\DsSite\Backend\PreviewRenderer\Video:
public: true
DanielSiepmann\DsSite\Frontend\DataProcessing\CategoriesCounts:
public: true
arguments:
$queryBuilder: '@querybuilder.pages'
# Widgets
dashboard.widget.site_ownrss:
class: 'TYPO3\CMS\Dashboard\Widgets\RssWidget'
arguments:
$view: '@dashboard.views.widget'
$cache: '@cache.dashboard.rss'
$options:
feedUrl: 'https://daniel-siepmann.de/rss-feed/blog-posts.xml'
limit: 3
tags:
- name: dashboard.widget
identifier: 'ownRss'
groupNames: 'typo3'
title: 'Own RSS Feed'
description: 'RSS Feed of Blog Posts'
iconIdentifier: 'content-widget-rss'
height: 'medium'
width: 'small'
dashboard.widget.sysLogErrors:
class: 'TYPO3\CMS\Dashboard\Widgets\BarChartWidget'
arguments:
$dataProvider: '@TYPO3\CMS\Dashboard\Widgets\Provider\SysLogErrorsDataProvider'
$view: '@dashboard.views.widget'
$buttonProvider: '@TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider'
tags:
- name: dashboard.widget
identifier: 'sysLogErrors'
groupNames: 'systemInfo'
title: 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widgets.sysLogErrors.title'
description: 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widgets.sysLogErrors.description'
iconIdentifier: 'content-widget-chart-bar'
height: 'medium'
width: 'small'
# Events
DanielSiepmann\DsSite\EventListener\AddFurtherMetadataToFile:
public: true
tags:
- name: event.listener
identifier: 'AddFurtherMetadataToFile'
event: TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent
after: 'languageAndWorkspaceOverlay'
DanielSiepmann\DsSite\EventListener\PageLayoutHeader:
tags:
- name: event.listener
event: TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent
DanielSiepmann\DsSite\EventListener\ContentSecurityPolicyMutation:
tags:
- name: event.listener
event: TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\PolicyMutatedEvent