-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.go
84 lines (70 loc) · 1.57 KB
/
conf.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Froxy - HTTP over SSH proxy
//
// Copyright (C) 2019 and up by Alexander Pevzner ([email protected])
// See LICENSE for license terms and conditions
//
// Default configuration
package main
import (
"time"
)
const (
// ----- Program parameters -----
//
// Name of this program
//
PROGRAM_NAME = "Froxy"
//
// Name as shown under desktop icon
//
PROGRAM_ICON_NAME = PROGRAM_NAME + " Proxy"
// ----- TCP parameters -----
//
// TCP Keep-alive
//
TCP_KEEP_ALIVE = 20 * time.Second
//
// Enable TCP dual-stack (RFC 6555-compliant "Happy Eyeballs")
//
TCP_DUAL_STACK = true
// ----- HTTP transport parameters -----
//
// Max number of idle connections accross all hoshs.
//
HTTP_MAX_IDLE_CONNS = 100
//
// Max amount of time an idle connection will remain idle
// before closing
//
HTTP_IDLE_CONN_TIMEOUT = 90 * time.Second
//
// How long to wait for a server's first response headers after fully
// writing the request headers if the request has an
// "Expect: 100-continue" header.
//
HTTP_EXPECT_CONTINUE_TIMEOUT = 1 * time.Second
// ----- Built-in HTTP server configuration -----
//
// TCP port to run server on
//
HTTP_SERVER_PORT = 8888
// ----- SSH configuration -----
//
// Max connections per client session
//
SSH_MAX_CONN_PER_CLIENT = 10
// ----- Logging configuration -----
//
// Max size of log file
//
LOG_MAX_FILE_SIZE = 100 * 1024
//
// Max count of backup log files
//
LOG_MAX_BACKUP_FILES = 3
// ----- Cookie names used by Froxy -----
//
// Last visited Froxy configuration page
//
COOKIE_LAST_VISITED_PAGE = "froxy-lvp"
)