-
Notifications
You must be signed in to change notification settings - Fork 1
54 mail server #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
54 mail server #61
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dd1e956
feat: Add Mailer setup.
InfoX1337 7295587
feat: Add Redis server and connector.
InfoX1337 4b5d703
style: Remove troll comments
InfoX1337 2cf9b01
fix: Fix docker-compose redis config.
InfoX1337 0b84f63
feat: Email system with bullmq now works.
InfoX1337 9781910
fix: Email queue not closing on app terminating.
InfoX1337 d91b762
chore: Update to Adonis.JS v7.
InfoX1337 38477e0
fix: Update test timeouts to smaller numbers and force exit if stuck.
InfoX1337 9265ad4
fix: Remove unnescessary vite build hook and package.
InfoX1337 c4ddc88
fix: Build and tests now work due to newer node version and redis add…
InfoX1337 9710266
Add ignore rule for copyright header check for auto-gen file.
InfoX1337 58b1d8e
fix: Convert to sendLater() function instead of custom event system.
InfoX1337 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| /* | ||
| * ______ __ __ | ||
| * _ __/ ____/___ ____ / /____ _____/ /_ | ||
| * | |/_/ / / __ \/ __ \/ __/ _ \/ ___/ __/ | ||
| * _> </ /___/ /_/ / / / / /_/ __(__ ) /_ | ||
| * /_/|_|\____/\____/_/ /_/\__/\___/____/\__/ | ||
| * Copyright (C) 2026 xContest Team | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Affero General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public License | ||
| * along with this program. If not, see http://www.gnu.org/licenses/. | ||
| * | ||
| */ | ||
|
|
||
| import env from '#start/env' | ||
| import { defineConfig, transports } from '@adonisjs/mail' | ||
|
|
||
| const mailConfig = defineConfig({ | ||
| default: env.get('MAIL_MAILER'), | ||
|
|
||
| /** | ||
| * The mailers object can be used to configure multiple mailers | ||
| * each using a different transport or same transport with different | ||
| * options. | ||
| */ | ||
| from: { | ||
| address: env.get('MAIL_FROM_ADDRESS'), | ||
| name: env.get('MAIL_FROM_NAME'), | ||
| }, | ||
|
|
||
| /** | ||
| * The globals are shared with all the templates rendered using the | ||
| * configured template engine. | ||
| * | ||
| * This could be a nice place to define the logo URL, links base URL | ||
| * the brand name to be used within the emails | ||
| */ | ||
| globals: { | ||
| branding: { | ||
| name: 'xContest', | ||
| }, | ||
| }, | ||
|
|
||
| /** | ||
| * The mailers object can be used to configure multiple mailers | ||
| * each using a different transport or same transport with different | ||
| * options. | ||
| */ | ||
| mailers: { | ||
| smtp: transports.smtp({ | ||
| host: env.get('SMTP_HOST'), | ||
| port: env.get('SMTP_PORT'), | ||
| secure: true, | ||
| auth: { | ||
| type: 'login', | ||
| user: env.get('SMTP_USERNAME'), | ||
| pass: env.get('SMTP_PASSWORD'), | ||
| }, | ||
| }), | ||
|
|
||
| }, | ||
| }) | ||
|
|
||
| export default mailConfig | ||
|
|
||
| declare module '@adonisjs/mail/types' { | ||
| export interface MailersList extends InferMailers<typeof mailConfig> {} | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.