-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathserver.ini.RemoveMe
127 lines (104 loc) · 7.65 KB
/
server.ini.RemoveMe
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
; Configuration details are discussed in the document InstallingTheTatinServer.html
; Notes:
; * You may use "<INIFILE>" in any path in order to refer to the folder this log files lives in.
; * You may use "<TEMP>" in any path in order to refer to the temp folder of the current OS
home = '<INIFILE>/' ; This is a variable local to this INI file. Can be referenced with {home}
[CONFIG]
AppName = 'PlodderForTatin'
DisplayRequests = 0 ; 1 makes Rumba display every request in a ⎕ED windows. For debugging only of course.
LogHTTPToSession = 0 ; Naturally only useful in development
MaxNoOfThreads = 64
Port = 0 ; 0 becomes 443 in case of "Secure=1" and 80 otherwise; other values survive.
Secure = 1 ; 1 for https and 0 for http
Registry = '{home}../Registry/' ; Where does the data (the Registry) live?
Title = 'Tatin' ; Window title (Browser)
Caption = 'Tatin Registry' ; <h1> of HTML pages
TestFlag = 0 ; If 1 a couple of commands are available as REST requests
ReloadWS = 1 ; Reload the server WS in case a better version is detected on disk
HTDOCS = '{home}' ; Defines where the static files live (CSS, IMGs...)
DeletePackages = 0 ; 0=not allowed; 1=allowed; 2=only beta versions (major=0);
MinimumTatinVersion = '0.84' ; Minimum version of Tatin required on the client side (major or major.minor)
SpecialCommands = 0 ; Active only ever for a test server, never in production
GroupHomePages = 0 ; 1=Allow owners to save a group home page
MenuItemBefore = '' ; Prefix for some of the menu items in the main menu
MaintenancePath = '' ; Code to be loaded from in order to execute it once and then rename the file
EmailAddress = '[email protected]' ; The email address listed in the footer etc (NOT what's used for sending crash reports!)
Subject = 'Regarding https://your.server' ; Used in the subject line of ordinary email (NOT crash reports!)
EnforceEmailAddress = 1 ; 1=an email address must be defined (home page) for publishing packages if an API key is required
[HTMLBACKGROUND]
watermark = '' ; Becomes a watermark; to be used for test servers for example.
color: = '#FFFFF0' ; Set this to #FFFFF0 for a production server
[MSG] ; Use this to put a general msg (maintanence etc.) on _every_ page. Ignored when "Text" is empty. Might be nested.
Text = ''
CSS = 'font-size: large; font-weight: bold; border: 2px solid silver; padding: 5px 15px; margin: 15px 0; background-color: chocolate;'
[LOGGING]
; Application level (standard log file)
Folder = '{home}../ServerData/Logs/' ; Hosts the log files, if any
; The following entries make Rumba log stuff; useful for debugging but not for production.
Log = 1 ; Application-level logging should always be on so that we can provide usage data;
LogHTTP = 0
LogConga = 0
LogRumba = 0
; The following entry makes Tatin log to the Windows Event Log
WindowsEventLog = ¯1 ; ¯1 = Write Start/Stop/Error events to Windows Event Log in Runtime; 1: write; 0=never; ignored on non-Windows
[CERTIFICATES] ; The following settings are ignored in case CONFIG.Secure is 0
PublicCertFile = '{home}Assets/Runtime/Certificates/localhost-cert.pem'
PrivateKeyFile = '{home}Assets/Runtime/Certificates/localhost-key.pem'
CertType = 'DER'
[LICENSE]
names = ''
urls = ''
names ,= 'Unlicense'
urls ,= 'https://en.wikipedia.org/wiki/Unlicense'
names ,= 'CC0'
urls ,= 'https://en.wikipedia.org/wiki/Creative_Commons_license#Zero_/_public_domain'
names ,= '0BSD'
urls ,= 'https://en.wikipedia.org/wiki/BSD_licenses#0-clause_license_(%22BSD_Zero_Clause_License%22)'
names ,= 'EPL'
urls ,= 'https://en.wikipedia.org/wiki/Eclipse_Public_License'
names ,= 'MIT'
urls ,= 'https://en.wikipedia.org/wiki/MIT_License'
names ,= 'BSL'
urls ,= 'https://en.wikipedia.org/wiki/Boost_(C%2B%2B_libraries)#License'
names ,= 'ISC'
urls ,= 'https://en.wikipedia.org/wiki/ISC_license'
names ,= 'Apache'
urls ,= 'https://en.wikipedia.org/wiki/Apache_License'
names ,= 'BSD-2'
urls ,= 'https://en.wikipedia.org/wiki/BSD_licenses#2-clause_license_(%22Simplified_BSD_License%22_or_%22FreeBSD_License%22)'
names ,= 'BSD-3'
urls ,='https://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_(%22BSD_License_2.0%22,_%22Revised_BSD_License%22,_%22New_BSD_License%22,_or_%22Modified_BSD_License%22)'
[EVENTS] ; These are events send by Rumba to quit ⎕DQ or to broadcasts events ("Pause" and "Continue" when running as a Windows Service)
QuitEvent = 9876
PauseEvent = 9877
ContinueEvent = 9878
[RIDE]
active = 0
port = 4502
address = '*'
wait = 1 ; If 1 wait for the user in an endless loop
[TRAP]
Folder = '{home}../ServerData/Errors' ; Crash file, HTML report etc.
Policy = ¯1 ; ¯1=General error trapping in Runtime but not otherwise; 1=Trap and 0=don't trap. General means "above" Rumba
Rumba = 1 ; This has an effect only in development. Rumba traps all errors in Runtime in any case.
[APP] ; Change the following settings according to your needs:
Context = '#.Tatin.Server' ; Where in the workspace does the application live? (Ideally outside Plodder)
OnStart = 'OnStart' ; Once called when the server starts
;OnHeader = 'OnHeader' ; Especially useful for handling "Expect" with value "100-continue"
OnRequest = 'OnRequest' ; Called in the event of a request. Setting this is mandatory
OnCongaTimeout = 'OnHouseKeeping' ; Do any housekeeping here
[EMAIL] ; Tatin can send emails in case of crashes
Active = 1 ; On/off toggle for crash emails
Domain = '?' ; Used in the subject line (*)
SMTP_Server = '' ; For example: smtp.gmail.com'
Port = 465
From = '[email protected]' ; Sender of crash emails
To = '[email protected]' ; Receiver of crash emails
Password = '?' ; Must fit to "SendTo" which is also used as User-ID on the SMTP server
;Body = 'The Tatin server running at "<DOMAIN>" has crashed; see attached crash report'
Body = 'The Tatin server running at "<DOMAIN>" has crashed'
CC = ''
CC ,= '?' ; Receiver of crash emails
gatekeeper = ''
gatekeeper ,= '' ; Gets a notification when a package is published/deleted; empty=no notification
; *: "Domain" and "To" are displayed on each HTML page in the footer if both are not empty