Merged master

This commit is contained in:
Vincent
2024-09-18 13:37:07 +02:00
139 changed files with 8418 additions and 2409 deletions

1
config/app/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/custom_rdap_servers.yaml

View File

@@ -0,0 +1,63 @@
#############################################################
# WARNING #
# #
# This list of RDAP servers is not published by IANA #
# !!! Use it at your own risk !!! #
# #
# This file must comply with RFC 9224 #
#############################################################
# Feel free to contribute to add missing RDAP servers to this file.
# To generate the list of TLDs that do not have an RDAP server,
# run this SQL query on a Domain Watchdog instance based on the official IANA list
# SELECT t.tld FROM tld t LEFT JOIN rdap_server rs ON rs.tld_id = t.tld WHERE t.contract_terminated IS NOT TRUE and rs.url IS NULL;
{
"description": "Custom RDAP bootstrap file for Domain Name System registrations",
# Remove the following line to use servers from this list as a priority
# Otherwise, those from the official IANA list will have a preponderant value
"publication": "1970-01-01T00:00:00Z",
"services": [
[ [ "ad" ], [ "https://rdap.nic.ad/" ] ],
[ [ "ae" ], [ "https://rdap.nic.ae/" ] ],
[ [ "ki" ], [ "https://rdap.nic.ki/" ] ],
[ [ "af" ], [ "https://rdap.nic.af/" ] ],
[
[
"ag",
"me",
"bz",
"gi",
"pr",
"sc",
"vc"
],
[
"https://rdap.identitydigital.services/rdap/"
]
],
[ [ "ch" ], [ "https://rdap.nic.ch/" ] ],
[ [ "co" ], [ "https://rdap.nic.co/" ] ],
[ [ "de" ], [ "https://rdap.denic.de/" ] ],
[ [ "ga" ], [ "https://rdap.nic.ga/" ] ],
[ [ "ht" ], [ "https://rdap.nic.ht/" ] ],
[ [ "in" ], [ "https://rdap.registry.in/" ] ],
[ [ "kn" ], [ "https://rdap.nic.kn/" ] ],
[ [ "li" ], [ "https://rdap.nic.li/" ] ],
[ [ "ml" ], [ "https://rdap.nic.ml/" ] ],
[ [ "mr" ], [ "https://rdap.nic.mr/" ] ],
[ [ "mz" ], [ "https://rdap.nic.mz/" ] ],
[ [ "pr" ], [ "https://rdap.afilias-srs.net/rdap/pr/" ] ],
[ [ "sb" ], [ "https://rdap.nic.sb/" ] ],
[ [ "sn" ], [ "https://rdap.nic.sn/" ] ],
[ [ "so" ], [ "https://rdap.nic.so/" ] ],
[ [ "td" ], [ "https://rdap.nic.td/" ] ],
[ [ "tl" ], [ "https://rdap.nic.tl/" ] ],
[ [ "us" ], [ "https://rdap.nic.us/" ] ],
[ [ "ve" ], [ "https://rdap.nic.ve/rdap/" ] ],
[ [ "ws" ], [ "https://rdap.website.ws/" ] ],
],
"version": "1.0"
}

View File

@@ -2,7 +2,7 @@ lexik_jwt_authentication:
secret_key: '%env(resolve:JWT_SECRET_KEY)%'
public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
pass_phrase: '%env(JWT_PASSPHRASE)%'
token_ttl: 7200 # in seconds, default is 3600
token_ttl: 604800 # in seconds, default is 3600
token_extractors:
authorization_header:
enabled: true

View File

@@ -6,9 +6,6 @@ framework:
# https://symfony.com/doc/current/messenger.html#transport-configuration
async:
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
options:
use_notify: true
check_delayed_interval: 60000
retry_strategy:
max_retries: 3
multiplier: 2
@@ -18,16 +15,18 @@ framework:
default_bus: messenger.bus.default
buses:
messenger.bus.default: []
messenger.bus.default: [ ]
routing:
Symfony\Component\Mailer\Messenger\SendEmailMessage: async
Symfony\Component\Notifier\Message\ChatMessage: async
Symfony\Component\Notifier\Message\SmsMessage: async
App\Message\UpdateRdapServers: async
App\Message\OrderDomain: async
App\Message\ProcessWatchListsTrigger: async
App\Message\ProcessWatchListTrigger: async
App\Message\ProcessDomainTrigger: async
App\Message\SendDomainEventNotif: async
App\Message\UpdateDomainsFromWatchlist: async
App\Message\UpdateRdapServers: async
# Route your messages to the transports
# 'App\Message\YourMessage': async

View File

@@ -9,7 +9,7 @@ when@dev:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
channels: [ "!event" ]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
@@ -21,7 +21,7 @@ when@dev:
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
channels: [ "!event", "!doctrine", "!console" ]
when@test:
monolog:
@@ -30,8 +30,8 @@ when@test:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
channels: ["!event"]
excluded_http_codes: [ 404, 405 ]
channels: [ "!event" ]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
@@ -42,9 +42,9 @@ when@prod:
handlers:
main:
type: fingers_crossed
action_level: error
action_level: notice
handler: nested
excluded_http_codes: [404, 405]
excluded_http_codes: [ 404, 405 ]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
@@ -54,9 +54,9 @@ when@prod:
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
channels: [ "!event", "!doctrine" ]
deprecation:
type: stream
channels: [deprecation]
channels: [ deprecation ]
path: php://stderr
formatter: monolog.formatter.json

View File

@@ -1,7 +1,17 @@
framework:
notifier:
chatter_transports:
zulip: '%env(ZULIP_DSN)%'
telegram: '%env(TELEGRAM_DSN)%'
slack: '%env(SLACK_DSN)%'
rocketchat: '%env(ROCKETCHAT_DSN)%'
microsoftteams: '%env(MICROSOFT_TEAMS_DSN)%'
mattermost: '%env(MATTERMOST_DSN)%'
googlechat: '%env(GOOGLE_CHAT_DSN)%'
discord: '%env(DISCORD_DSN)%'
texter_transports:
engagespot: '%env(ENGAGESPOT_DSN)%'
pushover: '%env(PUSHOVER_DSN)%'
channel_policy:
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo
urgent: ['email']

View File

@@ -4,14 +4,18 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
custom_rdap_servers_file: '%kernel.project_dir%/config/app/custom_rdap_servers.yaml'
mailer_sender_email: '%env(string:MAILER_SENDER_EMAIL)%'
mailer_sender_name: '%env(string:MAILER_SENDER_NAME)%'
oauth_enabled: '%env(OAUTH_CLIENT_ID)%'
registration_enabled: '%env(bool:REGISTRATION_ENABLED)%'
registration_verify_email: '%env(bool:REGISTRATION_VERIFY_EMAIL)%'
limited_features: '%env(bool:LIMITED_FEATURES)%'
limit_max_watchlist: '%env(int:LIMIT_MAX_WATCHLIST)%'
limit_max_watchlist_domains: '%env(int:LIMIT_MAX_WATCHLIST_DOMAINS)%'
limit_max_watchlist_webhooks: '%env(int:LIMIT_MAX_WATCHLIST_WEBHOOKS)%'
outgoing_ip: '%env(string:OUTGOING_IP)%'