Private
Public Access
1
0

new: usr: Add opportunity to use profile picture. #4

This commit is contained in:
2026-04-13 15:50:28 +02:00
parent 98f6e8cb6e
commit 0c0b8ae920
23 changed files with 1952 additions and 212 deletions

View File

@@ -14,4 +14,6 @@ return [
Webauthn\Bundle\WebauthnBundle::class => ['all' => true],
Webauthn\Stimulus\WebauthnStimulusBundle::class => ['all' => true],
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
];

View File

@@ -0,0 +1,14 @@
flysystem:
storages:
mineseeker.media.storage:
adapter: 'aws'
options:
client: 'Aws\S3\S3Client'
bucket: 'mineseeker'
prefix: 'media'
mineseeker.cache.storage:
adapter: 'aws'
options:
client: 'Aws\S3\S3Client'
bucket: 'mineseeker'
prefix: 'cache'

View File

@@ -0,0 +1,21 @@
liip_imagine:
driver: gd
loaders:
default:
flysystem:
filesystem_service: mineseeker.media.storage
cache: minio_cache
resolvers:
minio_cache:
flysystem:
filesystem_service: mineseeker.cache.storage
root_url: '%env(MINIO_PUBLIC_URL)%/mineseeker/cache'
cache_prefix: 'liip'
filter_sets:
avatar_thumb:
quality: 85
filters:
thumbnail:
size: [ 150, 150 ]
mode: outbound
strip: ~

View File

@@ -1,3 +1,6 @@
#index:
# path: /
# controller: App\Controller\DefaultController::index
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.yaml"

View File

@@ -11,7 +11,7 @@ services:
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
public: false # Allows optimizing the container by removing unused services; this also means
# fetching services directly from the container via $container->get() won't work.
# The best practice is to be explicit about your dependencies anyway.
# The best practice is to be explicit about your dependencies anyway.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
@@ -24,3 +24,13 @@ services:
App\Controller\:
resource: '../src/Controller'
tags: [ 'controller.service_arguments' ]
Aws\S3\S3Client:
arguments:
- version: 'latest'
region: 'us-east-1'
endpoint: '%env(MINIO_ENDPOINT)%'
use_path_style_endpoint: true
credentials:
key: '%env(MINIO_ROOT_USER)%'
secret: '%env(MINIO_ROOT_PASSWORD)%'