2023-08-11 23:51:56 +02:00
|
|
|
service: web-check-api
|
|
|
|
|
|
|
|
provider:
|
|
|
|
name: aws
|
|
|
|
runtime: nodejs14.x
|
|
|
|
region: us-east-1
|
2023-09-02 17:51:24 +02:00
|
|
|
# environment:
|
|
|
|
# GOOGLE_CLOUD_API_KEY: ${ssm:GOOGLE_CLOUD_API_KEY~true, ''}
|
|
|
|
# TORRENT_IP_API_KEY: ${ssm:TORRENT_IP_API_KEY~true, ''}
|
|
|
|
# SECURITY_TRAILS_API_KEY: ${ssm:SECURITY_TRAILS_API_KEY~true, ''}
|
|
|
|
# BUILT_WITH_API_KEY: ${ssm:BUILT_WITH_API_KEY~true, ''}
|
|
|
|
# URL_SCAN_API_KEY: ${ssm:URL_SCAN_API_KEY~true, ''}
|
|
|
|
# TRANCO_USERNAME: ${ssm:TRANCO_USERNAME~true, ''}
|
|
|
|
# TRANCO_API_KEY: ${ssm:TRANCO_API_KEY~true, ''}
|
|
|
|
# CLOUDMERSIVE_API_KEY: ${ssm:CLOUDMERSIVE_API_KEY~true, ''}
|
|
|
|
# CHROME_PATH: ${ssm:CHROME_PATH~true, ''}
|
|
|
|
# API_TIMEOUT_LIMIT: ${ssm:API_TIMEOUT_LIMIT~true, ''}
|
|
|
|
# API_CORS_ORIGIN: ${ssm:API_CORS_ORIGIN~true, ''}
|
2023-09-02 16:21:36 +02:00
|
|
|
iamRoleStatements:
|
|
|
|
- Effect: Allow
|
|
|
|
Action:
|
|
|
|
- ssm:GetParameter
|
|
|
|
Resource:
|
2023-09-02 16:39:26 +02:00
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/GOOGLE_CLOUD_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/TORRENT_IP_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/SECURITY_TRAILS_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/BUILT_WITH_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/URL_SCAN_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/TRANCO_USERNAME
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/TRANCO_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/CLOUDMERSIVE_API_KEY
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/CHROME_PATH
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/API_TIMEOUT_LIMIT
|
|
|
|
- arn:aws:ssm:us-east-1:${env:AWS_ACCOUNT_ID}:parameter/API_CORS_ORIGIN
|
2023-08-11 23:51:56 +02:00
|
|
|
functions:
|
2023-08-30 16:40:48 +02:00
|
|
|
archives:
|
|
|
|
handler: api/archives.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/archives
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
blockLists:
|
|
|
|
handler: api/block-lists.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/block-lists
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
carbon:
|
|
|
|
handler: api/carbon.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/carbon
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
cookies:
|
|
|
|
handler: api/cookies.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/cookies
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
dnsServer:
|
|
|
|
handler: api/dns-server.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/dns-server
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
dns:
|
|
|
|
handler: api/dns.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/dns
|
|
|
|
method: get
|
|
|
|
dnssec:
|
|
|
|
handler: api/dnssec.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/dnssec
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
|
|
|
features:
|
|
|
|
handler: api/features.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/features
|
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
firewall:
|
|
|
|
handler: api/firewall.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/firewall
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
getIp:
|
|
|
|
handler: api/get-ip.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/get-ip
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
headers:
|
|
|
|
handler: api/headers.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/headers
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
hsts:
|
|
|
|
handler: api/hsts.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/hsts
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
httpSecurity:
|
|
|
|
handler: api/http-security.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/http-security
|
|
|
|
method: get
|
|
|
|
legacyRank:
|
|
|
|
handler: api/legacy-rank.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/legacy-rank
|
|
|
|
method: get
|
|
|
|
linkedPages:
|
|
|
|
handler: api/linked-pages.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/linked-pages
|
|
|
|
method: get
|
|
|
|
mailConfig:
|
|
|
|
handler: api/mail-config.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/mail-config
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
|
|
|
ports:
|
|
|
|
handler: api/ports.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/ports
|
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
quality:
|
|
|
|
handler: api/quality.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/quality
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
rank:
|
|
|
|
handler: api/rank.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/rank
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
redirects:
|
|
|
|
handler: api/redirects.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/redirects
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
robotsTxt:
|
|
|
|
handler: api/robots-txt.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/robots-txt
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
screenshot:
|
|
|
|
handler: api/screenshot.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/screenshot
|
|
|
|
method: get
|
|
|
|
securityTxt:
|
|
|
|
handler: api/security-txt.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/security-txt
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
|
|
|
sitemap:
|
|
|
|
handler: api/sitemap.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/sitemap
|
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
socialTags:
|
|
|
|
handler: api/social-tags.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/social-tags
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
ssl:
|
|
|
|
handler: api/ssl.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/ssl
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
status:
|
|
|
|
handler: api/status.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/status
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
techStack:
|
|
|
|
handler: api/tech-stack.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/tech-stack
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
threats:
|
|
|
|
handler: api/threats.handler
|
2023-08-11 23:51:56 +02:00
|
|
|
events:
|
|
|
|
- http:
|
2023-08-30 16:40:48 +02:00
|
|
|
path: api/threats
|
|
|
|
method: get
|
|
|
|
tls:
|
|
|
|
handler: api/tls.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/tls
|
|
|
|
method: get
|
|
|
|
traceRoute:
|
|
|
|
handler: api/trace-route.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/trace-route
|
2023-08-11 23:51:56 +02:00
|
|
|
method: get
|
|
|
|
txtRecords:
|
|
|
|
handler: api/txt-records.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/txt-records
|
|
|
|
method: get
|
2023-08-30 16:40:48 +02:00
|
|
|
whois:
|
|
|
|
handler: api/whois.handler
|
|
|
|
events:
|
|
|
|
- http:
|
|
|
|
path: api/whois
|
|
|
|
method: get
|
2023-08-11 23:51:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
plugins:
|
2023-08-30 16:40:48 +02:00
|
|
|
- serverless-webpack
|
|
|
|
# - serverless-domain-manager
|
|
|
|
# - serverless-offline
|
2023-08-11 23:51:56 +02:00
|
|
|
|
|
|
|
custom:
|
|
|
|
webpack:
|
|
|
|
webpackConfig: 'api/_common/aws-webpack.config.js'
|
2023-08-30 16:40:48 +02:00
|
|
|
includeModules: false
|
|
|
|
packagerOptions:
|
|
|
|
noInstall: true
|
2023-08-11 23:51:56 +02:00
|
|
|
|
2023-08-30 16:40:48 +02:00
|
|
|
# customDomain:
|
|
|
|
# domainName: example.com
|
|
|
|
# basePath: 'api'
|
|
|
|
# stage: ${self:provider.stage}
|
|
|
|
# createRoute53Record: true
|
2023-08-11 23:51:56 +02:00
|
|
|
|
2023-08-30 16:40:48 +02:00
|
|
|
# serverless-offline:
|
|
|
|
# prefix: ''
|
|
|
|
# httpPort: 3000
|