Compare commits
3 Commits
v2026.2.0-
...
v2026.2.0-
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d6aff8d90 | |||
| 15ba26ccf2 | |||
| d3fa0cbbf9 |
@@ -216,7 +216,7 @@ POSTGRES_VERSION=18
|
||||
MINIO_ROOT_USER=mineseeker
|
||||
MINIO_ROOT_PASSWORD="<strong password>"
|
||||
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
|
||||
MAIL_DOMAIN=mineseeker.hu
|
||||
|
||||
@@ -76,8 +76,13 @@ services:
|
||||
image: boky/postfix:latest
|
||||
restart: unless-stopped
|
||||
container_name: '${APP_NAME}-mail'
|
||||
hostname: postfix.mail.${MAIL_DOMAIN:-localhost}
|
||||
environment:
|
||||
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_AUTH: ${MAIL_RELAYHOST_AUTH:-}
|
||||
RELAYHOST_PASSWORD: ${MAIL_RELAYHOST_PASSWORD:-}
|
||||
|
||||
@@ -19,6 +19,7 @@ use Liip\ImagineBundle\Imagine\Cache\CacheManager;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -228,16 +229,14 @@ class ProfileController extends AbstractController
|
||||
}
|
||||
|
||||
$ext = $file->guessExtension() ?? 'jpg';
|
||||
$newPath = sprintf('avatar/%d.%s', $user->getId(), $ext);
|
||||
$newPath = sprintf('avatar/%s.%s', Uuid::v4()->toRfc4122(), $ext);
|
||||
$oldPath = $user->getAvatarPath();
|
||||
|
||||
// Remove old file and any cached thumbnails
|
||||
if ($oldPath) {
|
||||
if ($oldPath !== $newPath) {
|
||||
try {
|
||||
$mediaStorage->delete($oldPath);
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
try {
|
||||
$mediaStorage->delete($oldPath);
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
$cacheManager->remove($oldPath, 'avatar_thumb');
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ class SecurityController extends AbstractController
|
||||
|
||||
$mailer->send(
|
||||
new TemplatedEmail()
|
||||
->from('noreply@mineseeker.ninja')
|
||||
->from('noreply@mineseeker.hu')
|
||||
->to($user->getEmail())
|
||||
->subject('Activate your MineSeeker account')
|
||||
->htmlTemplate('emails/activation.html.twig')
|
||||
@@ -145,7 +145,7 @@ class SecurityController extends AbstractController
|
||||
|
||||
$mailer->send(
|
||||
new TemplatedEmail()
|
||||
->from('noreply@mineseeker.ninja')
|
||||
->from('noreply@mineseeker.hu')
|
||||
->to($email)
|
||||
->subject('Reset your MineSeeker password')
|
||||
->htmlTemplate('emails/reset_password.html.twig')
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<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
|
||||
responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you
|
||||
are
|
||||
|
||||
Reference in New Issue
Block a user