Private
Public Access
1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
5d6aff8d90 chg: dev: the user's avatar will be saved as a uuid.extension #4
All checks were successful
Deploy to Production / deploy (push) Successful in 10s
2026-04-14 16:53:16 +02:00
15ba26ccf2 chg: pkg: new version release !skipChangelog
All checks were successful
Deploy to Production / deploy (push) Successful in 3s
2026-04-14 16:47:15 +02:00
d3fa0cbbf9 fix: dev: quickfix for email sending #4
All checks were successful
Deploy to Production / deploy (push) Successful in 12s
2026-04-14 16:38:55 +02:00
5 changed files with 14 additions and 10 deletions

View File

@@ -216,7 +216,7 @@ POSTGRES_VERSION=18
MINIO_ROOT_USER=mineseeker MINIO_ROOT_USER=mineseeker
MINIO_ROOT_PASSWORD="<strong password>" MINIO_ROOT_PASSWORD="<strong password>"
MINIO_ENDPOINT=http://minio:9000 MINIO_ENDPOINT=http://minio:9000
MINIO_PUBLIC_URL=https://minio.mineseeker.hu MINIO_PUBLIC_URL=https://aws.mineseeker.hu
MAILER_DSN=smtp://mail:25?verify_peer=0 MAILER_DSN=smtp://mail:25?verify_peer=0
MAIL_DOMAIN=mineseeker.hu MAIL_DOMAIN=mineseeker.hu

View File

@@ -76,8 +76,13 @@ services:
image: boky/postfix:latest image: boky/postfix:latest
restart: unless-stopped restart: unless-stopped
container_name: '${APP_NAME}-mail' container_name: '${APP_NAME}-mail'
hostname: postfix.mail.${MAIL_DOMAIN:-localhost}
environment: environment:
ALLOWED_SENDER_DOMAINS: ${MAIL_DOMAIN:-localhost} ALLOWED_SENDER_DOMAINS: ${MAIL_DOMAIN:-localhost}
HOSTNAME: postfix.mail.${MAIL_DOMAIN:-localhost}
POSTFIX_myhostname: postfix.mail.${MAIL_DOMAIN:-localhost}
POSTFIX_mynetworks: "127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16"
POSTFIX_smtpd_tls_security_level: none
RELAYHOST: ${MAIL_RELAYHOST:-} RELAYHOST: ${MAIL_RELAYHOST:-}
RELAYHOST_AUTH: ${MAIL_RELAYHOST_AUTH:-} RELAYHOST_AUTH: ${MAIL_RELAYHOST_AUTH:-}
RELAYHOST_PASSWORD: ${MAIL_RELAYHOST_PASSWORD:-} RELAYHOST_PASSWORD: ${MAIL_RELAYHOST_PASSWORD:-}

View File

@@ -19,6 +19,7 @@ use Liip\ImagineBundle\Imagine\Cache\CacheManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Uid\Uuid;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
@@ -228,17 +229,15 @@ class ProfileController extends AbstractController
} }
$ext = $file->guessExtension() ?? 'jpg'; $ext = $file->guessExtension() ?? 'jpg';
$newPath = sprintf('avatar/%d.%s', $user->getId(), $ext); $newPath = sprintf('avatar/%s.%s', Uuid::v4()->toRfc4122(), $ext);
$oldPath = $user->getAvatarPath(); $oldPath = $user->getAvatarPath();
// Remove old file and any cached thumbnails // Remove old file and any cached thumbnails
if ($oldPath) { if ($oldPath) {
if ($oldPath !== $newPath) {
try { try {
$mediaStorage->delete($oldPath); $mediaStorage->delete($oldPath);
} catch (\Throwable) { } catch (\Throwable) {
} }
}
$cacheManager->remove($oldPath, 'avatar_thumb'); $cacheManager->remove($oldPath, 'avatar_thumb');
} }

View File

@@ -94,7 +94,7 @@ class SecurityController extends AbstractController
$mailer->send( $mailer->send(
new TemplatedEmail() new TemplatedEmail()
->from('noreply@mineseeker.ninja') ->from('noreply@mineseeker.hu')
->to($user->getEmail()) ->to($user->getEmail())
->subject('Activate your MineSeeker account') ->subject('Activate your MineSeeker account')
->htmlTemplate('emails/activation.html.twig') ->htmlTemplate('emails/activation.html.twig')
@@ -145,7 +145,7 @@ class SecurityController extends AbstractController
$mailer->send( $mailer->send(
new TemplatedEmail() new TemplatedEmail()
->from('noreply@mineseeker.ninja') ->from('noreply@mineseeker.hu')
->to($email) ->to($email)
->subject('Reset your MineSeeker password') ->subject('Reset your MineSeeker password')
->htmlTemplate('emails/reset_password.html.twig') ->htmlTemplate('emails/reset_password.html.twig')

View File

@@ -8,7 +8,7 @@
<h3>1. Terms</h3> <h3>1. Terms</h3>
<p>By accessing the website at <a href="https://www.mineseeker.ninja">https://www.mineseeker.ninja</a>, you are <p>By accessing the website at <a href="https://www.mineseeker.hu">https://www.mineseeker.hu</a>, you are
agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are
responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you
are are