blob: bd3cc933f05a77ffdc27b13f87662978e1777659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
'use strict'
// todo: clarify if ALPN is wanted & if this ID is correct
const ALPN_ID = 'gemini'
// https://gemini.circumlunar.space/docs/spec-spec.txt, 1.
// > When Gemini is served over TCP/IP, servers should listen on port 1965
// > (the first manned Gemini mission, Gemini 3, flew in March '65).
const DEFAULT_PORT = 1965
// https://gemini.circumlunar.space/docs/spec-spec.txt, 1.4.1
// > Servers MUST use TLS version 1.2 or higher and SHOULD use TLS version
// > 1.3 or higher.
const MIN_TLS_VERSION = 'TLSv1.2'
module.exports = {
ALPN_ID,
DEFAULT_PORT,
MIN_TLS_VERSION,
}
|