├── html
└── .gitkeep
├── cli
├── .nvmrc
├── .dockerignore
├── src
│ ├── app.js
│ ├── handlebars-helpers.js
│ ├── shell-commands.js
│ ├── config-processor.js
│ └── cli.js
├── .prettierrc.cjs
├── .eslintrc.cjs
├── Dockerfile
├── package.json
└── .gitignore
├── examples
├── php
│ ├── phpinfo.php
│ └── test.php
├── nodejs-backend
│ ├── .dockerignore
│ ├── Dockerfile
│ ├── package.json
│ ├── server.js
│ ├── .gitignore
│ └── package-lock.json
├── html
│ └── index.html
├── switch-to-prod-env.cast
├── switch-to-prod-env.svg
└── initial-setup.cast
├── .env
├── certbot
├── start-certbot.sh
├── certbot-force-renew.sh
├── certbot-delete.sh
├── Dockerfile
└── certbot-certonly.sh
├── .gitignore
├── nginx-conf
└── conf.d
│ ├── includes
│ ├── hsts.conf
│ ├── options-ssl-nginx.conf
│ └── gzip.conf
│ └── upstreams.conf
├── .vscode
└── settings.json
├── nginx
├── Dockerfile
├── start-nginx.sh
└── config-nginx.sh
├── cron
├── Dockerfile
└── renew_certs.sh
├── templates
├── nginx.conf.hbs
└── servers.conf.hbs
├── cli.sh
├── docker-compose.yml
├── LICENSE
└── README.md
/html/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cli/.nvmrc:
--------------------------------------------------------------------------------
1 | lts/*
2 |
--------------------------------------------------------------------------------
/examples/php/phpinfo.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cli/.dockerignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | npm-debug.log
--------------------------------------------------------------------------------
/examples/php/test.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/nodejs-backend/.dockerignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | npm-debug.log
--------------------------------------------------------------------------------
/cli/src/app.js:
--------------------------------------------------------------------------------
1 | import askConfig from './cli.js';
2 |
3 | await askConfig();
4 |
--------------------------------------------------------------------------------
/.env:
--------------------------------------------------------------------------------
1 | COMPOSE_PROJECT_NAME=letsencrypt-docker-compose
2 | CURRENT_USER=0:0
3 | DOCKER_GROUP=0
4 |
--------------------------------------------------------------------------------
/certbot/start-certbot.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | source ./certbot-certonly.sh
4 |
5 | sleep infinity & wait $!
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | config.json
2 | html/
3 | nginx-conf/
4 | !nginx-conf/conf.d/upstreams.conf
5 | !nginx-conf/conf.d/includes/
--------------------------------------------------------------------------------
/nginx-conf/conf.d/includes/hsts.conf:
--------------------------------------------------------------------------------
1 | add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
--------------------------------------------------------------------------------
/nginx-conf/conf.d/upstreams.conf:
--------------------------------------------------------------------------------
1 | #upstream backend {
2 | # server backend1.example.com:8080;
3 | # server backend2.example.com:8080;
4 | #}
--------------------------------------------------------------------------------
/cli/.prettierrc.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | trailingComma: 'es5',
3 | tabWidth: 2,
4 | semi: true,
5 | singleQuote: true,
6 | bracketSpacing: true,
7 | };
8 |
--------------------------------------------------------------------------------
/examples/nodejs-backend/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:18-alpine
2 | WORKDIR /usr/src/app
3 | COPY package*.json ./
4 | RUN npm ci --only=production
5 | COPY . .
6 | EXPOSE 8080
7 | ENV NODE_ENV=production
8 | CMD ["node", "server.js"]
--------------------------------------------------------------------------------
/cli/src/handlebars-helpers.js:
--------------------------------------------------------------------------------
1 | export default (Handlebars) => {
2 | Handlebars.registerHelper('ifEquals', function (arg1, arg2, options) {
3 | return arg1 === arg2 ? options.fn(this) : options.inverse(this);
4 | });
5 | };
6 |
--------------------------------------------------------------------------------
/certbot/certbot-force-renew.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | echo "Forcibly renewing all certificates"
6 |
7 | if [ "$DRY_RUN" = "true" ]; then
8 | echo "Dry run is enabled"
9 | else
10 | certbot renew --no-random-sleep-on-renew --force-renew
11 | fi
12 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.codeActionsOnSave": {
3 | "source.fixAll.eslint": true
4 | },
5 | "editor.formatOnSave": true,
6 | "editor.defaultFormatter": "esbenp.prettier-vscode",
7 | "[handlebars]": {
8 | "editor.formatOnSave": false
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/nginx/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx:1.23-alpine
2 |
3 | RUN apk add --no-cache openssl jq
4 |
5 | WORKDIR /letsencrypt-docker-compose
6 |
7 | COPY config-nginx.sh start-nginx.sh ./
8 | RUN chmod +x config-nginx.sh start-nginx.sh
9 |
10 | EXPOSE 80
11 |
12 | CMD ["/letsencrypt-docker-compose/start-nginx.sh"]
--------------------------------------------------------------------------------
/cli/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | browser: false,
4 | node: true,
5 | commonjs: false,
6 | es2021: true,
7 | },
8 | extends: ['airbnb-base', 'prettier'],
9 | parserOptions: {
10 | ecmaVersion: 'latest',
11 | },
12 | rules: {
13 | 'no-console': 'off',
14 | 'import/extensions': 'off',
15 | },
16 | };
17 |
--------------------------------------------------------------------------------
/cli/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:18-alpine
2 |
3 | RUN apk update && \
4 | apk add --no-cache docker-cli docker-cli-compose
5 |
6 | WORKDIR /letsencrypt-docker-compose/cli
7 | COPY package*.json ./
8 | RUN npm ci --only=production
9 | COPY . .
10 | ENV NODE_ENV=production
11 |
12 | WORKDIR /workdir
13 |
14 | CMD ["node", "/letsencrypt-docker-compose/cli/src/app.js"]
--------------------------------------------------------------------------------
/examples/nodejs-backend/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nodejs-backend-example",
3 | "version": "1.0.0",
4 | "description": "Node.js on Docker",
5 | "main": "server.js",
6 | "scripts": {
7 | "start": "node server.js"
8 | },
9 | "license": "Apache-2.0",
10 | "dependencies": {
11 | "express": "^4.18.1",
12 | "express-ws": "^5.0.2"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/cron/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alpine:3.17
2 |
3 | RUN apk update && \
4 | apk add --no-cache docker-cli docker-cli-compose
5 |
6 | ENV RENEW_CERTS_PERIODICITY=daily
7 | COPY renew_certs.sh /etc/periodic/${RENEW_CERTS_PERIODICITY}/renew_certs
8 | RUN chmod +x /etc/periodic/${RENEW_CERTS_PERIODICITY}/renew_certs
9 |
10 | WORKDIR /workdir
11 |
12 | CMD ["crond", "-f", "-l", "0"]
13 |
--------------------------------------------------------------------------------
/certbot/certbot-delete.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | domain="$1"
6 |
7 | if [ -z "$domain" ]; then
8 | echo "Domain is not configured"
9 | exit 1;
10 | fi
11 |
12 | echo "Deleting the certificate for domain $domain"
13 |
14 | if [ "$DRY_RUN" = "true" ]; then
15 | echo "Dry run is enabled"
16 | else
17 | certbot --noninteractive delete --cert-name "${domain}"
18 | fi
19 |
--------------------------------------------------------------------------------
/certbot/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM certbot/certbot:v2.4.0
2 |
3 | RUN apk add --no-cache jq
4 |
5 | WORKDIR /letsencrypt-docker-compose
6 |
7 | COPY start-certbot.sh certbot-certonly.sh certbot-delete.sh certbot-force-renew.sh ./
8 | RUN chmod +x start-certbot.sh certbot-certonly.sh certbot-delete.sh certbot-force-renew.sh
9 |
10 | ENTRYPOINT []
11 | CMD ["/letsencrypt-docker-compose/start-certbot.sh"]
--------------------------------------------------------------------------------
/cron/renew_certs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ "$DRY_RUN" = "true" ]; then
4 | echo "Dry run is enabled"
5 | exit 0
6 | fi
7 |
8 | cd /workdir
9 | echo "Renewing Let's Encrypt Certificates... (`date`)"
10 | docker compose run --rm --no-deps --no-TTY --entrypoint certbot certbot renew --no-random-sleep-on-renew
11 | echo "Reloading Nginx configuration"
12 | docker compose exec --no-TTY nginx nginx -s reload
13 |
--------------------------------------------------------------------------------
/nginx-conf/conf.d/includes/options-ssl-nginx.conf:
--------------------------------------------------------------------------------
1 | ssl_session_cache shared:le_nginx_SSL:10m;
2 | ssl_session_timeout 1440m;
3 | ssl_session_tickets off;
4 |
5 | ssl_protocols TLSv1.2 TLSv1.3;
6 | ssl_prefer_server_ciphers off;
7 |
8 | ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
9 |
--------------------------------------------------------------------------------
/examples/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Static web page
8 |
9 |
10 |
11 | Welcome to a static website
12 |
13 |
14 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/examples/nodejs-backend/server.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const app = express();
3 | const expressWs = require("express-ws")(app);
4 |
5 | const host = "0.0.0.0";
6 | const port = 8080;
7 |
8 | app.get("/", (req, res) => {
9 | res.send("Hello, world!");
10 | });
11 |
12 | app.get("/hello", (req, res) => {
13 | res.send(`Hello, ${req.query.name || "world"}!`);
14 | });
15 |
16 | app.ws("/echo", function (ws, req) {
17 | ws.on("message", function (msg) {
18 | console.log("Received message", msg);
19 | ws.send(msg);
20 | });
21 | });
22 |
23 | app.listen(port, host);
24 | console.log(`Running on http://${host}:${port}`);
25 |
--------------------------------------------------------------------------------
/nginx-conf/conf.d/includes/gzip.conf:
--------------------------------------------------------------------------------
1 | gzip on;
2 | gzip_disable "msie6";
3 |
4 | gzip_vary on;
5 | gzip_proxied any;
6 | gzip_comp_level 6;
7 | gzip_buffers 16 8k;
8 | gzip_http_version 1.1;
9 | gzip_min_length 256;
10 | gzip_types
11 | application/atom+xml
12 | application/geo+json
13 | application/javascript
14 | application/x-javascript
15 | application/json
16 | application/ld+json
17 | application/manifest+json
18 | application/rdf+xml
19 | application/rss+xml
20 | application/xhtml+xml
21 | application/xml
22 | font/eot
23 | font/otf
24 | font/ttf
25 | image/svg+xml
26 | text/css
27 | text/javascript
28 | text/plain
29 | text/xml;
--------------------------------------------------------------------------------
/nginx/start-nginx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | source ./config-nginx.sh
4 |
5 | nginx_dir="/etc/nginx"
6 | letsencrypt_certs_dir="/etc/letsencrypt"
7 |
8 | wait_for_lets_encrypt_certificate() {
9 | while [ -f "${nginx_dir}/conf.d/${1}.conf" ]; do
10 | echo "Waiting for Let's Encrypt certificate for $1"
11 | sleep 5s & wait ${!}
12 | if [ -d "${letsencrypt_certs_dir}/live/${1}" ]; then
13 | use_lets_encrypt_certificate "$1"
14 | reload_nginx
15 | break
16 | fi
17 | done
18 | }
19 |
20 | for domain in $domains; do
21 | if [ ! -d "${letsencrypt_certs_dir}/live/${domain}" ]; then
22 | if [ "$DRY_RUN" = "true" ]; then
23 | echo "Dry run is enabled"
24 | else
25 | wait_for_lets_encrypt_certificate "$domain" &
26 | fi
27 | fi
28 | done
29 |
30 | exec nginx -g "daemon off;"
--------------------------------------------------------------------------------
/cli/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "letsencrypt-docker-compose-cli",
3 | "version": "1.0.0",
4 | "description": "A CLI for configuring Let's Encrypt Docker Compose that automatically obtains and renews Let's Encrypt TLS certificates and sets up HTTPS in Nginx for multiple domain names using Docker Compose.",
5 | "type": "module",
6 | "main": "./src/index.js",
7 | "scripts": {
8 | "format": "prettier --write . && eslint --fix"
9 | },
10 | "author": "Eugene Khyst",
11 | "license": "Apache-2.0",
12 | "bugs": {
13 | "url": "https://github.com/evgeniy-khist/letsencrypt-docker-compose/issues"
14 | },
15 | "homepage": "https://github.com/evgeniy-khist/letsencrypt-docker-compose#readme",
16 | "devDependencies": {
17 | "eslint": "8.35.0",
18 | "eslint-config-airbnb-base": "15.0.0",
19 | "eslint-config-prettier": "8.6.0",
20 | "eslint-plugin-import": "2.27.5",
21 | "prettier": "2.8.4"
22 | },
23 | "dependencies": {
24 | "handlebars": "^4.7.7",
25 | "inquirer": "9.1.4"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/templates/nginx.conf.hbs:
--------------------------------------------------------------------------------
1 | user nginx;
2 | worker_processes auto;
3 |
4 | error_log /var/log/nginx/error.log notice;
5 | pid /var/run/nginx.pid;
6 |
7 |
8 | events {
9 | worker_connections 1024;
10 | }
11 |
12 |
13 | http {
14 | include /etc/nginx/mime.types;
15 | default_type application/octet-stream;
16 |
17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18 | '$status $body_bytes_sent "$http_referer" '
19 | '"$http_user_agent" "$http_x_forwarded_for" "$http_host"';
20 |
21 | access_log /var/log/nginx/access.log main;
22 |
23 | sendfile on;
24 | #tcp_nopush on;
25 |
26 | keepalive_timeout 65;
27 |
28 | server_names_hash_bucket_size 64;
29 |
30 | {{#if gzip}}
31 | include /etc/nginx/conf.d/includes/gzip.conf;
32 | {{/if}}
33 |
34 | map $http_upgrade $connection_upgrade {
35 | default upgrade;
36 | '' close;
37 | }
38 |
39 | include /etc/nginx/conf.d/*.conf;
40 | }
41 |
--------------------------------------------------------------------------------
/cli/src/shell-commands.js:
--------------------------------------------------------------------------------
1 | import { promisify } from 'util';
2 | import { exec } from 'child_process';
3 |
4 | const execute = promisify(exec);
5 |
6 | const runCommand = async (command, logOutput = true) => {
7 | try {
8 | console.log('Executing command:', command);
9 | const { stdout, stderr } = await execute(command);
10 | console.error(stderr);
11 | if (logOutput) {
12 | console.log(stdout);
13 | }
14 | return { stdout, stderr };
15 | } catch (error) {
16 | console.error(error);
17 | return { error };
18 | }
19 | };
20 |
21 | export const isNginxServiceRunning = async () => {
22 | const { stdout } = await runCommand('docker compose ps --format json', false);
23 | const containers = JSON.parse(stdout);
24 | return !!containers.find(
25 | (container) =>
26 | container.Service === 'nginx' && container.State === 'running'
27 | );
28 | };
29 |
30 | export const execNginxReload = async () => {
31 | await runCommand('docker compose exec --no-TTY nginx nginx -s reload');
32 | };
33 |
34 | export const execConfigNginx = async () => {
35 | await runCommand(
36 | 'docker compose exec --no-TTY nginx /letsencrypt-docker-compose/config-nginx.sh'
37 | );
38 | };
39 |
40 | export const execCertbotCertonly = async () => {
41 | await runCommand(
42 | 'docker compose exec --no-TTY certbot /letsencrypt-docker-compose/certbot-certonly.sh'
43 | );
44 | };
45 |
46 | export const execDeleteCertbotCertificate = async (domainName) => {
47 | await runCommand(
48 | `docker compose exec --no-TTY certbot /letsencrypt-docker-compose/certbot-delete.sh ${domainName}`
49 | );
50 | };
51 |
52 | export const execForceRenewCertbotCertificate = async () => {
53 | await runCommand(
54 | 'docker compose exec --no-TTY certbot /letsencrypt-docker-compose/certbot-force-renew.sh'
55 | );
56 | };
57 |
--------------------------------------------------------------------------------
/cli.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | usage() {
4 | cat << EOF
5 | Usage: $(basename $0) COMMAND
6 |
7 | config [OPTIONS] Run the CLI tool
8 | --no-current-user Run as root (Docker default) instead of the current user
9 |
10 | up [OPTIONS] Build, (re)create, and start all services in the background
11 | --dry-run Disable Certbot to run all services locally
12 |
13 | build [OPTIONS] Build or rebuild all Docker images
14 | --no-cache Do not use cache when building the images
15 | EOF
16 | exit 1
17 | }
18 |
19 | case $1 in
20 | config)
21 | CMD=(docker compose run --rm cli)
22 | export CURRENT_USER="$(id -u):$(id -g)"
23 | export DOCKER_GROUP="$(getent group docker | cut -d: -f3)"
24 | shift
25 | while [[ $# -gt 0 ]]; do
26 | case $1 in
27 | --no-current-user)
28 | unset CURRENT_USER
29 | unset DOCKER_GROUP
30 | shift
31 | ;;
32 | *)
33 | echo "Unknown option $1"
34 | usage
35 | ;;
36 | esac
37 | done
38 | ;;
39 | up)
40 | CMD=(docker compose up -d)
41 | shift
42 | while [[ $# -gt 0 ]]; do
43 | case $1 in
44 | --dry-run)
45 | export DRY_RUN=true
46 | shift
47 | ;;
48 | *)
49 | echo "Unknown option $1"
50 | usage
51 | ;;
52 | esac
53 | done
54 | ;;
55 | build)
56 | CMD=(docker compose --profile config build)
57 | shift
58 | while [[ $# -gt 0 ]]; do
59 | case $1 in
60 | --no-cache)
61 | CMD+=(--no-cache)
62 | shift
63 | ;;
64 | *)
65 | echo "Unknown option $1"
66 | usage
67 | ;;
68 | esac
69 | done
70 | ;;
71 | *)
72 | echo "Unknown command $1"
73 | usage
74 | ;;
75 | esac
76 |
77 | "${CMD[@]}"
78 |
--------------------------------------------------------------------------------
/certbot/certbot-certonly.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | config="/letsencrypt-docker-compose/config.json"
6 |
7 | if [ ! -f "$config" ]; then
8 | echo "Configuration file not found"
9 | exit 1;
10 | fi
11 |
12 | domains=$(jq -r '.domains[].domain' $config)
13 |
14 | if [ -z "$domains" ]; then
15 | echo "Domains are not configured"
16 | exit 1;
17 | fi
18 |
19 | for domain in $domains; do
20 | echo "Obtaining the certificate for domain $domain"
21 |
22 | www_subdomain=$(jq -r --arg domain "$domain" '.domains[] | select(.domain == $domain) | .wwwSubdomain' $config)
23 | email=$(jq -r --arg domain "$domain" '.domains[] | select(.domain == $domain) | .email' $config)
24 | test_cert=$(jq -r --arg domain "$domain" '.domains[] | select(.domain == $domain) | .testCert' $config)
25 | rsa_key_size=$(jq -r --arg domain "$domain" '.domains[] | select(.domain == $domain) | .rsaKeySize' $config)
26 |
27 | mkdir -p "/var/www/certbot/${domain}"
28 |
29 | if [ -d "/etc/letsencrypt/live/${domain}" ]; then
30 | echo "Let's Encrypt certificate for ${domain} already exists"
31 | continue
32 | fi
33 |
34 | if [ "$www_subdomain" = "true" ]; then
35 | www_subdomain_arg="-d www.${domain}"
36 | echo "A 'www' subdomain enabled"
37 | else
38 | www_subdomain_arg=""
39 | fi
40 |
41 | if [ "$test_cert" = "true" ]; then
42 | test_cert_arg="--test-cert"
43 | echo "Testing on staging environment enabled"
44 | else
45 | test_cert_arg=""
46 | fi
47 |
48 | if [ -z "$email" ]; then
49 | email_arg="--register-unsafely-without-email"
50 | echo "Registering unsafely without email"
51 | else
52 | email_arg="--email $email"
53 | echo "Using email ${email}"
54 | fi
55 |
56 | echo "RSA key size is ${rsa_key_size}"
57 |
58 | if [ "$DRY_RUN" = "true" ]; then
59 | echo "Dry run is enabled"
60 | else
61 | certbot certonly \
62 | --webroot \
63 | -w "/var/www/certbot/${domain}" \
64 | -d "$domain" \
65 | $www_subdomain_arg \
66 | $test_cert_arg \
67 | $email_arg \
68 | --rsa-key-size "${rsa_key_size}" \
69 | --agree-tos \
70 | --noninteractive \
71 | --verbose || true
72 | fi
73 | done
74 |
--------------------------------------------------------------------------------
/templates/servers.conf.hbs:
--------------------------------------------------------------------------------
1 | server {
2 | listen 80;
3 | listen [::]:80;
4 | server_name {{domain}} {{#if wwwSubdomain}}www.{{domain}}{{/if}};
5 |
6 | location /.well-known/acme-challenge/ {
7 | root /var/www/certbot/{{domain}};
8 | }
9 |
10 | location / {
11 | return 301 https://$host$request_uri;
12 | }
13 | }
14 |
15 | server {
16 | listen 443 ssl http2;
17 | listen [::]:443 ssl http2;
18 | server_name {{domain}} {{#if wwwSubdomain}}www.{{domain}}{{/if}};
19 |
20 | include /etc/nginx/ssl/{{domain}}.conf;
21 |
22 | ssl_dhparam /etc/nginx/ssl/ssl-dhparams.pem;
23 |
24 | include /etc/nginx/conf.d/includes/options-ssl-nginx.conf;
25 |
26 | include /etc/nginx/conf.d/includes/hsts.conf;
27 |
28 | {{#if dnsResolver}}
29 | resolver {{dnsResolver}};
30 | {{/if}}
31 |
32 | {{#*inline "staticContent"}}
33 | location / {
34 | root /var/www/html/{{domain}};
35 | index index.html index.htm;
36 | }
37 | {{/inline}}
38 |
39 | {{#*inline "reverseProxy"}}
40 | location / {
41 | proxy_set_header Host $host;
42 | proxy_set_header X-Real-IP $remote_addr;
43 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
44 | proxy_set_header X-Forwarded-Proto $scheme;
45 |
46 | {{#if dnsResolver}}
47 | # Let Nginx start if upstream host is unreachable
48 | set $upstream {{upstream}};
49 | proxy_pass http://$upstream;
50 | {{else}}
51 | proxy_pass http://{{upstream}};
52 | {{/if}}
53 |
54 | {{#if websockets}}
55 | proxy_http_version 1.1;
56 | proxy_set_header Upgrade $http_upgrade;
57 | proxy_set_header Connection $connection_upgrade;
58 | proxy_read_timeout 300;
59 | {{/if}}
60 | }
61 | {{/inline}}
62 |
63 | {{#*inline "phpFpm"}}
64 | root /var/www/html/{{domain}};
65 |
66 | location / {
67 | index index.php index.html index.htm;
68 | }
69 |
70 | location ~ [^/]\.php(/|$) {
71 | fastcgi_split_path_info ^(.+?\.php)(/.*)$;
72 | if (!-f $document_root$fastcgi_script_name) {
73 | return 404;
74 | }
75 |
76 | fastcgi_param HTTP_PROXY "";
77 |
78 | fastcgi_pass php-fpm:9000;
79 | fastcgi_index index.php;
80 |
81 | include fastcgi_params;
82 |
83 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
84 | }
85 | {{/inline}}
86 |
87 | {{> (lookup . 'requestHandler') }}
88 | }
89 |
--------------------------------------------------------------------------------
/cli/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # Snowpack dependency directory (https://snowpack.dev/)
45 | web_modules/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.test
74 |
75 | # parcel-bundler cache (https://parceljs.org/)
76 | .cache
77 | .parcel-cache
78 |
79 | # Next.js build output
80 | .next
81 | out
82 |
83 | # Nuxt.js build / generate output
84 | .nuxt
85 | dist
86 |
87 | # Gatsby files
88 | .cache/
89 | # Comment in the public line in if your project uses Gatsby and not Next.js
90 | # https://nextjs.org/blog/next-9-1#public-directory-support
91 | # public
92 |
93 | # vuepress build output
94 | .vuepress/dist
95 |
96 | # Serverless directories
97 | .serverless/
98 |
99 | # FuseBox cache
100 | .fusebox/
101 |
102 | # DynamoDB Local files
103 | .dynamodb/
104 |
105 | # TernJS port file
106 | .tern-port
107 |
108 | # Stores VSCode versions used for testing VSCode extensions
109 | .vscode-test
110 |
111 | # yarn v2
112 | .yarn/cache
113 | .yarn/unplugged
114 | .yarn/build-state.yml
115 | .yarn/install-state.gz
116 | .pnp.*
--------------------------------------------------------------------------------
/cli/src/config-processor.js:
--------------------------------------------------------------------------------
1 | import * as fs from 'fs/promises';
2 | import Handlebars from 'handlebars';
3 | import registerHelpers from './handlebars-helpers.js';
4 |
5 | registerHelpers(Handlebars);
6 |
7 | const configPath = './config.json';
8 | const templatesDir = './templates';
9 | const nginxConfDir = './nginx-conf';
10 |
11 | export const readConfig = async () => {
12 | console.log('Reading config', configPath);
13 | const defaultConfig = { domains: [] };
14 | try {
15 | const configJson = await fs.readFile(configPath, 'utf8');
16 | const config = JSON.parse(configJson);
17 | console.log('Found an existing config');
18 | return Object.assign(defaultConfig, config);
19 | } catch (e) {
20 | console.log('Existing valid config not found, using new empty config');
21 | return defaultConfig;
22 | }
23 | };
24 |
25 | export const writeConfig = async (config) => {
26 | console.log('Writing config', configPath);
27 | const configJson = JSON.stringify(config, null, 2);
28 | await fs.writeFile(configPath, configJson);
29 | };
30 |
31 | const compileTemplate = async (templateFilename) => {
32 | const templatePath = `${templatesDir}/${templateFilename}`;
33 | console.log('Compiling template', templatePath);
34 | const template = await fs.readFile(templatePath, 'utf8');
35 | return Handlebars.compile(template);
36 | };
37 |
38 | const writeNginxConfigFile = async (configFilename, content) => {
39 | const nginxConfigPath = `${nginxConfDir}/${configFilename}`;
40 | console.log('Writing', nginxConfigPath);
41 | await fs.writeFile(nginxConfigPath, content);
42 | };
43 |
44 | export const writeNginxConfigFiles = async (config, domainNames) => {
45 | const nginxConfTemplate = await compileTemplate('nginx.conf.hbs');
46 | const serverConfTemplate = await compileTemplate('servers.conf.hbs');
47 |
48 | await writeNginxConfigFile('nginx.conf', nginxConfTemplate(config));
49 |
50 | const writeServerConfigPromises = config.domains
51 | ?.filter(({ domain }) => !domainNames || domainNames.includes(domain))
52 | .map((serverConfig) =>
53 | writeNginxConfigFile(
54 | `conf.d/${serverConfig.domain}.conf`,
55 | serverConfTemplate(serverConfig)
56 | )
57 | );
58 | if (writeServerConfigPromises) {
59 | await Promise.all(writeServerConfigPromises);
60 | }
61 | };
62 |
63 | export const deleteNginxConfigFile = async (domainName) => {
64 | const nginxConfigPath = `${nginxConfDir}/conf.d/${domainName}.conf`;
65 | console.log('Deleting', nginxConfigPath);
66 | await fs.unlink(nginxConfigPath);
67 | };
68 |
--------------------------------------------------------------------------------
/nginx/config-nginx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | config="/letsencrypt-docker-compose/config.json"
6 |
7 | if [ ! -f "$config" ]; then
8 | echo "Configuration file not found"
9 | exit 1;
10 | fi
11 |
12 | domains=$(jq -r '.domains[].domain' $config)
13 |
14 | if [ -z "$domains" ]; then
15 | echo "Domains are not configured"
16 | exit 1;
17 | fi
18 |
19 | nginx_conf_dir="/etc/nginx/ssl"
20 | letsencrypt_certs_dir="/etc/letsencrypt"
21 |
22 | generate_dhparams_if_absent() {
23 | if [ ! -f "${nginx_conf_dir}/ssl-dhparams.pem" ]; then
24 | dhparams_size=$(jq -r '.dhparamsSize' $config)
25 | mkdir -p "${nginx_conf_dir}"
26 | openssl dhparam -out "${nginx_conf_dir}/ssl-dhparams.pem" "$dhparams_size"
27 | fi
28 | }
29 |
30 | generate_dummy_certificate_if_absent() {
31 | if [ ! -f "${nginx_conf_dir}/dummy/${1}/fullchain.pem" ]; then
32 | echo "Generating dummy ceritificate for $1"
33 | mkdir -p "${nginx_conf_dir}/dummy/${1}"
34 | printf "[dn]\nCN=${1}\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:${1}, DNS:www.${1}\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" > openssl.cnf
35 | openssl req -x509 -out "${nginx_conf_dir}/dummy/${1}/fullchain.pem" -keyout "${nginx_conf_dir}/dummy/${1}/privkey.pem" \
36 | -newkey rsa:2048 -nodes -sha256 \
37 | -subj "/CN=${1}" -extensions EXT -config openssl.cnf
38 | rm -f openssl.cnf
39 | fi
40 | }
41 |
42 | use_dummy_certificate() {
43 | echo "Switching Nginx to use dummy certificate for $1"
44 | cat < "${nginx_conf_dir}/${1}.conf"
45 | ssl_certificate ${nginx_conf_dir}/dummy/${1}/fullchain.pem;
46 | ssl_certificate_key ${nginx_conf_dir}/dummy/${1}/privkey.pem;
47 | EOF
48 | }
49 |
50 | use_lets_encrypt_certificate() {
51 | echo "Switching Nginx to use Let's Encrypt certificate for $1"
52 | cat < "${nginx_conf_dir}/${1}.conf"
53 | ssl_certificate ${letsencrypt_certs_dir}/live/${1}/fullchain.pem;
54 | ssl_certificate_key ${letsencrypt_certs_dir}/live/${1}/privkey.pem;
55 | EOF
56 | }
57 |
58 | reload_nginx() {
59 | if [ -e /var/run/nginx.pid ]; then
60 | echo "Reloading Nginx configuration"
61 | nginx -s reload
62 | fi
63 | }
64 |
65 | echo "Configuring domains:"
66 | echo "$domains"
67 |
68 | generate_dhparams_if_absent
69 |
70 | for domain in $domains; do
71 | echo "Configuring domain $domain"
72 |
73 | generate_dummy_certificate_if_absent "$domain"
74 |
75 | if [ ! -d "${letsencrypt_certs_dir}/live/${domain}" ]; then
76 | use_dummy_certificate "$domain"
77 | else
78 | use_lets_encrypt_certificate "$domain"
79 | fi
80 | done
81 |
82 | reload_nginx
83 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | cli:
5 | build: ./cli
6 | image: evgeniy-khyst/letsencrypt-docker-compose-cli
7 | user: ${CURRENT_USER}
8 | group_add:
9 | - ${DOCKER_GROUP}
10 | environment:
11 | - COMPOSE_PROJECT_NAME
12 | - CURRENT_USER
13 | - DOCKER_GROUP
14 | volumes:
15 | - /var/run/docker.sock:/var/run/docker.sock
16 | - ./:/workdir
17 | profiles:
18 | - config
19 |
20 | nginx:
21 | build: ./nginx
22 | image: evgeniy-khyst/nginx
23 | environment:
24 | - DRY_RUN
25 | volumes:
26 | - ./config.json:/letsencrypt-docker-compose/config.json:ro
27 | - ./nginx-conf/nginx.conf:/etc/nginx/nginx.conf:ro
28 | - ./nginx-conf/conf.d:/etc/nginx/conf.d:ro
29 | - ./html:/var/www/html:ro
30 | - nginx_conf_ssl:/etc/nginx/ssl
31 | - letsencrypt_certs:/etc/letsencrypt
32 | - certbot_acme_challenge:/var/www/certbot
33 | ports:
34 | - "80:80"
35 | - "443:443"
36 | healthcheck:
37 | test: ["CMD", "nc", "-z", "nginx", "80"]
38 | interval: 30s
39 | timeout: 30s
40 | start_period: 30s
41 | retries: 10
42 | restart: unless-stopped
43 |
44 | certbot:
45 | build: ./certbot
46 | image: evgeniy-khyst/certbot
47 | environment:
48 | - DRY_RUN
49 | volumes:
50 | - ./config.json:/letsencrypt-docker-compose/config.json:ro
51 | - letsencrypt_certs:/etc/letsencrypt
52 | - certbot_acme_challenge:/var/www/certbot
53 | healthcheck:
54 | test:
55 | [
56 | "CMD-SHELL",
57 | 'test -n "$$(ls -A /etc/letsencrypt/live/)" || test "$$DRY_RUN" == "true" || exit 1',
58 | ]
59 | interval: 30s
60 | timeout: 30s
61 | start_period: 30s
62 | retries: 5
63 | depends_on:
64 | nginx:
65 | condition: service_healthy
66 | restart: unless-stopped
67 |
68 | cron:
69 | build: ./cron
70 | image: evgeniy-khyst/cron
71 | environment:
72 | - COMPOSE_PROJECT_NAME
73 | - DRY_RUN
74 | volumes:
75 | - /var/run/docker.sock:/var/run/docker.sock
76 | - ./:/workdir:ro
77 | depends_on:
78 | certbot:
79 | condition: service_healthy
80 | restart: unless-stopped
81 |
82 | # Remove if you don't use PHP
83 | php-fpm:
84 | image: php:fpm-alpine
85 | volumes:
86 | - ./html:/var/www/html:ro
87 |
88 | # Replace with your backend image or remove
89 | example-backend:
90 | build: ./examples/nodejs-backend
91 | image: evgeniy-khyst/expressjs-helloworld
92 | restart: unless-stopped
93 |
94 | volumes:
95 | nginx_conf_ssl:
96 | letsencrypt_certs:
97 | certbot_acme_challenge:
98 |
--------------------------------------------------------------------------------
/examples/nodejs-backend/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
--------------------------------------------------------------------------------
/examples/switch-to-prod-env.cast:
--------------------------------------------------------------------------------
1 | {"version": 2, "width": 163, "height": 41, "timestamp": 1678872467, "idle_time_limit": 1.0, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}, "title": "letsencrypt-docker-compose switch to a Let's Encrypt production environment private"}
2 | [0.547203, "o", "\u001b[?2004h\u001b[01;34mletsencrypt-docker-compose\u001b[00m$ "]
3 | [1.547867, "o", "."]
4 | [1.626925, "o", "/"]
5 | [1.787056, "o", "c"]
6 | [1.898972, "o", "l"]
7 | [2.074966, "o", "i"]
8 | [2.619487, "o", "."]
9 | [3.003128, "o", "s"]
10 | [3.178924, "o", "h"]
11 | [3.258903, "o", " "]
12 | [3.515057, "o", "c"]
13 | [3.610893, "o", "o"]
14 | [3.818909, "o", "n"]
15 | [3.978966, "o", "f"]
16 | [4.090884, "o", "i"]
17 | [4.170966, "o", "g"]
18 | [4.347055, "o", "\r\n\u001b[?2004l\r"]
19 | [5.347942, "o", "Reading config ./config.json\r\n"]
20 | [5.350976, "o", "Found an existing config\r\n"]
21 | [5.351315, "o", "Executing command: docker compose ps --format json\r\n"]
22 | [5.47844, "o", "\r\n"]
23 | [5.500116, "o", "\u001b[?25l"]
24 | [5.516615, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat do you want to do?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Use arrow keys)\u001b[22m\r\n\u001b[36m❯ Switch to a Let's Encrypt production environment\u001b[39m \r\n Add new domains \r\n Remove existing domains \r\n Manually renew all Let's Encrypt certificates (force renewal) \r\n Reload Nginx configuration without downtime "]
25 | [5.517118, "o", "\u001b[46D\u001b[46C"]
26 | [6.373344, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
27 | [6.374422, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat do you want to do?\u001b[22m\u001b[0m \u001b[0m\r\n Switch to a Let's Encrypt production environment \r\n\u001b[36m❯ Add new domains\u001b[39m \r\n Remove existing domains \r\n Manually renew all Let's Encrypt certificates (force renewal) \r\n Reload Nginx configuration without downtime \u001b[46D"]
28 | [6.374836, "o", "\u001b[46C"]
29 | [6.897285, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
30 | [6.899025, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat do you want to do?\u001b[22m\u001b[0m \u001b[0m\r\n\u001b[36m❯ Switch to a Let's Encrypt production environment\u001b[39m \r\n Add new domains \r\n Remove existing domains \r\n Manually renew all Let's Encrypt certificates (force renewal) \r\n Reload Nginx configuration without downtime \u001b[46D\u001b[46C"]
31 | [7.523046, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
32 | [7.523646, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat do you want to do?\u001b[22m\u001b[0m \u001b[0m\u001b[36mSwitch to a Let's Encrypt production environment\u001b[39m\u001b[74D\u001b[74C"]
33 | [7.524462, "o", "\r\n\u001b[?25h"]
34 | [7.528264, "o", "\u001b[?25l"]
35 | [7.529477, "o", "\u001b[32m?\u001b[39m \u001b[1mWhich domain should be switched to a Let's Encrypt production environment?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Use arrow keys)\u001b[22m\r\n\u001b[36m❯ a.evgeniy-khyst.com\u001b[39m \r\n b.evgeniy-khyst.com \u001b[22D\u001b[22C"]
36 | [8.33539, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
37 | [8.335889, "o", "\u001b[32m?\u001b[39m \u001b[1mWhich domain should be switched to a Let's Encrypt production environment?\u001b[22m\u001b[0m \u001b[0m\r\n a.evgeniy-khyst.com \r\n\u001b[36m❯ b.evgeniy-khyst.com\u001b[39m "]
38 | [8.336161, "o", "\u001b[22D\u001b[22C"]
39 | [8.734939, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
40 | [8.735558, "o", "\u001b[32m?\u001b[39m \u001b[1mWhich domain should be switched to a Let's Encrypt production environment?\u001b[22m\u001b[0m \u001b[0m\r\n\u001b[36m❯ a.evgeniy-khyst.com\u001b[39m \r\n b.evgeniy-khyst.com \u001b[22D\u001b[22C"]
41 | [9.327279, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
42 | [9.327734, "o", "\u001b[32m?\u001b[39m \u001b[1mWhich domain should be switched to a Let's Encrypt production environment?\u001b[22m\u001b[0m \u001b[0m\u001b[36ma.evgeniy-khyst.com\u001b[39m\u001b[96D\u001b[96C\r\n"]
43 | [9.328066, "o", "\u001b[?25h"]
44 | [9.331706, "o", "\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22m\u001b[38D"]
45 | [9.332435, "o", "\u001b[38C"]
46 | [10.333538, "o", "\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22my\u001b[39D\u001b[39C"]
47 | [11.3343, "o", "\u001b[2K\u001b[G"]
48 | [11.334585, "o", "\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[35D\u001b[35C\r\n"]
49 | [11.335336, "o", "Writing config ./config.json\r\n"]
50 | [11.338062, "o", "Compiling template ./templates/nginx.conf.hbs\r\n"]
51 | [11.339291, "o", "Compiling template ./templates/servers.conf.hbs\r\n"]
52 | [11.370747, "o", "Writing ./nginx-conf/nginx.conf\r\n"]
53 | [11.396519, "o", "Writing ./nginx-conf/conf.d/a.evgeniy-khyst.com.conf\r\n"]
54 | [11.399339, "o", "Writing ./nginx-conf/conf.d/b.evgeniy-khyst.com.conf\r\n"]
55 | [12.400108, "o", "Executing command: docker compose exec --no-TTY certbot certbot --noninteractive delete --cert-name a.evgeniy-khyst.com\r\n"]
56 | [13.399372, "o", "Executing command: docker compose exec --no-TTY nginx /letsencrypt-docker-compose/config-nginx.sh\r\n"]
57 | [14.400113, "o", "Executing command: docker compose exec --no-TTY certbot /letsencrypt-docker-compose/certbot-certonly.sh\r\n"]
58 | [15.317765, "o", "Executing command: docker compose exec --no-TTY nginx /letsencrypt-docker-compose/config-nginx.sh\r\n"]
59 | [15.818222, "o", "\u001b[?2004h\u001b[01;34mletsencrypt-docker-compose\u001b[00m$ "]
60 | [16.532331, "o", "\u001b[?2004l\r\r\nexit\r\n"]
61 |
--------------------------------------------------------------------------------
/cli/src/cli.js:
--------------------------------------------------------------------------------
1 | import inquirer from 'inquirer';
2 | import {
3 | deleteNginxConfigFile,
4 | readConfig,
5 | writeConfig,
6 | writeNginxConfigFiles,
7 | } from './config-processor.js';
8 | import {
9 | isNginxServiceRunning,
10 | execNginxReload,
11 | execConfigNginx,
12 | execDeleteCertbotCertificate,
13 | execCertbotCertonly,
14 | execForceRenewCertbotCertificate,
15 | } from './shell-commands.js';
16 |
17 | const dockerDnsResolver = '127.0.0.11';
18 |
19 | const askDomain = async (config, domainName) => {
20 | const domainConfig =
21 | (domainName &&
22 | config.domains.find((domain) => domain.domain === domainName)) ||
23 | {};
24 |
25 | const questions = [
26 | {
27 | type: 'input',
28 | name: 'domain',
29 | message: "What's your domain name (e.g. example.com)?",
30 | default: domainConfig.domain,
31 | validate(input) {
32 | if (/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/g.test(input)) {
33 | return true;
34 | }
35 | throw Error('Please provide a valid domain name.');
36 | },
37 | },
38 | {
39 | type: 'input',
40 | name: 'email',
41 | message: "What's your email for registration and recovery contact?",
42 | default: domainConfig.email,
43 | validate(input) {
44 | if (!input || /^[a-z0-9+_.-]+@[a-z0-9.-]+$/g.test(input)) {
45 | return true;
46 | }
47 | throw Error('Please provide a valid email.');
48 | },
49 | },
50 | {
51 | type: 'confirm',
52 | name: 'wwwSubdomain',
53 | message: "Want to have 'www' subdomain (e.g. www.example.com)?",
54 | default: domainConfig.wwwSubdomain ?? true,
55 | },
56 | {
57 | type: 'confirm',
58 | name: 'testCert',
59 | message: 'Want to obtain a test certificate from a staging server?',
60 | default: domainConfig.testCert ?? true,
61 | },
62 | {
63 | type: 'number',
64 | name: 'rsaKeySize',
65 | message: 'What is the RSA key size in bits?',
66 | default: domainConfig.rsaKeySize || 4096,
67 | },
68 | {
69 | type: 'list',
70 | name: 'requestHandler',
71 | message: 'How do you want to configure Nginx?',
72 | choices: [
73 | { name: 'Serving static content', value: 'staticContent' },
74 | { name: 'Reverse proxy', value: 'reverseProxy' },
75 | { name: 'PHP-FPM', value: 'phpFpm' },
76 | ],
77 | },
78 | ];
79 |
80 | const answers = await inquirer.prompt(questions);
81 |
82 | Object.assign(domainConfig, answers);
83 |
84 | if (answers.requestHandler === 'reverseProxy') {
85 | const reverseProxyQuestions = [
86 | {
87 | type: 'confirm',
88 | name: 'dockerDns',
89 | message:
90 | 'Does the upstream server run as a Docker container on the same host?',
91 | default: domainConfig.dnsResolver
92 | ? domainConfig.dnsResolver === dockerDnsResolver
93 | : true,
94 | },
95 | {
96 | type: 'input',
97 | name: 'upstream',
98 | message:
99 | 'What is the address of the proxied server (e.g. example-backend:8080)?',
100 | default: domainConfig.upstream,
101 | validate(input) {
102 | if (input.length > 0) {
103 | return true;
104 | }
105 | throw Error('Please provide a valid host.');
106 | },
107 | },
108 | {
109 | type: 'confirm',
110 | name: 'websockets',
111 | message: 'Enable WebSocket proxying?',
112 | default: domainConfig.websockets ?? false,
113 | },
114 | ];
115 |
116 | const { dockerDns, upstream, websockets } = await inquirer.prompt(
117 | reverseProxyQuestions
118 | );
119 |
120 | Object.assign(
121 | domainConfig,
122 | {
123 | upstream,
124 | websockets,
125 | },
126 | dockerDns ? { dnsResolver: dockerDnsResolver } : {}
127 | );
128 | } else {
129 | delete domainConfig.dnsResolver;
130 | delete domainConfig.upstream;
131 | delete domainConfig.websockets;
132 | }
133 |
134 | if (!domainName) {
135 | config.domains.push(domainConfig);
136 |
137 | const askAgainQuestion = [
138 | {
139 | type: 'confirm',
140 | name: 'askAgain',
141 | message: 'Want to add another domain?',
142 | default: false,
143 | },
144 | ];
145 |
146 | const { askAgain } = await inquirer.prompt(askAgainQuestion);
147 |
148 | if (askAgain) {
149 | await askDomain(config);
150 | }
151 | }
152 | };
153 |
154 | const askChooseDomainName = async (message, config, filter) => {
155 | const domainsQuestions = [
156 | {
157 | type: 'list',
158 | name: 'domainName',
159 | message,
160 | choices: config.domains
161 | .filter(filter || (() => true))
162 | .map((domain) => domain.domain),
163 | },
164 | ];
165 |
166 | const { domainName } = await inquirer.prompt(domainsQuestions);
167 |
168 | const index = config.domains.findIndex(
169 | (domain) => domain.domain === domainName
170 | );
171 |
172 | const domainConfig = config.domains[index];
173 |
174 | return { domainName, index, domainConfig };
175 | };
176 |
177 | const askNginxConfig = async (config) => {
178 | const questions = [
179 | {
180 | type: 'number',
181 | name: 'dhparamsSize',
182 | message: 'What is the DH parameters size in bits?',
183 | default: config.dhparamsSize || 2048,
184 | },
185 | {
186 | type: 'confirm',
187 | name: 'gzip',
188 | message: 'Use Gzip?',
189 | default: config.gzip ?? true,
190 | },
191 | ];
192 |
193 | const answers = await inquirer.prompt(questions);
194 |
195 | Object.assign(config, answers);
196 | };
197 |
198 | const askConfirm = async () => {
199 | const questions = [
200 | {
201 | type: 'confirm',
202 | name: 'confirm',
203 | message: 'Are the entered data correct?',
204 | default: false,
205 | },
206 | ];
207 |
208 | const { confirm } = await inquirer.prompt(questions);
209 | return confirm;
210 | };
211 |
212 | const writeConfigFiles = async (config, domainNames) => {
213 | await writeConfig(config);
214 | await writeNginxConfigFiles(config, domainNames);
215 | };
216 |
217 | const getDomainNames = (config) => config.domains.map(({ domain }) => domain);
218 |
219 | const initConfig = async (config) => {
220 | await askDomain(config);
221 | await askNginxConfig(config);
222 | if (await askConfirm()) {
223 | await writeConfigFiles(config);
224 | }
225 | };
226 |
227 | const obtainProductionCertificates = async (config) => {
228 | const { domainName, domainConfig } = await askChooseDomainName(
229 | "Which domain should be switched to a Let's Encrypt production environment?",
230 | config,
231 | (domain) => domain.testCert
232 | );
233 |
234 | domainConfig.testCert = false;
235 |
236 | if (await askConfirm()) {
237 | await writeConfigFiles(config, [domainName]);
238 | await execDeleteCertbotCertificate(domainName);
239 | await execConfigNginx(); // Use dummy certificate
240 | await execCertbotCertonly(); // Obtain Let's Encrypt certificate
241 | await execConfigNginx(); // Use Let's Encrypt certificate
242 | }
243 | };
244 |
245 | const addDomains = async (config) => {
246 | const domainNamesBefore = getDomainNames(config);
247 | await askDomain(config);
248 | const domainNamesAfter = getDomainNames(config);
249 | const addedDomainNames = domainNamesAfter.filter(
250 | (domainName) => !domainNamesBefore.includes(domainName)
251 | );
252 | if (await askConfirm()) {
253 | await writeConfigFiles(config, addedDomainNames);
254 | await execConfigNginx(); // Use dummy certificate
255 | await execCertbotCertonly(); // Obtain Let's Encrypt certificate
256 | await execConfigNginx(); // Use Let's Encrypt certificate
257 | }
258 | };
259 |
260 | const removeDomains = async (config) => {
261 | const { domainName, index } = await askChooseDomainName(
262 | 'Which domain do you want to remove?',
263 | config
264 | );
265 |
266 | config.domains.splice(index, 1);
267 |
268 | if (await askConfirm()) {
269 | await writeConfigFiles(config, []);
270 | await deleteNginxConfigFile(domainName);
271 | await execNginxReload();
272 | await execDeleteCertbotCertificate(domainName);
273 | }
274 | };
275 |
276 | const forceRenewCertificates = async () => {
277 | if (await askConfirm()) {
278 | await execForceRenewCertbotCertificate();
279 | await execNginxReload();
280 | }
281 | };
282 |
283 | const reloadNginxConfiguration = async () => {
284 | if (await askConfirm()) {
285 | await execNginxReload();
286 | }
287 | };
288 |
289 | const askConfig = async () => {
290 | const config = await readConfig();
291 |
292 | if (!config.domains.length) {
293 | await initConfig(config);
294 | } else {
295 | if (!(await isNginxServiceRunning())) {
296 | console.error(
297 | 'To edit an existing config, start the services first: docker compose up -d'
298 | );
299 | console.error(
300 | 'To perform a new initial setup, delete the existing config: rm config.json'
301 | );
302 | return;
303 | }
304 |
305 | const hasTestCerts =
306 | config.domains.filter((domain) => domain.testCert).length > 0;
307 |
308 | const questions = [
309 | {
310 | type: 'list',
311 | name: 'command',
312 | message: 'What do you want to do?',
313 | choices: [
314 | ...(hasTestCerts
315 | ? [
316 | {
317 | name: "Switch to a Let's Encrypt production environment",
318 | value: 'obtainProductionCertificates',
319 | },
320 | ]
321 | : []),
322 | { name: 'Add new domains', value: 'addDomains' },
323 | {
324 | name: 'Remove existing domains',
325 | value: 'removeDomains',
326 | },
327 | {
328 | name: "Manually renew all Let's Encrypt certificates (force renewal)",
329 | value: 'forceRenewCertificates',
330 | },
331 | {
332 | name: 'Reload Nginx configuration without downtime',
333 | value: 'reloadNginxConfiguration',
334 | },
335 | ],
336 | },
337 | ];
338 |
339 | const { command } = await inquirer.prompt(questions);
340 |
341 | const commands = {
342 | obtainProductionCertificates,
343 | addDomains,
344 | removeDomains,
345 | forceRenewCertificates,
346 | reloadNginxConfiguration,
347 | };
348 |
349 | await commands[command](config);
350 | }
351 | };
352 |
353 | export default askConfig;
354 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # letsencrypt-docker-compose
2 |
3 | > [!IMPORTANT]
4 | > The project has been discontinued.
5 | > Use [linuxserver/docker-swag](https://github.com/linuxserver/docker-swag) instead.
6 |
7 | - [Overview](#1)
8 | - [Initial setup](#2)
9 | - [Installing](#2-1)
10 | - [Step 1 - Create DNS records](#2-2)
11 | - [Step 2 - Configure Nginx](#2-3)
12 | - [Serving static content](#2-3-1)
13 | - [Reverse proxy](#2-3-2)
14 | - [Single Docker Compose project](#2-3-2-1)
15 | - [Multiple Docker Compose projects](#2-3-2-2)
16 | - [PHP-FPM](#2-3-3)
17 | - [Step 3 - Perform an initial setup using the CLI tool](#2-4)
18 | - [Step 4 - Start the services](#2-5)
19 | - [Step 5 - Verify that HTTPS works with the test certificates](#2-6)
20 | - [Step 6 - Switch to a Let's Encrypt production environment](#2-7)
21 | - [Step 7 - Verify that HTTPS works with the production certificates](#2-8)
22 | - [Updating](#3)
23 | - [Adding new domains without downtime](#4)
24 | - [Step 1 - Create new DNS records](#4-1)
25 | - [Step 2 - Copy static content or define upstream service](#4-2)
26 | - [Step 3 - Update the configuration using the CLI tool](#4-3)
27 | - [Step 4 - Verify that HTTPS works](#4-4)
28 | - [Removing existing domains without downtime](#5)
29 | - [Manually renewing all Let's Encrypt certificates](#6)
30 | - [Running on a local machine not directed to by DNS records](#7)
31 | - [Step 1 - Perform an initial setup using the CLI tool](#7-1)
32 | - [Step 2 - Start the services in dry run mode](#7-2)
33 | - [Advanced Nginx configuration](#8)
34 | - [Running Docker containers as a non-root user](#9)
35 | - [SSL configuration for A+ rating](#10)
36 | - [Troubleshooting](#11)
37 |
38 |
39 |
40 | ## Overview
41 |
42 | Set up Nginx and Let’s Encrypt in less than 3 minutes using Docker Compose and a simple CLI tool.
43 |
44 | This repository contains a Docker Compose project and a CLI configuration management tool to automatically obtain and renew free Let's Encrypt SSL/TLS certificates
45 | and set up HTTPS in Nginx for multiple domain names.
46 |
47 | You can run Nginx and set up HTTPS (`https://`) and WebSocket Secure (`wss://`) with free Let's Encrypt SSL/TLS certificates for your domain names and get an A+ rating in [SSL Labs SSL Server Test](https://www.ssllabs.com/ssltest/) using **letsencrypt-docker-compose**.
48 | Nginx is configured to support IPv4, IPv6, HTTP/1.1, HTTP/2, and optionally, WebSocket.
49 |
50 | [Let's Encrypt](https://letsencrypt.org/) is a certificate authority that provides free X.509 certificates for TLS encryption.
51 | The certificates are valid for 90 days and can be renewed. Both initial creation and renewal can be automated using [Certbot](https://certbot.eff.org/).
52 |
53 | When using Kubernetes Let's Encrypt SSL/TLS certificates can be easily obtained and installed using cloud native certificate management solutions.
54 | For simple websites and applications, Kubernetes is too much overhead and Docker Compose is more suitable.
55 | Thus, this project was created to easily manage, install and auto-renew free SSL/TLS certificates with Docker Compose.
56 |
57 | The project supports separate SSL/TLS certificates for multiple domain names.
58 |
59 | The idea is simple. There are three main services:
60 |
61 | - `nginx`,
62 | - `certbot` for obtaining and renewing certificates,
63 | - `cron` for triggering certificates renewal,
64 |
65 | and one additional service `cli` for interactive configuration.
66 |
67 | The sequence of actions:
68 |
69 | 1. You perform an initial setup with **letsencrypt-docker-compose** CLI tool.
70 | 2. Nginx generates self-signed "dummy" certificates to pass ACME challenge for obtaining Let's Encrypt certificates.
71 | 3. Certbot waits for Nginx to become ready and obtains certificates.
72 | 4. Cron triggers Certbot to try to renew certificates and Nginx to reload configuration daily.
73 |
74 | [Back to top](#0)
75 |
76 | ## Initial setup
77 |
78 | ### Installing
79 |
80 | Make sure you have up to date versions of [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) installed.
81 |
82 | Clone this repository (or create and clone a [fork](https://github.com/evgeniy-khist/letsencrypt-docker-compose/fork)):
83 |
84 | ```bash
85 | git clone https://github.com/evgeniy-khist/letsencrypt-docker-compose.git
86 | ```
87 |
88 | ### Step 1 - Create DNS records
89 |
90 | You need to have a domain name and a server with a publicly routable IP address.
91 |
92 | For simplicity, this example deals with domain names `a.evgeniy-khyst.com` and `b.evgeniy-khyst.com`,
93 | but in reality, domain names can be any (e.g., `example.com`, `anotherdomain.net`).
94 |
95 | For all domain names create DNS A or AAAA record, or both to point to a server where Docker containers will be running.
96 | Also, create CNAME records for the `www` subdomains if needed.
97 |
98 | **DNS records**
99 |
100 | | Type | Hostname | Value |
101 | | ----- | ------------------------- | ------------------------------------ |
102 | | A | `a.evgeniy-khyst.com` | directs to IPv4 address |
103 | | A | `b.evgeniy-khyst.com` | directs to IPv4 address |
104 | | AAAA | `a.evgeniy-khyst.com` | directs to IPv6 address |
105 | | AAAA | `b.evgeniy-khyst.com` | directs to IPv6 address |
106 | | CNAME | `www.a.evgeniy-khyst.com` | is an alias of `a.evgeniy-khyst.com` |
107 | | CNAME | `www.a.evgeniy-khyst.com` | is an alias of `a.evgeniy-khyst.com` |
108 |
109 | ### Step 2 - Configure Nginx
110 |
111 | Nginx can be configured
112 |
113 | - to serve static content,
114 | - as a reverse proxy (e.g., proxying all requests to a backend server),
115 | - to proxy requests to PHP-FPM.
116 |
117 | #### Serving static content
118 |
119 | Copy your static content to `html/${domain}` directory.
120 |
121 | ```bash
122 | cp -R ./examples/html/ ./html/a.evgeniy-khyst.com
123 | ```
124 |
125 | #### Reverse proxy
126 |
127 | ##### Single Docker Compose project
128 |
129 | The [`docker-compose.yml`](docker-compose.yml) contains the `example-backend` service.
130 | It's a simple Node.js web app listening on port 8080.
131 | It has `/hello?name={name}` REST endpoint and WebSocket echo server sending back the request sent by the client.
132 |
133 | Replace it with your backend service or remove it.
134 |
135 | ```yaml
136 | services:
137 | example-backend:
138 | build: ./examples/nodejs-backend
139 | image: evgeniy-khyst/expressjs-helloworld
140 | restart: unless-stopped
141 | ```
142 |
143 | ##### Multiple Docker Compose projects
144 |
145 | If your upstream server is defined in the YAML file of another Docker Compose project,
146 | configure it to join the `letsencrypt-docker-compose_default` network created by this project,
147 | so Nginx is able to forward requests to the upstream service.
148 |
149 | Define a reference to the `letsencrypt-docker-compose_default` network in your other YAML file.
150 |
151 | ```yaml
152 | version: "3"
153 |
154 | services:
155 | example-backend:
156 | build: ./examples/nodejs-backend
157 | image: evgeniy-khyst/expressjs-helloworld
158 | networks:
159 | - letsencrypt-docker-compose
160 | restart: unless-stopped
161 |
162 | networks:
163 | letsencrypt-docker-compose:
164 | name: letsencrypt-docker-compose_default
165 | external: true
166 | ```
167 |
168 | #### PHP-FPM
169 |
170 | Copy your PHP scripts to `html/${domain}` directory.
171 |
172 | ```bash
173 | cp -R ./examples/php/ ./html/a.evgeniy-khyst.com
174 | ```
175 |
176 | ### Step 3 - Perform an initial setup using the CLI tool
177 |
178 | Run the CLI tool and follow the instructions to perform an initial setup.
179 |
180 | ```bash
181 | ./cli.sh config
182 | ```
183 |
184 | or
185 |
186 | ```bash
187 | docker compose run --rm cli
188 | ```
189 |
190 | On the first run, choose to obtain a test certificate from a Let's Encrypt staging server.
191 | We will switch to a Let's Encrypt production environment after verifying that HTTPS is working with the test certificate.
192 |
193 | 
194 |
195 | ### Step 4 - Start the services
196 |
197 | Start the services.
198 |
199 | ```bash
200 | ./cli.sh up
201 | ```
202 |
203 | or
204 |
205 | ```bash
206 | docker compose up -d
207 | ```
208 |
209 | All Docker images used in the project are multi-platform and support `amd64`, `arm32v6`, and `arm64v8` architectures.
210 | For example, when running the project on an `x86_64`/`amd64` machine, the `amd64` variants are pulled and run.
211 |
212 | Check the logs.
213 |
214 | ```bash
215 | docker compose logs -f
216 | ```
217 |
218 | For each domain wait for the following log messages:
219 |
220 | ```
221 | Switching Nginx to use Let's Encrypt certificate
222 | Reloading Nginx configuration
223 | ```
224 |
225 | ### Step 5 - Verify that HTTPS works with the test certificates
226 |
227 | For each domain, check `https://${domain}` and `https://www.${domain}` if you've configured the `www` subdomain.
228 | Certificates issued by `(STAGING) Let's Encrypt` are considered not secure by browsers and cURL.
229 |
230 | ```bash
231 | curl --insecure https://a.evgeniy-khyst.com
232 | curl --insecure https://www.a.evgeniy-khyst.com
233 | curl --insecure https://b.evgeniy-khyst.com/hello?name=Eugene
234 | curl --insecure https://www.b.evgeniy-khyst.com/hello?name=Eugene
235 | ```
236 |
237 | If you've set up WebSocket, check it using the [wscat](https://github.com/websockets/wscat) tool.
238 |
239 | ```bash
240 | wscat --no-check --connect wss://b.evgeniy-khyst.com/echo
241 | ```
242 |
243 | ### Step 6 - Switch to a Let's Encrypt production environment
244 |
245 | Run the CLI tool, choose `Switch to a Let's Encrypt production environment` and follow the instructions.
246 |
247 | ```bash
248 | ./cli.sh config
249 | ```
250 |
251 | or
252 |
253 | ```bash
254 | docker compose run --rm cli
255 | ```
256 |
257 | 
258 |
259 | ### Step 7 - Verify that HTTPS works with the production certificates
260 |
261 | For each domain, check `https://${domain}` and `https://www.${domain}` if you've configured the `www` subdomain.
262 | Certificates issued by `Let's Encrypt` are considered secure by browsers and cURL.
263 |
264 | ```bash
265 | curl https://a.evgeniy-khyst.com
266 | curl https://www.a.evgeniy-khyst.com
267 | curl https://b.evgeniy-khyst.com/hello?name=Eugene
268 | curl https://www.b.evgeniy-khyst.com/hello?name=Eugene
269 | ```
270 |
271 | If you've set up WebSocket, check it using the [wscat](https://github.com/websockets/wscat) tool.
272 |
273 | ```bash
274 | wscat --connect wss://b.evgeniy-khyst.com/echo
275 | ```
276 |
277 | Optionally check your domains with [SSL Labs SSL Server Test](https://www.ssllabs.com/ssltest/) and review the SSL Reports.
278 |
279 | The `cron` service will automatically renew the Let's Encrypt production certificates when the time comes.
280 |
281 | [Back to top](#0)
282 |
283 | ## Updating
284 |
285 | If you haven't forked the repo, just pull the latest changes.
286 |
287 | ```bash
288 | git pull
289 | ```
290 |
291 | If you've forked the repo, sync with upstream.
292 |
293 | ```bash
294 | git remote add upstream https://github.com/evgeniy-khist/letsencrypt-docker-compose.git
295 | git fetch upstream
296 | git checkout main
297 | git rebase upstream/main
298 | ```
299 |
300 | After getting the latest changes, rebuild the Docker images of the CLI tool and all services.
301 |
302 | ```bash
303 | ./cli.sh build
304 | ```
305 |
306 | or
307 |
308 | ```bash
309 | docker compose --profile config build
310 | ```
311 |
312 | Also, you need to rebuild the Docker images of the services if you've made any changes to them.
313 |
314 | [Back to top](#0)
315 |
316 | ## Adding new domains without downtime
317 |
318 | ### Step 1 - Create new DNS records
319 |
320 | Create DNS A or AAAA record, or both.
321 | Also, create CNAME record for `www` subdomain if needed.
322 |
323 | **DNS records**
324 |
325 | | Type | Hostname | Value |
326 | | ----- | ------------------------- | ------------------------------------ |
327 | | A | `c.evgeniy-khyst.com` | directs to IPv4 address |
328 | | AAAA | `c.evgeniy-khyst.com` | directs to IPv6 address |
329 | | CNAME | `www.c.evgeniy-khyst.com` | is an alias of `c.evgeniy-khyst.com` |
330 |
331 | ### Step 2 - Copy static content or define upstream service
332 |
333 | Repeat the actions described in [the subsection of the same name in the "Initial setup" section](#2-3).
334 |
335 | ### Step 3 - Update the configuration using the CLI tool
336 |
337 | Run the CLI tool, choose `Add new domains` and follow the instructions.
338 |
339 | ```bash
340 | ./cli.sh config
341 | ```
342 |
343 | or
344 |
345 | ```bash
346 | docker compose run --rm cli
347 | ```
348 |
349 | ### Step 4 - Verify that HTTPS works
350 |
351 | For each new domain, check `https://${domain}` and `https://www.${domain}` if you've configured the `www` subdomain.
352 |
353 | [Back to top](#0)
354 |
355 | ## Removing existing domains without downtime
356 |
357 | Run the CLI tool, choose `Remove existing domains` and follow the instructions.
358 |
359 | ```bash
360 | ./cli.sh config
361 | ```
362 |
363 | or
364 |
365 | ```bash
366 | docker compose run --rm cli
367 | ```
368 |
369 | [Back to top](#0)
370 |
371 | ## Manually renewing all Let's Encrypt certificates
372 |
373 | You can manually renew all of your certificates.
374 |
375 | Certbot renewal will be executed with `--force-renewal` flag that causes the expiration time of the certificates to be ignored when considering renewal, and attempts to renew each and every installed certificate regardless of its age.
376 |
377 | This operation is not appropriate to run daily because each certificate will be renewed every day, which will quickly run into the Let's Encrypt rate limit.
378 |
379 | Run the CLI tool, choose `Manually renew all Let's Encrypt certificates (force renewal)` and follow the instructions.
380 |
381 | ```bash
382 | ./cli.sh config
383 | ```
384 |
385 | or
386 |
387 | ```bash
388 | docker compose run --rm cli
389 | ```
390 |
391 | [Back to top](#0)
392 |
393 | ## Running on a local machine not directed to by DNS records
394 |
395 | Running Certbot on a local machine not directed to by DNS records makes no sense
396 | because Let’s Encrypt servers will fail to validate that you control the domain names in the certificate.
397 |
398 | But it may be useful to run all services locally with disabled Certbot.
399 | It is possible in dry run mode.
400 |
401 | ### Step 1 - Perform an initial setup using the CLI tool
402 |
403 | ```bash
404 | ./cli.sh config
405 | ```
406 |
407 | or
408 |
409 | ```bash
410 | docker compose run --rm cli
411 | ```
412 |
413 | ### Step 2 - Start the services in dry run mode
414 |
415 | ```bash
416 | ./cli.sh up --dry-run
417 | ```
418 |
419 | Alternatively, you can enable dry run mode using the environment variable `DRY_RUN=true`.
420 |
421 | ```bash
422 | DRY_RUN=true docker compose up -d
423 | ```
424 |
425 | [Back to top](#0)
426 |
427 | ## Advanced Nginx configuration
428 |
429 | You can configure Nginx by manually editing the `nginx-conf/nginx.conf`.
430 |
431 | Configure virtual hosts (`server` blocks) by editing the `nginx-conf/conf.d/${domain}.conf`.
432 |
433 | Any `.conf` file from the `nginx-conf/conf.d` directory is included in the Nginx configuration.
434 |
435 | For example, to declare upstream servers, edit `nginx-conf/conf.d/upstreams.conf`
436 |
437 | ```
438 | upstream backend {
439 | server backend1.example.com:8080;
440 | server backend2.example.com:8080;
441 | }
442 | ```
443 |
444 | After editing the Nginx configuration, do a hot reload of the Nginx configuration.
445 | Run the CLI tool and choose `Reload Nginx configuration without downtime`.
446 |
447 | ```bash
448 | ./cli.sh config
449 | ```
450 |
451 | or
452 |
453 | ```bash
454 | docker compose run --rm cli
455 | ```
456 |
457 | Manual edits of the `nginx-conf/nginx.conf` and `nginx-conf/conf.d/${domain}.conf` are lost after running the CLI tool
458 | (e.g., adding or removing domains or switching to a Let's Encrypt production environment).
459 |
460 | The CLI tool generates the Nginx configuration files based on the `config.json`.
461 | To make Nginx configuration changes persistent, also edit the Handlebars templates used for their generation
462 |
463 | - [`templates/nginx.conf.hbs`](templates/nginx.conf.hbs),
464 | - [`templates/servers.conf.hbs`](templates/servers.conf.hbs).
465 |
466 | To add domain-specific configuration to a template use the [`ifEquals` Handlebars helper](cli/src/handlebars-helpers.js).
467 |
468 | ```hbs
469 | {{#ifEquals domain "a.evgeniy-khyst.com"}}
470 | # Configuration for a specific domain
471 | {{/ifEquals}}
472 | ```
473 |
474 | [Back to top](#0)
475 |
476 | ## Running Docker containers as a non-root user
477 |
478 | By default, Docker is only accessible with root privileges (`sudo`).
479 |
480 | The CLI tool creates the following files in the hosts' project root directory mounted into the container:
481 |
482 | - `config.json`,
483 | - `nginx-conf/nginx.conf`,
484 | - `nginx-conf/conf.d/${domain}.conf`.
485 |
486 | These files will be owned by the `root` user.
487 | When non-root users try to clean up or edit these files, they get the "permission denied" error.
488 |
489 | If you want to use Docker as a regular user, you need to [add your user to the `docker` group](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user).
490 |
491 | To make the CLI tool create files in a way that allows non-root users to edit and delete them,
492 | tell Docker Compose to run as the current user instead of `root`.
493 |
494 | As the CLI tool runs Docker Compose commands internally, specify the `docker` group as a supplementary group,
495 | so the user inside the container will be its member.
496 |
497 | We have to use user IDs and group IDs because containers don't know their associated usernames and group names.
498 |
499 | Run the CLI tool specifying the current user and `docker` group to make it create files owned by the current user.
500 |
501 | ```bash
502 | CURRENT_USER="$(id -u):$(id -g)" DOCKER_GROUP="$(getent group docker | cut -d: -f3)" docker compose run --rm cli
503 | ```
504 |
505 | The convenience script `cli.sh` runs the CLI tool as the current user by default.
506 |
507 | ```bash
508 | ./cli.sh config
509 | ```
510 |
511 | You can run the CLI tool as UID/GID 0 instead of the current user with the option `--no-current-user`.
512 |
513 | ```bash
514 | ./cli.sh config --no-current-user
515 | ```
516 |
517 | [Back to top](#0)
518 |
519 | ## SSL configuration for A+ rating
520 |
521 | SSL in Nginx is configured accoring to best practices to get A+ rating in [SSL Labs SSL Server Test](https://www.ssllabs.com/ssltest/).
522 |
523 | Read more about the best practices and rating:
524 |
525 | - https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices
526 | - https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide
527 |
528 | [Back to top](#0)
529 |
530 | ## Troubleshooting
531 |
532 | If the `certbot` service fails to start (the container is unhealthy), check the logs: `docker compose logs certbot`.
533 |
534 | If the Certbot logs contain messages `Certbot failed to authenticate some domains (authenticator: webroot)`
535 | and `Timeout during connect (likely firewall problem)`,
536 | this means that the Let's Encrypt servers can't connect to your server to pass [HTTP-01 challenge](https://letsencrypt.org/docs/challenge-types/#http-01-challenge).
537 |
538 | 1. Double-check your DNS and firewall configurtions.
539 |
540 | 2. Run the project in dry run mode (without actually running Certbot):
541 |
542 | ```bash
543 | ./cli.sh up --dry-run
544 | ```
545 |
546 | 3. Specify your domain:
547 |
548 | ```bash
549 | domain=your.domain.com
550 | ```
551 |
552 | 4. Create a file that will emulate an HTTP-01 challenge:
553 |
554 | ```bash
555 | docker compose exec certbot mkdir -p /var/www/certbot/${domain}/.well-known/acme-challenge/
556 | docker compose exec certbot sh -c "echo $(date) > /var/www/certbot/${domain}/.well-known/acme-challenge/test-token.txt"
557 | ```
558 |
559 | 5. Make sure the file has been created:
560 |
561 | ```bash
562 | docker compose exec certbot cat /var/www/certbot/${domain}/.well-known/acme-challenge/test-token.txt
563 | ```
564 |
565 | 6. Make sure Nginx is serving a file emulating an HTTP-01 challenge:
566 |
567 | ```bash
568 | curl http://${domain}/.well-known/acme-challenge/test-token.txt
569 | ```
570 |
571 | The output of the `curl` command should match the contents of the `test-token.txt` file.
572 |
573 | [Back to top](#0)
574 |
--------------------------------------------------------------------------------
/examples/switch-to-prod-env.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/initial-setup.cast:
--------------------------------------------------------------------------------
1 | {"version": 2, "width": 163, "height": 41, "timestamp": 1678870500, "idle_time_limit": 1.0, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}, "title": "letsencrypt-docker-compose initial set up"}
2 | [0.31427, "o", "\u001b[?2004h\u001b[01;34mletsencrypt-docker-compose\u001b[00m$ "]
3 | [1.144472, "o", "."]
4 | [1.208452, "o", "/"]
5 | [1.400459, "o", "c"]
6 | [1.512378, "o", "l"]
7 | [1.68852, "o", "i"]
8 | [1.928496, "o", "."]
9 | [2.152315, "o", "s"]
10 | [2.264369, "o", "h"]
11 | [2.360709, "o", " "]
12 | [3.048486, "o", "c"]
13 | [3.176355, "o", "o"]
14 | [3.432385, "o", "n"]
15 | [3.640465, "o", "f"]
16 | [3.768408, "o", "i"]
17 | [3.848423, "o", "g"]
18 | [3.960247, "o", "\r\n\u001b[?2004l\r"]
19 | [5.258846, "o", "Reading config ./config.json\r\n"]
20 | [5.26076, "o", "Existing valid config not found, using new empty config\r\n"]
21 | [5.277661, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0m"]
22 | [5.277856, "o", "\u001b[46D"]
23 | [5.278037, "o", "\u001b[46C"]
24 | [8.332596, "o", "\u001b[2K\u001b[G"]
25 | [8.333268, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma"]
26 | [8.333412, "o", "\u001b[47D"]
27 | [8.333523, "o", "\u001b[47C"]
28 | [8.334065, "o", "\u001b[2K\u001b[G"]
29 | [8.334668, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma."]
30 | [8.334779, "o", "\u001b[48D"]
31 | [8.334919, "o", "\u001b[48C"]
32 | [8.335153, "o", "\u001b[2K\u001b[G"]
33 | [8.335723, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.e"]
34 | [8.335863, "o", "\u001b[49D"]
35 | [8.336096, "o", "\u001b[49C"]
36 | [8.336415, "o", "\u001b[2K\u001b[G"]
37 | [8.33701, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.ev"]
38 | [8.337154, "o", "\u001b[50D"]
39 | [8.3373, "o", "\u001b[50C"]
40 | [8.337572, "o", "\u001b[2K\u001b[G"]
41 | [8.338167, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evg"]
42 | [8.338293, "o", "\u001b[51D\u001b[51C"]
43 | [8.338525, "o", "\u001b[2K\u001b[G"]
44 | [8.339216, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evge"]
45 | [8.339444, "o", "\u001b[52D\u001b[52C"]
46 | [8.339828, "o", "\u001b[2K\u001b[G"]
47 | [8.340493, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgen\u001b[53D\u001b[53C"]
48 | [8.340796, "o", "\u001b[2K\u001b[G"]
49 | [8.341421, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeni"]
50 | [8.341873, "o", "\u001b[54D\u001b[54C"]
51 | [8.342409, "o", "\u001b[2K\u001b[G"]
52 | [8.3432, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy\u001b[55D\u001b[55C"]
53 | [8.343826, "o", "\u001b[2K\u001b[G"]
54 | [8.344432, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-"]
55 | [8.344528, "o", "\u001b[56D\u001b[56C"]
56 | [8.344725, "o", "\u001b[2K\u001b[G"]
57 | [8.345126, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-k\u001b[57D\u001b[57C"]
58 | [8.345328, "o", "\u001b[2K\u001b[G"]
59 | [8.345745, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-kh"]
60 | [8.345793, "o", "\u001b[58D\u001b[58C"]
61 | [8.34605, "o", "\u001b[2K\u001b[G"]
62 | [8.346672, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khy"]
63 | [8.3468, "o", "\u001b[59D\u001b[59C"]
64 | [8.346925, "o", "\u001b[2K\u001b[G"]
65 | [8.347423, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khys"]
66 | [8.347523, "o", "\u001b[60D\u001b[60C"]
67 | [8.34766, "o", "\u001b[2K\u001b[G"]
68 | [8.348155, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khyst"]
69 | [8.34819, "o", "\u001b[61D\u001b[61C"]
70 | [8.349066, "o", "\u001b[2K\u001b[G"]
71 | [8.35147, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khyst.\u001b[62D\u001b[62C"]
72 | [8.35183, "o", "\u001b[2K\u001b[G"]
73 | [8.352164, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khyst.c\u001b[63D\u001b[63C"]
74 | [8.352445, "o", "\u001b[2K\u001b[G"]
75 | [8.352753, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khyst.co"]
76 | [8.353001, "o", "\u001b[64D\u001b[64C"]
77 | [8.353232, "o", "\u001b[2K\u001b[G"]
78 | [8.35352, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0ma.evgeniy-khyst.com\u001b[65D\u001b[65C"]
79 | [8.565172, "o", "\u001b[2K\u001b[G"]
80 | [8.565532, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[36ma.evgeniy-khyst.com\u001b[39m"]
81 | [8.565576, "o", "\u001b[65D\u001b[65C"]
82 | [8.565758, "o", "\r\n"]
83 | [8.568458, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0m\u001b[59D\u001b[59C"]
84 | [11.898553, "o", "\u001b[2K\u001b[G"]
85 | [11.899353, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0mi\u001b[60D"]
86 | [11.899595, "o", "\u001b[60C"]
87 | [11.899876, "o", "\u001b[2K\u001b[G"]
88 | [11.900476, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0min\u001b[61D\u001b[61C"]
89 | [11.900774, "o", "\u001b[2K\u001b[G"]
90 | [11.901451, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minf\u001b[62D\u001b[62C"]
91 | [11.902003, "o", "\u001b[2K\u001b[G"]
92 | [11.902545, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo\u001b[63D\u001b[63C"]
93 | [11.902897, "o", "\u001b[2K\u001b[G"]
94 | [11.903872, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@\u001b[64D\u001b[64C"]
95 | [11.9041, "o", "\u001b[2K\u001b[G"]
96 | [11.904439, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@e\u001b[65D\u001b[65C"]
97 | [11.904654, "o", "\u001b[2K\u001b[G"]
98 | [11.90574, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@ev\u001b[66D"]
99 | [11.907527, "o", "\u001b[66C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evg\u001b[67D\u001b[67C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evge\u001b[68D\u001b[68C\u001b[2K\u001b[G"]
100 | [11.910648, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgen\u001b[69D\u001b[69C"]
101 | [11.910861, "o", "\u001b[2K\u001b[G"]
102 | [11.911251, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeni\u001b[70D\u001b[70C"]
103 | [11.911439, "o", "\u001b[2K\u001b[G"]
104 | [11.919069, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy\u001b[71D\u001b[71C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-\u001b[72D\u001b[72C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-k\u001b[73D\u001b[73C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-kh"]
105 | [11.91964, "o", "\u001b[74D\u001b[74C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khy\u001b[75D\u001b[75C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khys\u001b[76D\u001b[76C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst\u001b[77D\u001b[77C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.\u001b[78D\u001b[78C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.c\u001b[79D\u001b[79C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.co\u001b[80D\u001b[80C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.com\u001b[81D\u001b[81C"]
106 | [11.946574, "o", "\u001b[2K\u001b[G"]
107 | [11.947364, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0m\u001b[36minfo@evgeniy-khyst.com\u001b[39m\u001b[81D\u001b[81C\r\n"]
108 | [11.949585, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to have 'www' subdomain (e.g. www.example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[61D\u001b[61C"]
109 | [13.529925, "o", "\u001b[2K\u001b[G"]
110 | [13.53144, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to have 'www' subdomain (e.g. www.example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[58D"]
111 | [13.531793, "o", "\u001b[58C\r\n"]
112 | [13.533535, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to obtain a test certificate from a staging server?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[65D\u001b[65C"]
113 | [14.717925, "o", "\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWant to obtain a test certificate from a staging server?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[62D\u001b[62C\r\n"]
114 | [14.71902, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the RSA key size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(4096) \u001b[22m\u001b[43D\u001b[43C"]
115 | [15.467686, "o", "\u001b[2K\u001b[G"]
116 | [15.468652, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the RSA key size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[36m4096\u001b[39m\u001b[40D"]
117 | [15.468944, "o", "\u001b[40C\r\n"]
118 | [15.473819, "o", "\u001b[?25l"]
119 | [15.477291, "o", "\u001b[32m?\u001b[39m \u001b[1mHow do you want to configure Nginx?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Use arrow keys)\u001b[22m\r\n\u001b[36m❯ To serve static content\u001b[39m \r\n As a reverse proxy \u001b[21D\u001b[21C"]
120 | [16.458417, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
121 | [16.459527, "o", "\u001b[32m?\u001b[39m \u001b[1mHow do you want to configure Nginx?\u001b[22m\u001b[0m \u001b[0m\u001b[36mTo serve static content\u001b[39m"]
122 | [16.459722, "o", "\u001b[61D\u001b[61C\r\n"]
123 | [16.460011, "o", "\u001b[?25h"]
124 | [16.464417, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to add another domain?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22m"]
125 | [16.464654, "o", "\u001b[36D\u001b[36C"]
126 | [18.427462, "o", "\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWant to add another domain?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22my"]
127 | [18.427676, "o", "\u001b[37D\u001b[37C"]
128 | [18.665691, "o", "\u001b[2K\u001b[G"]
129 | [18.666554, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to add another domain?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[33D\u001b[33C\r\n"]
130 | [18.669416, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[46D\u001b[46C"]
131 | [22.506722, "o", "\u001b[2K\u001b[G"]
132 | [22.507665, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb\u001b[47D\u001b[47C"]
133 | [22.507931, "o", "\u001b[2K\u001b[G"]
134 | [22.509814, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.\u001b[48D"]
135 | [22.510143, "o", "\u001b[48C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.e\u001b[49D\u001b[49C\u001b[2K\u001b[G"]
136 | [22.510828, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.ev"]
137 | [22.51096, "o", "\u001b[50D\u001b[50C\u001b[2K\u001b[G"]
138 | [22.511906, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evg\u001b[51D\u001b[51C"]
139 | [22.512137, "o", "\u001b[2K\u001b[G"]
140 | [22.512712, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evge\u001b[52D\u001b[52C"]
141 | [22.51294, "o", "\u001b[2K\u001b[G"]
142 | [22.513456, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgen"]
143 | [22.513564, "o", "\u001b[53D\u001b[53C"]
144 | [22.513819, "o", "\u001b[2K\u001b[G"]
145 | [22.514301, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeni"]
146 | [22.514342, "o", "\u001b[54D\u001b[54C"]
147 | [22.515169, "o", "\u001b[2K\u001b[G"]
148 | [22.515762, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy\u001b[55D\u001b[55C"]
149 | [22.516006, "o", "\u001b[2K\u001b[G"]
150 | [22.516516, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-\u001b[56D\u001b[56C"]
151 | [22.51677, "o", "\u001b[2K\u001b[G"]
152 | [22.517229, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-k\u001b[57D\u001b[57C"]
153 | [22.517481, "o", "\u001b[2K\u001b[G"]
154 | [22.518117, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-kh\u001b[58D\u001b[58C"]
155 | [22.518401, "o", "\u001b[2K\u001b[G"]
156 | [22.518968, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khy\u001b[59D\u001b[59C"]
157 | [22.519166, "o", "\u001b[2K\u001b[G"]
158 | [22.520594, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khys\u001b[60D\u001b[60C"]
159 | [22.520665, "o", "\u001b[2K\u001b[G"]
160 | [22.52124, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khyst"]
161 | [22.521425, "o", "\u001b[61D\u001b[61C"]
162 | [22.521673, "o", "\u001b[2K\u001b[G"]
163 | [22.522147, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khyst.\u001b[62D\u001b[62C"]
164 | [22.522341, "o", "\u001b[2K\u001b[G"]
165 | [22.522784, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khyst.c\u001b[63D\u001b[63C"]
166 | [22.523007, "o", "\u001b[2K\u001b[G"]
167 | [22.523406, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khyst.co\u001b[64D\u001b[64C"]
168 | [22.523619, "o", "\u001b[2K\u001b[G"]
169 | [22.523978, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0mb.evgeniy-khyst.com\u001b[65D\u001b[65C"]
170 | [23.067369, "o", "\u001b[2K\u001b[G"]
171 | [23.068019, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your domain name (e.g. example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[36mb.evgeniy-khyst.com\u001b[39m\u001b[65D\u001b[65C\r\n"]
172 | [23.06992, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0m\u001b[59D\u001b[59C"]
173 | [26.05856, "o", "\u001b[2K\u001b[G"]
174 | [26.059139, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0mi\u001b[60D\u001b[60C"]
175 | [26.059678, "o", "\u001b[2K\u001b[G"]
176 | [26.060427, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0min\u001b[61D"]
177 | [26.060645, "o", "\u001b[61C\u001b[2K\u001b[G"]
178 | [26.061183, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minf\u001b[62D\u001b[62C"]
179 | [26.061534, "o", "\u001b[2K\u001b[G"]
180 | [26.064521, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo\u001b[63D\u001b[63C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@\u001b[64D\u001b[64C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@e\u001b[65D\u001b[65C\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@ev\u001b[66D\u001b[66C"]
181 | [26.065222, "o", "\u001b[2K\u001b[G"]
182 | [26.065589, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evg\u001b[67D\u001b[67C"]
183 | [26.065793, "o", "\u001b[2K\u001b[G"]
184 | [26.066238, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evge\u001b[68D\u001b[68C"]
185 | [26.066468, "o", "\u001b[2K\u001b[G"]
186 | [26.066735, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgen\u001b[69D\u001b[69C"]
187 | [26.066944, "o", "\u001b[2K\u001b[G"]
188 | [26.067779, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeni\u001b[70D\u001b[70C"]
189 | [26.068017, "o", "\u001b[2K\u001b[G"]
190 | [26.068429, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy\u001b[71D\u001b[71C"]
191 | [26.06857, "o", "\u001b[2K\u001b[G"]
192 | [26.068942, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-\u001b[72D\u001b[72C"]
193 | [26.06916, "o", "\u001b[2K\u001b[G"]
194 | [26.069666, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-k"]
195 | [26.069898, "o", "\u001b[73D\u001b[73C\u001b[2K\u001b[G"]
196 | [26.070506, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-kh\u001b[74D\u001b[74C"]
197 | [26.070746, "o", "\u001b[2K\u001b[G"]
198 | [26.071097, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khy\u001b[75D\u001b[75C\u001b[2K\u001b[G"]
199 | [26.071599, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khys\u001b[76D\u001b[76C"]
200 | [26.071722, "o", "\u001b[2K\u001b[G"]
201 | [26.071912, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst\u001b[77D\u001b[77C"]
202 | [26.072069, "o", "\u001b[2K\u001b[G"]
203 | [26.072363, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.\u001b[78D\u001b[78C"]
204 | [26.072542, "o", "\u001b[2K\u001b[G"]
205 | [26.072788, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.c"]
206 | [26.072985, "o", "\u001b[79D\u001b[79C"]
207 | [26.073076, "o", "\u001b[2K\u001b[G"]
208 | [26.073339, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.co\u001b[80D"]
209 | [26.073434, "o", "\u001b[80C"]
210 | [26.073466, "o", "\u001b[2K\u001b[G"]
211 | [26.073771, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0minfo@evgeniy-khyst.com\u001b[81D\u001b[81C"]
212 | [26.39563, "o", "\u001b[2K\u001b[G"]
213 | [26.396241, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat's your email for registration and recovery contact?\u001b[22m\u001b[0m \u001b[0m\u001b[36minfo@evgeniy-khyst.com\u001b[39m\u001b[81D\u001b[81C\r\n"]
214 | [26.397998, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to have 'www' subdomain (e.g. www.example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[61D\u001b[61C"]
215 | [27.833509, "o", "\u001b[2K\u001b[G"]
216 | [27.834317, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to have 'www' subdomain (e.g. www.example.com)?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[58D\u001b[58C\r\n"]
217 | [27.836277, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to obtain a test certificate from a staging server?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[65D\u001b[65C"]
218 | [28.729814, "o", "\u001b[2K\u001b[G"]
219 | [28.730425, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to obtain a test certificate from a staging server?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[62D\u001b[62C\r\n"]
220 | [28.731896, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the RSA key size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(4096) \u001b[22m"]
221 | [28.73208, "o", "\u001b[43D\u001b[43C"]
222 | [29.516125, "o", "\u001b[2K\u001b[G"]
223 | [29.517114, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the RSA key size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[36m4096\u001b[39m\u001b[40D\u001b[40C\r\n"]
224 | [29.518251, "o", "\u001b[?25l"]
225 | [29.519128, "o", "\u001b[32m?\u001b[39m \u001b[1mHow do you want to configure Nginx?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Use arrow keys)\u001b[22m\r\n\u001b[36m❯ To serve static content\u001b[39m \r\n As a reverse proxy \u001b[21D\u001b[21C"]
226 | [30.0911, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
227 | [30.091934, "o", "\u001b[32m?\u001b[39m \u001b[1mHow do you want to configure Nginx?\u001b[22m\u001b[0m \u001b[0m\r\n To serve static content \r\n\u001b[36m❯ As a reverse proxy\u001b[39m \u001b[21D\u001b[21C"]
228 | [30.746166, "o", "\u001b[2K\u001b[1A\u001b[2K\u001b[1A\u001b[2K\u001b[G"]
229 | [30.746854, "o", "\u001b[32m?\u001b[39m \u001b[1mHow do you want to configure Nginx?\u001b[22m\u001b[0m \u001b[0m\u001b[36mAs a reverse proxy\u001b[39m"]
230 | [30.747092, "o", "\u001b[56D\u001b[56C\r\n\u001b[?25h"]
231 | [30.749314, "o", "\u001b[32m?\u001b[39m \u001b[1mDoes the upstream server run as a Docker container on the same host?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[77D\u001b[77C"]
232 | [31.898078, "o", "\u001b[2K\u001b[G"]
233 | [31.898842, "o", "\u001b[32m?\u001b[39m \u001b[1mDoes the upstream server run as a Docker container on the same host?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m"]
234 | [31.899137, "o", "\u001b[74D\u001b[74C\r\n"]
235 | [31.900758, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0m\u001b[73D\u001b[73C"]
236 | [35.034513, "o", "\u001b[2K\u001b[G"]
237 | [35.035129, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0me\u001b[74D\u001b[74C"]
238 | [35.035388, "o", "\u001b[2K\u001b[G"]
239 | [35.03585, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mex\u001b[75D\u001b[75C"]
240 | [35.036201, "o", "\u001b[2K\u001b[G"]
241 | [35.036797, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexa\u001b[76D\u001b[76C"]
242 | [35.03708, "o", "\u001b[2K\u001b[G"]
243 | [35.038314, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexam\u001b[77D\u001b[77C"]
244 | [35.038532, "o", "\u001b[2K\u001b[G"]
245 | [35.038988, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexamp"]
246 | [35.039271, "o", "\u001b[78D\u001b[78C\u001b[2K\u001b[G"]
247 | [35.039681, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexampl"]
248 | [35.039728, "o", "\u001b[79D\u001b[79C"]
249 | [35.039891, "o", "\u001b[2K\u001b[G"]
250 | [35.040311, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample\u001b[80D\u001b[80C"]
251 | [35.040498, "o", "\u001b[2K\u001b[G"]
252 | [35.04086, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-\u001b[81D\u001b[81C"]
253 | [35.041067, "o", "\u001b[2K\u001b[G"]
254 | [35.041453, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-b\u001b[82D\u001b[82C"]
255 | [35.041662, "o", "\u001b[2K\u001b[G"]
256 | [35.042024, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-ba\u001b[83D\u001b[83C"]
257 | [35.042258, "o", "\u001b[2K\u001b[G"]
258 | [35.042963, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-bac\u001b[84D\u001b[84C"]
259 | [35.043194, "o", "\u001b[2K\u001b[G"]
260 | [35.04371, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-back\u001b[85D\u001b[85C"]
261 | [35.043908, "o", "\u001b[2K\u001b[G"]
262 | [35.044275, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backe\u001b[86D\u001b[86C"]
263 | [35.044469, "o", "\u001b[2K\u001b[G"]
264 | [35.044885, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backen\u001b[87D\u001b[87C"]
265 | [35.045072, "o", "\u001b[2K\u001b[G"]
266 | [35.045519, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend"]
267 | [35.045624, "o", "\u001b[88D\u001b[88C"]
268 | [35.045887, "o", "\u001b[2K\u001b[G"]
269 | [35.046339, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend:\u001b[89D\u001b[89C"]
270 | [35.046577, "o", "\u001b[2K\u001b[G"]
271 | [35.046986, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend:8\u001b[90D\u001b[90C"]
272 | [35.047281, "o", "\u001b[2K\u001b[G"]
273 | [35.047917, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend:80\u001b[91D\u001b[91C"]
274 | [35.048038, "o", "\u001b[2K\u001b[G"]
275 | [35.048347, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend:808\u001b[92D\u001b[92C"]
276 | [35.048605, "o", "\u001b[2K\u001b[G"]
277 | [35.049157, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0mexample-backend:8080\u001b[93D\u001b[93C"]
278 | [35.307456, "o", "\u001b[2K\u001b[G"]
279 | [35.309191, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the address of the proxied server (e.g. example-backend:8080)?\u001b[22m\u001b[0m \u001b[0m\u001b[36mexample-backend:8080\u001b[39m\u001b[93D\u001b[93C\r\n"]
280 | [35.310481, "o", "\u001b[32m?\u001b[39m \u001b[1mEnable WebSocket proxying?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22m\u001b[35D\u001b[35C"]
281 | [38.492121, "o", "\u001b[2K\u001b[G\u001b[32m?\u001b[39m \u001b[1mEnable WebSocket proxying?\u001b[22m\u001b[0m \u001b[0m\u001b[36mNo\u001b[39m\u001b[31D\u001b[31C\r\n\u001b[32m?\u001b[39m \u001b[1mWant to add another domain?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22m\u001b[36D\u001b[36C"]
282 | [40.505488, "o", "\u001b[2K\u001b[G"]
283 | [40.506083, "o", "\u001b[32m?\u001b[39m \u001b[1mWant to add another domain?\u001b[22m\u001b[0m \u001b[0m\u001b[36mNo\u001b[39m"]
284 | [40.506192, "o", "\u001b[32D\u001b[32C\r\n"]
285 | [40.507908, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the DH parameters size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(2048) \u001b[22m\u001b[49D\u001b[49C"]
286 | [41.066535, "o", "\u001b[2K\u001b[G"]
287 | [41.067211, "o", "\u001b[32m?\u001b[39m \u001b[1mWhat is the DH parameters size in bits?\u001b[22m\u001b[0m \u001b[0m\u001b[36m2048\u001b[39m\u001b[46D\u001b[46C\r\n"]
288 | [41.06864, "o", "\u001b[32m?\u001b[39m \u001b[1mUse Gzip?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(Y/n) \u001b[22m\u001b[18D\u001b[18C"]
289 | [41.785733, "o", "\u001b[2K\u001b[G"]
290 | [41.786365, "o", "\u001b[32m?\u001b[39m \u001b[1mUse Gzip?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[15D\u001b[15C\r\n"]
291 | [41.788588, "o", "\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22m\u001b[38D\u001b[38C"]
292 | [42.537362, "o", "\u001b[2K\u001b[G"]
293 | [42.538062, "o", "\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[2m(y/N) \u001b[22my"]
294 | [42.538342, "o", "\u001b[39D\u001b[39C"]
295 | [43.017771, "o", "\u001b[2K\u001b[G"]
296 | [43.018331, "o", "\u001b[32m?\u001b[39m \u001b[1mAre the entered data correct?\u001b[22m\u001b[0m \u001b[0m\u001b[36mYes\u001b[39m\u001b[35D\u001b[35C"]
297 | [43.018674, "o", "\r\n"]
298 | [43.019517, "o", "Writing config ./config.json\r\n"]
299 | [43.022303, "o", "Compiling template ./templates/nginx.conf.hbs\r\n"]
300 | [43.023244, "o", "Compiling template ./templates/servers.conf.hbs\r\n"]
301 | [43.041449, "o", "Writing ./nginx-conf/nginx.conf\r\n"]
302 | [43.068013, "o", "Writing ./nginx-conf/conf.d/a.evgeniy-khyst.com.conf\r\n"]
303 | [43.068503, "o", "Writing ./nginx-conf/conf.d/b.evgeniy-khyst.com.conf\r\n"]
304 | [43.069507, "o", "\u001b[?25h"]
305 | [43.315194, "o", "\u001b[?2004h\u001b[01;34mletsencrypt-docker-compose\u001b[00m$ "]
306 | [44.920426, "o", "\u001b[?2004l\r\r\nexit\r\n"]
307 |
--------------------------------------------------------------------------------
/examples/nodejs-backend/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nodejs-backend-example",
3 | "version": "1.0.0",
4 | "lockfileVersion": 2,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "nodejs-backend-example",
9 | "version": "1.0.0",
10 | "license": "Apache-2.0",
11 | "dependencies": {
12 | "express": "^4.18.1",
13 | "express-ws": "^5.0.2"
14 | }
15 | },
16 | "node_modules/accepts": {
17 | "version": "1.3.8",
18 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
19 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
20 | "dependencies": {
21 | "mime-types": "~2.1.34",
22 | "negotiator": "0.6.3"
23 | },
24 | "engines": {
25 | "node": ">= 0.6"
26 | }
27 | },
28 | "node_modules/array-flatten": {
29 | "version": "1.1.1",
30 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
31 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
32 | },
33 | "node_modules/body-parser": {
34 | "version": "1.20.0",
35 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz",
36 | "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==",
37 | "dependencies": {
38 | "bytes": "3.1.2",
39 | "content-type": "~1.0.4",
40 | "debug": "2.6.9",
41 | "depd": "2.0.0",
42 | "destroy": "1.2.0",
43 | "http-errors": "2.0.0",
44 | "iconv-lite": "0.4.24",
45 | "on-finished": "2.4.1",
46 | "qs": "6.10.3",
47 | "raw-body": "2.5.1",
48 | "type-is": "~1.6.18",
49 | "unpipe": "1.0.0"
50 | },
51 | "engines": {
52 | "node": ">= 0.8",
53 | "npm": "1.2.8000 || >= 1.4.16"
54 | }
55 | },
56 | "node_modules/bytes": {
57 | "version": "3.1.2",
58 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
59 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
60 | "engines": {
61 | "node": ">= 0.8"
62 | }
63 | },
64 | "node_modules/call-bind": {
65 | "version": "1.0.2",
66 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
67 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
68 | "dependencies": {
69 | "function-bind": "^1.1.1",
70 | "get-intrinsic": "^1.0.2"
71 | },
72 | "funding": {
73 | "url": "https://github.com/sponsors/ljharb"
74 | }
75 | },
76 | "node_modules/content-disposition": {
77 | "version": "0.5.4",
78 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
79 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
80 | "dependencies": {
81 | "safe-buffer": "5.2.1"
82 | },
83 | "engines": {
84 | "node": ">= 0.6"
85 | }
86 | },
87 | "node_modules/content-type": {
88 | "version": "1.0.4",
89 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
90 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
91 | "engines": {
92 | "node": ">= 0.6"
93 | }
94 | },
95 | "node_modules/cookie": {
96 | "version": "0.5.0",
97 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
98 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
99 | "engines": {
100 | "node": ">= 0.6"
101 | }
102 | },
103 | "node_modules/cookie-signature": {
104 | "version": "1.0.6",
105 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
106 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
107 | },
108 | "node_modules/debug": {
109 | "version": "2.6.9",
110 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
111 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
112 | "dependencies": {
113 | "ms": "2.0.0"
114 | }
115 | },
116 | "node_modules/depd": {
117 | "version": "2.0.0",
118 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
119 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
120 | "engines": {
121 | "node": ">= 0.8"
122 | }
123 | },
124 | "node_modules/destroy": {
125 | "version": "1.2.0",
126 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
127 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
128 | "engines": {
129 | "node": ">= 0.8",
130 | "npm": "1.2.8000 || >= 1.4.16"
131 | }
132 | },
133 | "node_modules/ee-first": {
134 | "version": "1.1.1",
135 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
136 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
137 | },
138 | "node_modules/encodeurl": {
139 | "version": "1.0.2",
140 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
141 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
142 | "engines": {
143 | "node": ">= 0.8"
144 | }
145 | },
146 | "node_modules/escape-html": {
147 | "version": "1.0.3",
148 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
149 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
150 | },
151 | "node_modules/etag": {
152 | "version": "1.8.1",
153 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
154 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
155 | "engines": {
156 | "node": ">= 0.6"
157 | }
158 | },
159 | "node_modules/express": {
160 | "version": "4.18.1",
161 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz",
162 | "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==",
163 | "dependencies": {
164 | "accepts": "~1.3.8",
165 | "array-flatten": "1.1.1",
166 | "body-parser": "1.20.0",
167 | "content-disposition": "0.5.4",
168 | "content-type": "~1.0.4",
169 | "cookie": "0.5.0",
170 | "cookie-signature": "1.0.6",
171 | "debug": "2.6.9",
172 | "depd": "2.0.0",
173 | "encodeurl": "~1.0.2",
174 | "escape-html": "~1.0.3",
175 | "etag": "~1.8.1",
176 | "finalhandler": "1.2.0",
177 | "fresh": "0.5.2",
178 | "http-errors": "2.0.0",
179 | "merge-descriptors": "1.0.1",
180 | "methods": "~1.1.2",
181 | "on-finished": "2.4.1",
182 | "parseurl": "~1.3.3",
183 | "path-to-regexp": "0.1.7",
184 | "proxy-addr": "~2.0.7",
185 | "qs": "6.10.3",
186 | "range-parser": "~1.2.1",
187 | "safe-buffer": "5.2.1",
188 | "send": "0.18.0",
189 | "serve-static": "1.15.0",
190 | "setprototypeof": "1.2.0",
191 | "statuses": "2.0.1",
192 | "type-is": "~1.6.18",
193 | "utils-merge": "1.0.1",
194 | "vary": "~1.1.2"
195 | },
196 | "engines": {
197 | "node": ">= 0.10.0"
198 | }
199 | },
200 | "node_modules/express-ws": {
201 | "version": "5.0.2",
202 | "resolved": "https://registry.npmjs.org/express-ws/-/express-ws-5.0.2.tgz",
203 | "integrity": "sha512-0uvmuk61O9HXgLhGl3QhNSEtRsQevtmbL94/eILaliEADZBHZOQUAiHFrGPrgsjikohyrmSG5g+sCfASTt0lkQ==",
204 | "dependencies": {
205 | "ws": "^7.4.6"
206 | },
207 | "engines": {
208 | "node": ">=4.5.0"
209 | },
210 | "peerDependencies": {
211 | "express": "^4.0.0 || ^5.0.0-alpha.1"
212 | }
213 | },
214 | "node_modules/finalhandler": {
215 | "version": "1.2.0",
216 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
217 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
218 | "dependencies": {
219 | "debug": "2.6.9",
220 | "encodeurl": "~1.0.2",
221 | "escape-html": "~1.0.3",
222 | "on-finished": "2.4.1",
223 | "parseurl": "~1.3.3",
224 | "statuses": "2.0.1",
225 | "unpipe": "~1.0.0"
226 | },
227 | "engines": {
228 | "node": ">= 0.8"
229 | }
230 | },
231 | "node_modules/forwarded": {
232 | "version": "0.2.0",
233 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
234 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
235 | "engines": {
236 | "node": ">= 0.6"
237 | }
238 | },
239 | "node_modules/fresh": {
240 | "version": "0.5.2",
241 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
242 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
243 | "engines": {
244 | "node": ">= 0.6"
245 | }
246 | },
247 | "node_modules/function-bind": {
248 | "version": "1.1.1",
249 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
250 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
251 | },
252 | "node_modules/get-intrinsic": {
253 | "version": "1.1.2",
254 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz",
255 | "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==",
256 | "dependencies": {
257 | "function-bind": "^1.1.1",
258 | "has": "^1.0.3",
259 | "has-symbols": "^1.0.3"
260 | },
261 | "funding": {
262 | "url": "https://github.com/sponsors/ljharb"
263 | }
264 | },
265 | "node_modules/has": {
266 | "version": "1.0.3",
267 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
268 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
269 | "dependencies": {
270 | "function-bind": "^1.1.1"
271 | },
272 | "engines": {
273 | "node": ">= 0.4.0"
274 | }
275 | },
276 | "node_modules/has-symbols": {
277 | "version": "1.0.3",
278 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
279 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
280 | "engines": {
281 | "node": ">= 0.4"
282 | },
283 | "funding": {
284 | "url": "https://github.com/sponsors/ljharb"
285 | }
286 | },
287 | "node_modules/http-errors": {
288 | "version": "2.0.0",
289 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
290 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
291 | "dependencies": {
292 | "depd": "2.0.0",
293 | "inherits": "2.0.4",
294 | "setprototypeof": "1.2.0",
295 | "statuses": "2.0.1",
296 | "toidentifier": "1.0.1"
297 | },
298 | "engines": {
299 | "node": ">= 0.8"
300 | }
301 | },
302 | "node_modules/iconv-lite": {
303 | "version": "0.4.24",
304 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
305 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
306 | "dependencies": {
307 | "safer-buffer": ">= 2.1.2 < 3"
308 | },
309 | "engines": {
310 | "node": ">=0.10.0"
311 | }
312 | },
313 | "node_modules/inherits": {
314 | "version": "2.0.4",
315 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
316 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
317 | },
318 | "node_modules/ipaddr.js": {
319 | "version": "1.9.1",
320 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
321 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
322 | "engines": {
323 | "node": ">= 0.10"
324 | }
325 | },
326 | "node_modules/media-typer": {
327 | "version": "0.3.0",
328 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
329 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
330 | "engines": {
331 | "node": ">= 0.6"
332 | }
333 | },
334 | "node_modules/merge-descriptors": {
335 | "version": "1.0.1",
336 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
337 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
338 | },
339 | "node_modules/methods": {
340 | "version": "1.1.2",
341 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
342 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
343 | "engines": {
344 | "node": ">= 0.6"
345 | }
346 | },
347 | "node_modules/mime": {
348 | "version": "1.6.0",
349 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
350 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
351 | "bin": {
352 | "mime": "cli.js"
353 | },
354 | "engines": {
355 | "node": ">=4"
356 | }
357 | },
358 | "node_modules/mime-db": {
359 | "version": "1.52.0",
360 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
361 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
362 | "engines": {
363 | "node": ">= 0.6"
364 | }
365 | },
366 | "node_modules/mime-types": {
367 | "version": "2.1.35",
368 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
369 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
370 | "dependencies": {
371 | "mime-db": "1.52.0"
372 | },
373 | "engines": {
374 | "node": ">= 0.6"
375 | }
376 | },
377 | "node_modules/ms": {
378 | "version": "2.0.0",
379 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
380 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
381 | },
382 | "node_modules/negotiator": {
383 | "version": "0.6.3",
384 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
385 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
386 | "engines": {
387 | "node": ">= 0.6"
388 | }
389 | },
390 | "node_modules/object-inspect": {
391 | "version": "1.12.2",
392 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz",
393 | "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",
394 | "funding": {
395 | "url": "https://github.com/sponsors/ljharb"
396 | }
397 | },
398 | "node_modules/on-finished": {
399 | "version": "2.4.1",
400 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
401 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
402 | "dependencies": {
403 | "ee-first": "1.1.1"
404 | },
405 | "engines": {
406 | "node": ">= 0.8"
407 | }
408 | },
409 | "node_modules/parseurl": {
410 | "version": "1.3.3",
411 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
412 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
413 | "engines": {
414 | "node": ">= 0.8"
415 | }
416 | },
417 | "node_modules/path-to-regexp": {
418 | "version": "0.1.7",
419 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
420 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
421 | },
422 | "node_modules/proxy-addr": {
423 | "version": "2.0.7",
424 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
425 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
426 | "dependencies": {
427 | "forwarded": "0.2.0",
428 | "ipaddr.js": "1.9.1"
429 | },
430 | "engines": {
431 | "node": ">= 0.10"
432 | }
433 | },
434 | "node_modules/qs": {
435 | "version": "6.10.3",
436 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz",
437 | "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==",
438 | "dependencies": {
439 | "side-channel": "^1.0.4"
440 | },
441 | "engines": {
442 | "node": ">=0.6"
443 | },
444 | "funding": {
445 | "url": "https://github.com/sponsors/ljharb"
446 | }
447 | },
448 | "node_modules/range-parser": {
449 | "version": "1.2.1",
450 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
451 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
452 | "engines": {
453 | "node": ">= 0.6"
454 | }
455 | },
456 | "node_modules/raw-body": {
457 | "version": "2.5.1",
458 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
459 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
460 | "dependencies": {
461 | "bytes": "3.1.2",
462 | "http-errors": "2.0.0",
463 | "iconv-lite": "0.4.24",
464 | "unpipe": "1.0.0"
465 | },
466 | "engines": {
467 | "node": ">= 0.8"
468 | }
469 | },
470 | "node_modules/safe-buffer": {
471 | "version": "5.2.1",
472 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
473 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
474 | "funding": [
475 | {
476 | "type": "github",
477 | "url": "https://github.com/sponsors/feross"
478 | },
479 | {
480 | "type": "patreon",
481 | "url": "https://www.patreon.com/feross"
482 | },
483 | {
484 | "type": "consulting",
485 | "url": "https://feross.org/support"
486 | }
487 | ]
488 | },
489 | "node_modules/safer-buffer": {
490 | "version": "2.1.2",
491 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
492 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
493 | },
494 | "node_modules/send": {
495 | "version": "0.18.0",
496 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
497 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
498 | "dependencies": {
499 | "debug": "2.6.9",
500 | "depd": "2.0.0",
501 | "destroy": "1.2.0",
502 | "encodeurl": "~1.0.2",
503 | "escape-html": "~1.0.3",
504 | "etag": "~1.8.1",
505 | "fresh": "0.5.2",
506 | "http-errors": "2.0.0",
507 | "mime": "1.6.0",
508 | "ms": "2.1.3",
509 | "on-finished": "2.4.1",
510 | "range-parser": "~1.2.1",
511 | "statuses": "2.0.1"
512 | },
513 | "engines": {
514 | "node": ">= 0.8.0"
515 | }
516 | },
517 | "node_modules/send/node_modules/ms": {
518 | "version": "2.1.3",
519 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
520 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
521 | },
522 | "node_modules/serve-static": {
523 | "version": "1.15.0",
524 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
525 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
526 | "dependencies": {
527 | "encodeurl": "~1.0.2",
528 | "escape-html": "~1.0.3",
529 | "parseurl": "~1.3.3",
530 | "send": "0.18.0"
531 | },
532 | "engines": {
533 | "node": ">= 0.8.0"
534 | }
535 | },
536 | "node_modules/setprototypeof": {
537 | "version": "1.2.0",
538 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
539 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
540 | },
541 | "node_modules/side-channel": {
542 | "version": "1.0.4",
543 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
544 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
545 | "dependencies": {
546 | "call-bind": "^1.0.0",
547 | "get-intrinsic": "^1.0.2",
548 | "object-inspect": "^1.9.0"
549 | },
550 | "funding": {
551 | "url": "https://github.com/sponsors/ljharb"
552 | }
553 | },
554 | "node_modules/statuses": {
555 | "version": "2.0.1",
556 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
557 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
558 | "engines": {
559 | "node": ">= 0.8"
560 | }
561 | },
562 | "node_modules/toidentifier": {
563 | "version": "1.0.1",
564 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
565 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
566 | "engines": {
567 | "node": ">=0.6"
568 | }
569 | },
570 | "node_modules/type-is": {
571 | "version": "1.6.18",
572 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
573 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
574 | "dependencies": {
575 | "media-typer": "0.3.0",
576 | "mime-types": "~2.1.24"
577 | },
578 | "engines": {
579 | "node": ">= 0.6"
580 | }
581 | },
582 | "node_modules/unpipe": {
583 | "version": "1.0.0",
584 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
585 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
586 | "engines": {
587 | "node": ">= 0.8"
588 | }
589 | },
590 | "node_modules/utils-merge": {
591 | "version": "1.0.1",
592 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
593 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
594 | "engines": {
595 | "node": ">= 0.4.0"
596 | }
597 | },
598 | "node_modules/vary": {
599 | "version": "1.1.2",
600 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
601 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
602 | "engines": {
603 | "node": ">= 0.8"
604 | }
605 | },
606 | "node_modules/ws": {
607 | "version": "7.5.9",
608 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
609 | "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
610 | "engines": {
611 | "node": ">=8.3.0"
612 | },
613 | "peerDependencies": {
614 | "bufferutil": "^4.0.1",
615 | "utf-8-validate": "^5.0.2"
616 | },
617 | "peerDependenciesMeta": {
618 | "bufferutil": {
619 | "optional": true
620 | },
621 | "utf-8-validate": {
622 | "optional": true
623 | }
624 | }
625 | }
626 | },
627 | "dependencies": {
628 | "accepts": {
629 | "version": "1.3.8",
630 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
631 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
632 | "requires": {
633 | "mime-types": "~2.1.34",
634 | "negotiator": "0.6.3"
635 | }
636 | },
637 | "array-flatten": {
638 | "version": "1.1.1",
639 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
640 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
641 | },
642 | "body-parser": {
643 | "version": "1.20.0",
644 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz",
645 | "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==",
646 | "requires": {
647 | "bytes": "3.1.2",
648 | "content-type": "~1.0.4",
649 | "debug": "2.6.9",
650 | "depd": "2.0.0",
651 | "destroy": "1.2.0",
652 | "http-errors": "2.0.0",
653 | "iconv-lite": "0.4.24",
654 | "on-finished": "2.4.1",
655 | "qs": "6.10.3",
656 | "raw-body": "2.5.1",
657 | "type-is": "~1.6.18",
658 | "unpipe": "1.0.0"
659 | }
660 | },
661 | "bytes": {
662 | "version": "3.1.2",
663 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
664 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="
665 | },
666 | "call-bind": {
667 | "version": "1.0.2",
668 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
669 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
670 | "requires": {
671 | "function-bind": "^1.1.1",
672 | "get-intrinsic": "^1.0.2"
673 | }
674 | },
675 | "content-disposition": {
676 | "version": "0.5.4",
677 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
678 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
679 | "requires": {
680 | "safe-buffer": "5.2.1"
681 | }
682 | },
683 | "content-type": {
684 | "version": "1.0.4",
685 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
686 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
687 | },
688 | "cookie": {
689 | "version": "0.5.0",
690 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
691 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw=="
692 | },
693 | "cookie-signature": {
694 | "version": "1.0.6",
695 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
696 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
697 | },
698 | "debug": {
699 | "version": "2.6.9",
700 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
701 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
702 | "requires": {
703 | "ms": "2.0.0"
704 | }
705 | },
706 | "depd": {
707 | "version": "2.0.0",
708 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
709 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
710 | },
711 | "destroy": {
712 | "version": "1.2.0",
713 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
714 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="
715 | },
716 | "ee-first": {
717 | "version": "1.1.1",
718 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
719 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
720 | },
721 | "encodeurl": {
722 | "version": "1.0.2",
723 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
724 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="
725 | },
726 | "escape-html": {
727 | "version": "1.0.3",
728 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
729 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
730 | },
731 | "etag": {
732 | "version": "1.8.1",
733 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
734 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="
735 | },
736 | "express": {
737 | "version": "4.18.1",
738 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz",
739 | "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==",
740 | "requires": {
741 | "accepts": "~1.3.8",
742 | "array-flatten": "1.1.1",
743 | "body-parser": "1.20.0",
744 | "content-disposition": "0.5.4",
745 | "content-type": "~1.0.4",
746 | "cookie": "0.5.0",
747 | "cookie-signature": "1.0.6",
748 | "debug": "2.6.9",
749 | "depd": "2.0.0",
750 | "encodeurl": "~1.0.2",
751 | "escape-html": "~1.0.3",
752 | "etag": "~1.8.1",
753 | "finalhandler": "1.2.0",
754 | "fresh": "0.5.2",
755 | "http-errors": "2.0.0",
756 | "merge-descriptors": "1.0.1",
757 | "methods": "~1.1.2",
758 | "on-finished": "2.4.1",
759 | "parseurl": "~1.3.3",
760 | "path-to-regexp": "0.1.7",
761 | "proxy-addr": "~2.0.7",
762 | "qs": "6.10.3",
763 | "range-parser": "~1.2.1",
764 | "safe-buffer": "5.2.1",
765 | "send": "0.18.0",
766 | "serve-static": "1.15.0",
767 | "setprototypeof": "1.2.0",
768 | "statuses": "2.0.1",
769 | "type-is": "~1.6.18",
770 | "utils-merge": "1.0.1",
771 | "vary": "~1.1.2"
772 | }
773 | },
774 | "express-ws": {
775 | "version": "5.0.2",
776 | "resolved": "https://registry.npmjs.org/express-ws/-/express-ws-5.0.2.tgz",
777 | "integrity": "sha512-0uvmuk61O9HXgLhGl3QhNSEtRsQevtmbL94/eILaliEADZBHZOQUAiHFrGPrgsjikohyrmSG5g+sCfASTt0lkQ==",
778 | "requires": {
779 | "ws": "^7.4.6"
780 | }
781 | },
782 | "finalhandler": {
783 | "version": "1.2.0",
784 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
785 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
786 | "requires": {
787 | "debug": "2.6.9",
788 | "encodeurl": "~1.0.2",
789 | "escape-html": "~1.0.3",
790 | "on-finished": "2.4.1",
791 | "parseurl": "~1.3.3",
792 | "statuses": "2.0.1",
793 | "unpipe": "~1.0.0"
794 | }
795 | },
796 | "forwarded": {
797 | "version": "0.2.0",
798 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
799 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="
800 | },
801 | "fresh": {
802 | "version": "0.5.2",
803 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
804 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="
805 | },
806 | "function-bind": {
807 | "version": "1.1.1",
808 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
809 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
810 | },
811 | "get-intrinsic": {
812 | "version": "1.1.2",
813 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz",
814 | "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==",
815 | "requires": {
816 | "function-bind": "^1.1.1",
817 | "has": "^1.0.3",
818 | "has-symbols": "^1.0.3"
819 | }
820 | },
821 | "has": {
822 | "version": "1.0.3",
823 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
824 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
825 | "requires": {
826 | "function-bind": "^1.1.1"
827 | }
828 | },
829 | "has-symbols": {
830 | "version": "1.0.3",
831 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
832 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
833 | },
834 | "http-errors": {
835 | "version": "2.0.0",
836 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
837 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
838 | "requires": {
839 | "depd": "2.0.0",
840 | "inherits": "2.0.4",
841 | "setprototypeof": "1.2.0",
842 | "statuses": "2.0.1",
843 | "toidentifier": "1.0.1"
844 | }
845 | },
846 | "iconv-lite": {
847 | "version": "0.4.24",
848 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
849 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
850 | "requires": {
851 | "safer-buffer": ">= 2.1.2 < 3"
852 | }
853 | },
854 | "inherits": {
855 | "version": "2.0.4",
856 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
857 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
858 | },
859 | "ipaddr.js": {
860 | "version": "1.9.1",
861 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
862 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
863 | },
864 | "media-typer": {
865 | "version": "0.3.0",
866 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
867 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="
868 | },
869 | "merge-descriptors": {
870 | "version": "1.0.1",
871 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
872 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
873 | },
874 | "methods": {
875 | "version": "1.1.2",
876 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
877 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="
878 | },
879 | "mime": {
880 | "version": "1.6.0",
881 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
882 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
883 | },
884 | "mime-db": {
885 | "version": "1.52.0",
886 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
887 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
888 | },
889 | "mime-types": {
890 | "version": "2.1.35",
891 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
892 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
893 | "requires": {
894 | "mime-db": "1.52.0"
895 | }
896 | },
897 | "ms": {
898 | "version": "2.0.0",
899 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
900 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
901 | },
902 | "negotiator": {
903 | "version": "0.6.3",
904 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
905 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="
906 | },
907 | "object-inspect": {
908 | "version": "1.12.2",
909 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz",
910 | "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ=="
911 | },
912 | "on-finished": {
913 | "version": "2.4.1",
914 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
915 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
916 | "requires": {
917 | "ee-first": "1.1.1"
918 | }
919 | },
920 | "parseurl": {
921 | "version": "1.3.3",
922 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
923 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
924 | },
925 | "path-to-regexp": {
926 | "version": "0.1.7",
927 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
928 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
929 | },
930 | "proxy-addr": {
931 | "version": "2.0.7",
932 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
933 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
934 | "requires": {
935 | "forwarded": "0.2.0",
936 | "ipaddr.js": "1.9.1"
937 | }
938 | },
939 | "qs": {
940 | "version": "6.10.3",
941 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz",
942 | "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==",
943 | "requires": {
944 | "side-channel": "^1.0.4"
945 | }
946 | },
947 | "range-parser": {
948 | "version": "1.2.1",
949 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
950 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
951 | },
952 | "raw-body": {
953 | "version": "2.5.1",
954 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
955 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
956 | "requires": {
957 | "bytes": "3.1.2",
958 | "http-errors": "2.0.0",
959 | "iconv-lite": "0.4.24",
960 | "unpipe": "1.0.0"
961 | }
962 | },
963 | "safe-buffer": {
964 | "version": "5.2.1",
965 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
966 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
967 | },
968 | "safer-buffer": {
969 | "version": "2.1.2",
970 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
971 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
972 | },
973 | "send": {
974 | "version": "0.18.0",
975 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
976 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
977 | "requires": {
978 | "debug": "2.6.9",
979 | "depd": "2.0.0",
980 | "destroy": "1.2.0",
981 | "encodeurl": "~1.0.2",
982 | "escape-html": "~1.0.3",
983 | "etag": "~1.8.1",
984 | "fresh": "0.5.2",
985 | "http-errors": "2.0.0",
986 | "mime": "1.6.0",
987 | "ms": "2.1.3",
988 | "on-finished": "2.4.1",
989 | "range-parser": "~1.2.1",
990 | "statuses": "2.0.1"
991 | },
992 | "dependencies": {
993 | "ms": {
994 | "version": "2.1.3",
995 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
996 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
997 | }
998 | }
999 | },
1000 | "serve-static": {
1001 | "version": "1.15.0",
1002 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
1003 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
1004 | "requires": {
1005 | "encodeurl": "~1.0.2",
1006 | "escape-html": "~1.0.3",
1007 | "parseurl": "~1.3.3",
1008 | "send": "0.18.0"
1009 | }
1010 | },
1011 | "setprototypeof": {
1012 | "version": "1.2.0",
1013 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1014 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
1015 | },
1016 | "side-channel": {
1017 | "version": "1.0.4",
1018 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
1019 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
1020 | "requires": {
1021 | "call-bind": "^1.0.0",
1022 | "get-intrinsic": "^1.0.2",
1023 | "object-inspect": "^1.9.0"
1024 | }
1025 | },
1026 | "statuses": {
1027 | "version": "2.0.1",
1028 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1029 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="
1030 | },
1031 | "toidentifier": {
1032 | "version": "1.0.1",
1033 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1034 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
1035 | },
1036 | "type-is": {
1037 | "version": "1.6.18",
1038 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1039 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1040 | "requires": {
1041 | "media-typer": "0.3.0",
1042 | "mime-types": "~2.1.24"
1043 | }
1044 | },
1045 | "unpipe": {
1046 | "version": "1.0.0",
1047 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1048 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="
1049 | },
1050 | "utils-merge": {
1051 | "version": "1.0.1",
1052 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1053 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="
1054 | },
1055 | "vary": {
1056 | "version": "1.1.2",
1057 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1058 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="
1059 | },
1060 | "ws": {
1061 | "version": "7.5.9",
1062 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
1063 | "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
1064 | "requires": {}
1065 | }
1066 | }
1067 | }
1068 |
--------------------------------------------------------------------------------