From 37caf3a24bcff9d620698dafbd115feff1f0f377 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Fri, 17 May 2024 23:11:46 +0100 Subject: [PATCH] --- package-lock.json | 16 ++++++++-------- package.json | 2 +- source/index.mts | 9 +-------- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index d2af215..1339ce2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@radically-straightforward/production": "^1.0.13", + "@radically-straightforward/production": "^1.0.14", "crypto-random-string": "^5.0.0", "mailparser": "^3.7.1", "smtp-server": "^3.13.4" @@ -879,9 +879,9 @@ } }, "node_modules/@radically-straightforward/caddy": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@radically-straightforward/caddy/-/caddy-1.4.3.tgz", - "integrity": "sha512-ZEw+ICPaFdNrP1AO7oMWX/Zf1+gsuZkrWyX86NYZDvAk8Phhi3U+BexpHcWYzUAz9V/Kjehr8kRDGswtSH/jBA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@radically-straightforward/caddy/-/caddy-2.0.0.tgz", + "integrity": "sha512-pNOo+j0D+WCN5Epo6tQYmOB7EtUbFIhyLyOOhzcDFoIdu8pDj+JDJl5gxhwh5ftp3ZEdK4lolJ+j17bFJV+x9g==", "funding": [ "https://patreon.com/leafac", "https://github.com/sponsors/leafac", @@ -1010,9 +1010,9 @@ } }, "node_modules/@radically-straightforward/production": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@radically-straightforward/production/-/production-1.0.13.tgz", - "integrity": "sha512-Ei36HBe8dO7kmPj0JyZybqmKiv2f3pVx/1ESLb1/P9QtJ0AxYT3zhXgpxTB4uzIMxpRqbprrbFlI/9GSm1D4dA==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@radically-straightforward/production/-/production-1.0.14.tgz", + "integrity": "sha512-v2XYIppcSbir6Oys5tX1ufnbWl22g0oyfhFptbkA/CtuEgy6Ee4/K/edrLP5kvAKVX3oe/CN9VoXfXqZXGz91g==", "funding": [ "https://patreon.com/leafac", "https://github.com/sponsors/leafac", @@ -1020,7 +1020,7 @@ "https://btc.com/34KJBgtaFYMtDqpSgMayw9qiKWg2GQXA9M" ], "dependencies": { - "@radically-straightforward/caddy": "^1.4.3", + "@radically-straightforward/caddy": "^2.0.0", "@radically-straightforward/html": "^1.0.0", "@radically-straightforward/node": "^3.1.6", "@radically-straightforward/server": "^1.0.5", diff --git a/package.json b/package.json index 69e437c..e44ec60 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "backup": "rsync -av --delete --progress root@kill-the-newsletter.com:kill-the-newsletter/data/ /Volumes/leafac--external-storage/Backups/kill-the-newsletter/" }, "dependencies": { - "@radically-straightforward/production": "^1.0.13", + "@radically-straightforward/production": "^1.0.14", "crypto-random-string": "^5.0.0", "mailparser": "^3.7.1", "smtp-server": "^3.13.4" diff --git a/source/index.mts b/source/index.mts index 899a1b3..a2afda9 100644 --- a/source/index.mts +++ b/source/index.mts @@ -875,12 +875,5 @@ if (application.commandLineArguments.values.type === undefined) { }, ), ); - caddy.start({ - address: application.configuration.hostname, - untrustedStaticFilesRoots: [], - dynamicServerPorts: application.configuration.ports, - email: application.configuration.systemAdministratorEmail, - hstsPreload: application.configuration.hstsPreload, - extraCaddyfile: application.configuration.extraCaddyfile, - }); + caddy.start(application.configuration); }