We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc107b commit b5b6b01Copy full SHA for b5b6b01
src/index.ts
@@ -5,6 +5,16 @@ const PORT: string = process.env?.PORT || '8080'
5
const REGISTRY_HOST: string = process.env?.REGISTRY_HOST || 'registry.hub.docker.com'
6
const HTTPS: boolean = true
7
8
+const settingsFormatted: string = [
9
+ ['PORT', PORT],
10
+ ['REGISTRY_HOST', REGISTRY_HOST],
11
+ ['HTTPS', HTTPS],
12
+]
13
+ .map(([key, value]) => ` - ${key}=${value}`)
14
+ .reduce((a, b) => `${a}\n${b}`)
15
+
16
+console.log(`Configuration:\n${settingsFormatted}\n`)
17
18
const URL_REGEX = /^\/([\w\d]*)\/(?:([\s\S]+)\/(manifests|blobs)\/([\w\d:]+))?$/
19
20
const server = http.createServer((req, res) => {
0 commit comments