mirror of
https://codeberg.org/alicia/web-check.git
synced 2024-05-20 10:16:33 +02:00
Compare commits
10 commits
1e6802afbf
...
7583843e80
Author | SHA1 | Date | |
---|---|---|---|
7583843e80 | |||
e77075764e | |||
195577fe0c | |||
29398665b0 | |||
1780b2323d | |||
2cd68c5b98 | |||
761f9dab81 | |||
64fbcb3f7d | |||
2fb7dc9a2b | |||
a6711aeb63 |
83
.github/README.md
vendored
83
.github/README.md
vendored
|
@ -907,6 +907,13 @@ Credit to the following users for contributing to Web-Check
|
|||
<sub><b>Mounir Samite</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/brianteeman">
|
||||
<img src="https://avatars.githubusercontent.com/u/1296369?v=4" width="80;" alt="brianteeman"/>
|
||||
<br />
|
||||
<sub><b>Brian Teeman</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/jinnabaalu">
|
||||
<img src="https://avatars.githubusercontent.com/u/11784253?v=4" width="80;" alt="jinnabaalu"/>
|
||||
|
@ -914,6 +921,21 @@ Credit to the following users for contributing to Web-Check
|
|||
<sub><b>Jinna Baalu</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/0xflotus">
|
||||
<img src="https://avatars.githubusercontent.com/u/26602940?v=4" width="80;" alt="0xflotus"/>
|
||||
<br />
|
||||
<sub><b>0xflotus</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/eltociear">
|
||||
<img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="80;" alt="eltociear"/>
|
||||
<br />
|
||||
<sub><b>Ikko Eltociear Ashimine</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/treatmesubj">
|
||||
<img src="https://avatars.githubusercontent.com/u/39680353?v=4" width="80;" alt="treatmesubj"/>
|
||||
|
@ -927,8 +949,7 @@ Credit to the following users for contributing to Web-Check
|
|||
<br />
|
||||
<sub><b>Marco Ochse</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/murrple-1">
|
||||
<img src="https://avatars.githubusercontent.com/u/5559656?v=4" width="80;" alt="murrple-1"/>
|
||||
|
@ -936,19 +957,34 @@ Credit to the following users for contributing to Web-Check
|
|||
<sub><b>Murray Christopherson</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/PhiRequiem">
|
||||
<img src="https://avatars.githubusercontent.com/u/1323576?v=4" width="80;" alt="PhiRequiem"/>
|
||||
<br />
|
||||
<sub><b>PhiRequiem</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/UlisesGascon">
|
||||
<img src="https://avatars.githubusercontent.com/u/5110813?v=4" width="80;" alt="UlisesGascon"/>
|
||||
<br />
|
||||
<sub><b>Ulises Gascón</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/abhishekMuge">
|
||||
<img src="https://avatars.githubusercontent.com/u/49590582?v=4" width="80;" alt="abhishekMuge"/>
|
||||
<br />
|
||||
<sub><b>Abhishek Muge</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/robinson">
|
||||
<img src="https://avatars.githubusercontent.com/u/237874?v=4" width="80;" alt="robinson"/>
|
||||
<br />
|
||||
<sub><b>Lth</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
<!-- readme: contributors -end -->
|
||||
|
@ -981,6 +1017,13 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<sub><b>Aly Mohamed</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/bgadrian">
|
||||
<img src="https://avatars.githubusercontent.com/u/830001?v=4" width="80;" alt="bgadrian"/>
|
||||
<br />
|
||||
<sub><b>B.G.Adrian</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/tbjers">
|
||||
<img src="https://avatars.githubusercontent.com/u/1117052?u=539d96d5e581b3139c75713ce35b89a36626404c&v=4" width="80;" alt="tbjers"/>
|
||||
|
@ -994,15 +1037,15 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<br />
|
||||
<sub><b>Eddy Lazzarin</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/AnandChowdhary">
|
||||
<img src="https://avatars.githubusercontent.com/u/2841780?u=747e554b3a7f12eb20b7910e1c87d817844f714f&v=4" width="80;" alt="AnandChowdhary"/>
|
||||
<br />
|
||||
<sub><b>Anand Chowdhary</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/shrippen">
|
||||
<img src="https://avatars.githubusercontent.com/u/2873570?v=4" width="80;" alt="shrippen"/>
|
||||
|
@ -1031,6 +1074,14 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<sub><b>Digital Archeology</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/InDieTasten">
|
||||
<img src="https://avatars.githubusercontent.com/u/7047377?v=4" width="80;" alt="InDieTasten"/>
|
||||
<br />
|
||||
<sub><b>InDieTasten</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/bmcgonag">
|
||||
<img src="https://avatars.githubusercontent.com/u/7346620?u=2a0f9284f3e12ac1cc15288c254d1ec68a5081e8&v=4" width="80;" alt="bmcgonag"/>
|
||||
|
@ -1044,8 +1095,7 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<br />
|
||||
<sub><b>Vlad Timofeev</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/helixzz">
|
||||
<img src="https://avatars.githubusercontent.com/u/12218889?u=d06d0c103dfbdb99450623064f7da3c5a3675fb6&v=4" width="80;" alt="helixzz"/>
|
||||
|
@ -1071,9 +1121,10 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<a href="https://github.com/frankdez93">
|
||||
<img src="https://avatars.githubusercontent.com/u/87549420?v=4" width="80;" alt="frankdez93"/>
|
||||
<br />
|
||||
<sub><b>frankdez93</b></sub>
|
||||
<sub><b>Frankdez93</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/ratty222">
|
||||
<img src="https://avatars.githubusercontent.com/u/92832598?u=137b65530cbd5f5af9c24cde51baa6cc77cc934b&v=4" width="80;" alt="ratty222"/>
|
||||
|
@ -1085,10 +1136,9 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<a href="https://github.com/hernanpopper">
|
||||
<img src="https://avatars.githubusercontent.com/u/104868017?v=4" width="80;" alt="hernanpopper"/>
|
||||
<br />
|
||||
<sub><b>hernanpopper</b></sub>
|
||||
<sub><b>Hernanpopper</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/NixyJuppie">
|
||||
<img src="https://avatars.githubusercontent.com/u/138570196?u=b102c222487905728b858704962d32759df29ebe&v=4" width="80;" alt="NixyJuppie"/>
|
||||
|
@ -1102,6 +1152,13 @@ Huge thanks to these wonderful people, who sponsor me on GitHub, their support h
|
|||
<br />
|
||||
<sub><b>Nrvo</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/mezza93">
|
||||
<img src="https://avatars.githubusercontent.com/u/153599966?v=4" width="80;" alt="mezza93"/>
|
||||
<br />
|
||||
<sub><b>mezza93</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
<!-- readme: sponsors -end -->
|
||||
|
|
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -67,7 +67,7 @@ jobs:
|
|||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
tags: |
|
||||
${{ env.GHCR_TAG }}
|
||||
${{ env.DOCKERHUB_TAG }}
|
||||
|
|
39
Dockerfile
39
Dockerfile
|
@ -1,20 +1,46 @@
|
|||
# Build stage
|
||||
FROM node:16-buster-slim AS build
|
||||
# Specify the Node.js version to use
|
||||
ARG NODE_VERSION=16
|
||||
|
||||
# Specify the Debian version to use, the default is "bullseye"
|
||||
ARG DEBIAN_VERSION=bullseye
|
||||
|
||||
# Use Node.js Docker image as the base image, with specific Node and Debian versions
|
||||
FROM node:${NODE_VERSION}-${DEBIAN_VERSION} AS build
|
||||
|
||||
# Set the container's default shell to Bash and enable some options
|
||||
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
|
||||
|
||||
# Install Chromium browser and Download and verify Google Chrome’s signing key
|
||||
RUN apt-get update -qq --fix-missing && \
|
||||
apt-get -qqy install --allow-unauthenticated gnupg wget && \
|
||||
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
|
||||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
|
||||
apt-get update -qq && \
|
||||
apt-get -qqy --no-install-recommends install chromium traceroute python make g++ && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Run the Chromium browser's version command and redirect its output to the /etc/chromium-version file
|
||||
RUN /usr/bin/chromium --no-sandbox --version > /etc/chromium-version
|
||||
|
||||
# Set the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and yarn.lock to the working directory
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
# Run yarn install to install dependencies and clear yarn cache
|
||||
RUN apt-get update && \
|
||||
yarn install --production && \
|
||||
yarn install --production --frozen-lockfile --network-timeout 100000 && \
|
||||
rm -rf /app/node_modules/.cache
|
||||
|
||||
# Copy all files to working directory
|
||||
COPY . .
|
||||
|
||||
# Run yarn build to build the application
|
||||
RUN yarn build --production
|
||||
|
||||
# Final stage
|
||||
FROM node:16-buster-slim AS final
|
||||
FROM node:${NODE_VERSION}-${DEBIAN_VERSION} AS final
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -26,8 +52,11 @@ RUN apt-get update && \
|
|||
chmod 755 /usr/bin/chromium && \
|
||||
rm -rf /var/lib/apt/lists/* /app/node_modules/.cache
|
||||
|
||||
# Exposed container port, the default is 3000, which can be modified through the environment variable PORT
|
||||
EXPOSE ${PORT:-3000}
|
||||
|
||||
# Set the environment variable CHROME_PATH to specify the path to the Chromium binaries
|
||||
ENV CHROME_PATH='/usr/bin/chromium'
|
||||
|
||||
CMD ["yarn", "serve"]
|
||||
# Define the command executed when the container starts and start the server.js of the Node.js application
|
||||
CMD ["yarn", "serve"]
|
|
@ -54,6 +54,11 @@ const handler = async (url, event, context) => {
|
|||
if (yahooMx.length > 0) {
|
||||
mailServices.push({ provider: 'Yahoo', value: yahooMx[0].exchange });
|
||||
}
|
||||
// Check MX records for Mimecast
|
||||
const mimecastMx = mxRecords.filter(record => record.exchange.includes('mimecast.com'));
|
||||
if (mimecastMx.length > 0) {
|
||||
mailServices.push({ provider: 'Mimecast', value: mimecastMx[0].exchange });
|
||||
}
|
||||
|
||||
return {
|
||||
mxRecords,
|
||||
|
|
|
@ -7236,9 +7236,9 @@ caniuse-api@^3.0.0:
|
|||
lodash.uniq "^4.5.0"
|
||||
|
||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001503:
|
||||
version "1.0.30001517"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz"
|
||||
integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA==
|
||||
version "1.0.30001591"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001591.tgz"
|
||||
integrity sha512-PCzRMei/vXjJyL5mJtzNiUCKP59dm8Apqc3PH8gJkMnMXZGox93RbE76jHsmLwmIo6/3nsYIpJtx0O7u5PqFuQ==
|
||||
|
||||
case-sensitive-paths-webpack-plugin@^2.4.0:
|
||||
version "2.4.0"
|
||||
|
|
Loading…
Reference in a new issue