Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
8044cf9b
Commit
8044cf9b
authored
4 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add max concurrent connections edit box to web cfg dialog
parent
065ed30e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7304
passed
4 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
+2
-0
2 additions, 0 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
+218
-200
218 additions, 200 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
src/sbbs3/ctrl/WebCfgDlgUnit.h
+4
-2
4 additions, 2 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.h
with
224 additions
and
202 deletions
src/sbbs3/ctrl/WebCfgDlgUnit.cpp
+
2
−
0
View file @
8044cf9b
...
...
@@ -61,6 +61,7 @@ void __fastcall TWebCfgDlg::FormShow(TObject *Sender)
else
MaxClientsEdit
->
Text
=
AnsiString
((
int
)
MainForm
->
web_startup
.
max_clients
);
MaxInactivityEdit
->
Text
=
duration_to_str
(
MainForm
->
web_startup
.
max_inactivity
,
str
,
sizeof
str
);
MaxConConEdit
->
Text
=
AnsiString
((
int
)
MainForm
->
web_startup
.
max_concurrent_connections
);
PortEdit
->
Text
=
AnsiString
((
int
)
MainForm
->
web_startup
.
port
);
TlsPortEdit
->
Text
=
AnsiString
((
int
)
MainForm
->
web_startup
.
tls_port
);
AutoStartCheckBox
->
Checked
=
MainForm
->
WebAutoStart
;
...
...
@@ -115,6 +116,7 @@ void __fastcall TWebCfgDlg::OKBtnClick(TObject *Sender)
MainForm
->
web_startup
.
tls_interfaces
=
strListSplitCopy
(
NULL
,
TlsInterfaceEdit
->
Text
.
c_str
(),
","
);
MainForm
->
web_startup
.
max_clients
=
MaxClientsEdit
->
Text
.
ToIntDef
(
10
);
MainForm
->
web_startup
.
max_inactivity
=
parse_duration
(
MaxInactivityEdit
->
Text
.
c_str
());
MainForm
->
web_startup
.
max_concurrent_connections
=
MaxConConEdit
->
Text
.
ToIntDef
(
0
);
MainForm
->
web_startup
.
port
=
PortEdit
->
Text
.
ToIntDef
(
IPPORT_HTTP
);
MainForm
->
web_startup
.
tls_port
=
TlsPortEdit
->
Text
.
ToIntDef
(
IPPORT_HTTPS
);
MainForm
->
WebAutoStart
=
AutoStartCheckBox
->
Checked
;
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/WebCfgDlgUnit.dfm
+
218
−
200
View file @
8044cf9b
...
...
@@ -3,8 +3,8 @@ object WebCfgDlg: TWebCfgDlg
Top = 332
BorderStyle = bsDialog
Caption = 'Web Server Configuration'
ClientHeight = 2
45
ClientWidth =
286
ClientHeight = 2
83
ClientWidth =
330
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
...
...
@@ -16,65 +16,65 @@ object WebCfgDlg: TWebCfgDlg
ShowHint = True
OnShow = FormShow
DesignSize = (
286
2
45
)
330
2
83
)
PixelsPerInch = 96
TextHeight = 1
3
TextHeight = 1
5
object PageControl: TPageControl
Left = 3
Top = 3
Width =
278
Height =
199
ActivePage =
Sound
TabSheet
TabIndex =
5
Width =
321
Height =
230
ActivePage =
Http
TabSheet
TabIndex =
2
TabOrder = 0
object GeneralTabSheet: TTabSheet
Caption = 'General'
object MaxClientesLabel: TLabel
Left =
7
Top =
88
Width =
78
Height = 1
9
Left =
8
Top =
102
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Max Clients'
end
object MaxInactivityLabel: TLabel
Left =
7
Top = 1
14
Width =
78
Height = 1
9
Left =
8
Top = 1
32
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Max Inactivity'
end
object PortLabel: TLabel
Left =
7
Top =
6
2
Width =
78
Height = 1
9
Left =
8
Top =
7
2
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Listening Port'
end
object InterfaceLabel: TLabel
Left =
7
Top =
36
Width =
78
Height = 1
9
Left =
8
Top =
42
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Interfaces (IPs)'
end
object
AuthTypes
Label: TLabel
Left =
7
Top = 1
40
Width =
7
8
Height =
19
object
MaxConCon
Label: TLabel
Left =
8
Top = 1
59
Width = 8
9
Height =
22
AutoSize = False
Caption = '
Auth Types
'
Caption = '
Max Con-Conn
'
end
object AutoStartCheckBox: TCheckBox
Left =
7
Top = 1
0
Width = 1
17
Height = 2
0
Left =
8
Top = 1
2
Width = 1
35
Height = 2
3
Hint = 'Automatically start Web server'
Caption = 'Auto Startup'
ParentShowHint = False
...
...
@@ -82,20 +82,20 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 0
end
object MaxClientsEdit: TEdit
Left = 8
5
Top =
88
Width =
39
Height = 2
1
Left =
9
8
Top =
102
Width =
45
Height = 2
3
Hint = 'Maximum number of simultaneous clients (0=unlimited)'
ParentShowHint = False
ShowHint = True
TabOrder = 4
end
object MaxInactivityEdit: TEdit
Left = 8
5
Top = 1
14
Width =
39
Height = 2
1
Left =
9
8
Top = 1
32
Width =
45
Height = 2
3
Hint =
'Maximum number of seconds of inactivity before disconnect (defau' +
'lt=120)'
...
...
@@ -104,20 +104,20 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 5
end
object PortEdit: TEdit
Left = 8
5
Top =
6
2
Width =
39
Height = 2
1
Left =
9
8
Top =
7
2
Width =
45
Height = 2
3
Hint = 'TCP port to use for HTTP connections (default=80)'
ParentShowHint = False
ShowHint = True
TabOrder = 3
end
object NetworkInterfaceEdit: TEdit
Left = 8
5
Top =
36
Width = 1
56
Height = 2
1
Left =
9
8
Top =
42
Width = 1
80
Height = 2
3
Hint =
'Comma-separated list of IP addresses to accept incoming connecti' +
'ons'
...
...
@@ -126,22 +126,22 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 2
end
object HostnameCheckBox: TCheckBox
Left = 1
48
Top = 1
0
Width = 1
19
Height = 2
0
Left = 1
71
Top = 1
2
Width = 1
37
Height = 2
3
Hint = 'Automatically lookup client'#39's hostnames via DNS'
Caption = 'Hostname Lookup'
ParentShowHint = False
ShowHint = True
TabOrder = 1
end
object
AuthTypes
Edit: TEdit
Left = 8
5
Top = 1
40
Width =
156
Height = 2
1
Hint = '
Comma-separated list of default authentication types allow
ed'
object
MaxConCon
Edit: TEdit
Left =
9
8
Top = 1
59
Width =
45
Height = 2
3
Hint = '
Maximum Concurrent Connections from same IP (0=unlimit
ed
)
'
ParentShowHint = False
ShowHint = True
TabOrder = 6
...
...
@@ -151,26 +151,26 @@ object WebCfgDlg: TWebCfgDlg
Caption = 'TLS'
ImageIndex = 5
object TlsInterfaceLabel: TLabel
Left =
7
Top =
36
Width =
78
Height = 1
9
Left =
8
Top =
42
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Interfaces (IPs)'
end
object TlsPortLabel: TLabel
Left =
7
Top =
6
2
Width =
78
Height = 1
9
Left =
8
Top =
7
2
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Listening Port'
end
object TlsEnableCheckBox: TCheckBox
Left =
7
Top = 1
0
Width = 1
17
Height = 2
0
Left =
8
Top = 1
2
Width = 1
35
Height = 2
3
Hint = 'Enables HTTPS (HTTP over TLS/SSL)'
Caption = 'Enabled'
ParentShowHint = False
...
...
@@ -179,9 +179,9 @@ object WebCfgDlg: TWebCfgDlg
OnClick = TlsEnableCheckBoxClick
end
object TlsInterfaceEdit: TEdit
Left = 8
5
Top =
36
Width = 1
56
Left =
9
8
Top =
42
Width = 1
80
Height = 21
Hint =
'Comma-separated list of IP addresses to accept incoming connecti' +
...
...
@@ -191,9 +191,9 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 1
end
object TlsPortEdit: TEdit
Left = 8
5
Top =
6
2
Width =
39
Left =
9
8
Top =
7
2
Width =
45
Height = 21
Hint = 'TCP port to use for HTTPS connections (default=443)'
ParentShowHint = False
...
...
@@ -201,10 +201,10 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 2
end
object HSTSEnableCheckBox: TCheckBox
Left = 1
48
Top = 1
0
Width = 1
19
Height = 2
0
Left = 1
71
Top = 1
2
Width = 1
37
Height = 2
3
Hint = 'HTTP Strict Transport Security'
Caption = 'HSTS Support'
ParentShowHint = False
...
...
@@ -216,141 +216,159 @@ object WebCfgDlg: TWebCfgDlg
Caption = 'HTTP'
ImageIndex = 3
object HtmlDirLabel: TLabel
Left =
7
Top = 1
0
Width =
78
Height = 2
0
Left =
8
Top = 1
2
Width =
90
Height = 2
3
AutoSize = False
Caption = 'HTML Root'
end
object ErrorSubDirLabel: TLabel
Left =
7
Top =
36
Width =
78
Height = 2
0
Left =
8
Top =
42
Width =
90
Height = 2
3
AutoSize = False
Caption = 'Error SubDir'
end
object ServerSideJsExtLabel: TLabel
Left =
7
Top = 1
14
Width = 1
43
Height = 2
0
Left =
8
Top = 1
32
Width = 1
65
Height = 2
3
AutoSize = False
Caption = 'Server-Side JS File Extension'
end
object IndexLabel: TLabel
Left =
7
Top =
6
2
Width =
78
Height = 2
0
Left =
8
Top =
7
2
Width =
90
Height = 2
3
AutoSize = False
Caption = 'Index Files'
end
object
HtmlRootEdit: TEdit
Left = 8
5
Top = 10
Width =
156
object
AuthTypesLabel: TLabel
Left = 8
Top = 10
2
Width =
90
Height = 21
AutoSize = False
Caption = 'Auth Types'
end
object HtmlRootEdit: TEdit
Left = 98
Top = 12
Width = 180
Height = 23
Hint = 'Root directory for HTML files (off of CTRL directory)'
ParentShowHint = False
ShowHint = True
TabOrder = 0
end
object ErrorSubDirEdit: TEdit
Left = 8
5
Top =
36
Width = 1
56
Height = 2
1
Left =
9
8
Top =
42
Width = 1
80
Height = 2
3
Hint = 'Error sub-directory (off of HTML root)'
ParentShowHint = False
ShowHint = True
TabOrder = 1
end
object ServerSideJsExtEdit: TEdit
Left = 1
56
Top = 1
14
Width = 8
5
Height = 2
1
Left = 1
80
Top = 1
32
Width =
9
8
Height = 2
3
Hint =
'File extension that denotes server-side JavaScript files (e.g. "' +
'.ssjs")'
ParentShowHint = False
ShowHint = True
TabOrder =
3
TabOrder =
4
end
object VirtualHostsCheckBox: TCheckBox
Left =
7
Top = 1
40
Width = 8
5
Height = 1
9
Left =
8
Top = 1
62
Width =
9
8
Height =
2
1
Hint = 'Support virtual host directories off the HTML root directory'
Caption = 'Virtual Hosts'
ParentShowHint = False
ShowHint = True
TabOrder =
4
TabOrder =
5
end
object IndexFileEdit: TEdit
Left = 8
5
Top =
6
2
Width = 1
56
Height = 2
1
Left =
9
8
Top =
7
2
Width = 1
80
Height = 2
3
Hint =
'List of filenames that will be automatically sent to client (e.g' +
'. index.html)'
TabOrder = 2
end
object AuthTypesEdit: TEdit
Left = 98
Top = 102
Width = 180
Height = 23
Hint = 'Comma-separated list of default authentication types allowed'
ParentShowHint = False
ShowHint = True
TabOrder = 3
end
end
object CGITabSheet: TTabSheet
Caption = 'CGI'
ImageIndex = 4
object CGIDirLabel: TLabel
Left =
7
Top =
36
Width =
78
Height = 2
0
Left =
8
Top =
42
Width =
90
Height = 2
3
AutoSize = False
Caption = 'SubDirectory'
end
object CGIExtLabel: TLabel
Left =
7
Top =
6
2
Width =
78
Height = 2
0
Left =
8
Top =
7
2
Width =
90
Height = 2
3
AutoSize = False
Caption = 'File Extensions'
end
object CGIMaxInactivityLabel: TLabel
Left =
7
Top = 1
14
Width =
78
Height = 1
9
Left =
8
Top = 1
32
Width =
90
Height =
2
1
AutoSize = False
Caption = 'Max Inactivity'
end
object CGIContentLabel: TLabel
Left =
7
Top =
88
Width =
78
Height = 2
0
Left =
8
Top =
102
Width =
90
Height = 2
3
AutoSize = False
Caption = 'Content-Type'
end
object CGIDirEdit: TEdit
Left = 8
5
Top =
36
Width = 1
56
Height = 2
1
Left =
9
8
Top =
42
Width = 1
80
Height = 2
3
Hint = 'CGI sub-directory (off of HTML root)'
ParentShowHint = False
ShowHint = True
TabOrder = 1
end
object CGICheckBox: TCheckBox
Left =
7
Top = 1
0
Width = 2
28
Height = 2
0
Left =
8
Top = 1
2
Width = 2
63
Height = 2
3
Hint = 'CGI support is enabled when checked'
Caption = 'Enabled'
ParentShowHint = False
...
...
@@ -359,20 +377,20 @@ object WebCfgDlg: TWebCfgDlg
OnClick = CGICheckBoxClick
end
object CGIExtEdit: TEdit
Left = 8
5
Top =
6
2
Width = 1
56
Height = 2
1
Left =
9
8
Top =
7
2
Width = 1
80
Height = 2
3
Hint = 'File extensions that denote CGI executable files'
ParentShowHint = False
ShowHint = True
TabOrder = 2
end
object CGIMaxInactivityEdit: TEdit
Left = 8
5
Top = 1
14
Width =
39
Height = 2
1
Left =
9
8
Top = 1
32
Width =
45
Height = 2
3
Hint =
'Maximum number of seconds of inactivity before disconnect (defau' +
'lt=120)'
...
...
@@ -381,29 +399,29 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 4
end
object CGIContentEdit: TEdit
Left = 8
5
Top =
88
Width = 1
56
Height = 2
1
Left =
9
8
Top =
102
Width = 1
80
Height = 2
3
Hint = 'Default Content-Type for CGI output'
ParentShowHint = False
ShowHint = True
TabOrder = 3
end
object CGIEnvButton: TButton
Left =
7
Top = 1
43
Width = 1
17
Height = 2
0
Left =
8
Top = 1
65
Width = 1
35
Height = 2
3
Caption = 'Environment Vars'
TabOrder = 5
OnClick = CGIEnvButtonClick
end
object WebHandlersButton: TButton
Left = 1
3
0
Top = 1
43
Width = 1
11
Height = 2
0
Left = 1
5
0
Top = 1
65
Width = 1
28
Height = 2
3
Caption = 'Content Handlers'
TabOrder = 6
OnClick = WebHandlersButtonClick
...
...
@@ -413,18 +431,18 @@ object WebCfgDlg: TWebCfgDlg
Caption = 'Log'
ImageIndex = 1
object LogBaseLabel: TLabel
Left =
7
Top =
88
Width =
78
Height = 2
0
Left =
8
Top =
102
Width =
90
Height = 2
3
AutoSize = False
Caption = 'Base Filename'
end
object DebugTxCheckBox: TCheckBox
Left =
7
Top = 3
4
Width = 1
56
Height = 2
0
Left =
8
Top = 3
9
Width = 1
80
Height = 2
3
Hint = 'Log (debug) transmitted HTTP responses'
Caption = 'Transmitted Responses'
ParentShowHint = False
...
...
@@ -432,10 +450,10 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 1
end
object DebugRxCheckBox: TCheckBox
Left =
7
Top = 1
0
Width = 1
56
Height = 1
9
Left =
8
Top = 1
2
Width = 1
80
Height =
2
1
Hint = 'Log (debug) all received HTTP requests'
Caption = 'Received Requests'
ParentShowHint = False
...
...
@@ -443,10 +461,10 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 0
end
object AccessLogCheckBox: TCheckBox
Left =
7
Top =
59
Width = 1
56
Height =
19
Left =
8
Top =
68
Width = 1
80
Height =
22
Hint = 'Create HTTP access log files'
Caption = 'Create Access Log Files'
ParentShowHint = False
...
...
@@ -455,9 +473,9 @@ object WebCfgDlg: TWebCfgDlg
OnClick = AccessLogCheckBoxClick
end
object LogBaseNameEdit: TEdit
Left = 8
5
Top =
88
Width = 1
56
Left =
9
8
Top =
102
Width = 1
80
Height = 21
Hint = 'Base directory and filename for HTTP access log files'
ParentShowHint = False
...
...
@@ -469,10 +487,10 @@ object WebCfgDlg: TWebCfgDlg
Caption = 'Sound'
ImageIndex = 2
object ConfigureSoundButton: TButton
Left =
8
Top =
8
Width = 2
5
7
Height = 2
5
Left =
9
Top =
9
Width = 2
9
7
Height = 2
9
Caption = 'Configure Common Server Event Sounds'
TabOrder = 0
OnClick = ConfigureSoundButtonClick
...
...
@@ -480,10 +498,10 @@ object WebCfgDlg: TWebCfgDlg
end
end
object OKBtn: TButton
Left = 2
0
Top = 2
11
Width =
76
Height = 2
5
Left = 2
3
Top = 2
43
Width =
88
Height = 2
9
Anchors = [akLeft, akBottom]
Caption = 'OK'
Default = True
...
...
@@ -492,10 +510,10 @@ object WebCfgDlg: TWebCfgDlg
OnClick = OKBtnClick
end
object CancelBtn: TButton
Left = 10
4
Top = 2
11
Width = 7
5
Height = 2
5
Left = 1
2
0
Top = 2
43
Width =
8
7
Height = 2
9
Anchors = [akLeft, akBottom]
Cancel = True
Caption = 'Cancel'
...
...
@@ -503,10 +521,10 @@ object WebCfgDlg: TWebCfgDlg
TabOrder = 2
end
object ApplyBtn: TButton
Left = 18
9
Top = 2
11
Width =
76
Height = 2
5
Left =
2
18
Top = 2
43
Width =
88
Height = 2
9
Anchors = [akLeft, akBottom]
Cancel = True
Caption = 'Apply'
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/WebCfgDlgUnit.h
+
4
−
2
View file @
8044cf9b
...
...
@@ -97,10 +97,12 @@ __published: // IDE-managed Components
TLabel
*
TlsInterfaceLabel
;
TLabel
*
TlsPortLabel
;
TEdit
*
TlsPortEdit
;
TLabel
*
AuthTypesLabel
;
TEdit
*
AuthTypesEdit
;
TCheckBox
*
HSTSEnableCheckBox
;
TButton
*
ConfigureSoundButton
;
TLabel
*
AuthTypesLabel
;
TEdit
*
AuthTypesEdit
;
TLabel
*
MaxConConLabel
;
TEdit
*
MaxConConEdit
;
void
__fastcall
FormShow
(
TObject
*
Sender
);
void
__fastcall
OKBtnClick
(
TObject
*
Sender
);
void
__fastcall
AccessLogCheckBoxClick
(
TObject
*
Sender
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment