-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.properties
164 lines (151 loc) · 5.33 KB
/
default.properties
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# DEFAULT CONFIG
# This file is not loaded by hydar(unless you tell it to)
# it serves as a reference for the settings and their default values
# To load custom properties just create a file changing the properties you want
# and include it as a command line argument("hydar.properties" is loaded by default)
#
# essential HYDAR settings
Hydar.PORT=8080
#host is comma separated, * = anything
#ex. *.hydar.xyz, hydar.xyz
#web root is relative to the config file
Hydar.HOST=*
Hydar.WEB_ROOT=.
Hydar.SERVLET_PATH=/
Hydar.CACHE_DIR_PATH=./HydarCompilerCache
Hydar.IMPORTANT_PATH=./bots/Amogus.jar
Hydar.HOMEPAGE=/index.html
Hydar.ssl.ENABLED=false
Hydar.ssl.REDIRECT_FROM=-1
Hydar.LOWERCASE_URLS=true
Hydar.AUTO_APPEND_URLS=.jsp,.html
#attempt to save session data to a file on shutdown
Hydar.PERSIST_SESSIONS=true
# resource limiting
Hydar.MAX_THREADS=256
Hydar.tc.ENABLED=false
Hydar.tc.MAX_BUFFER=10M
#example
#Hydar.tc.IN=1M/10s;1G/1h
Hydar.tc.PERMANENT_STATE=
Hydar.tc.IN=
Hydar.tc.OUT=
Hydar.tc.FAST_API=
Hydar.tc.SLOW_API=
#costs for some operations
Hydar.tc.fast.HTTP_REQUEST=50
Hydar.tc.fast.WS_MESSAGE=100
Hydar.tc.fast.H2_FRAME=5
Hydar.tc.slow.JSP_INVOKE=100
Hydar.tc.permanent.THREAD=100
Hydar.tc.permanent.H2_STREAM=10
# settings for file hosting
Hydar.REFRESH_TIMER=2s
# if false, will poll all files
Hydar.USE_WATCH_SERVICE=true
Hydar.TRY_UNSAFE_WATCH_SERVICE=true
Hydar.LASTMODIFIED_FROM_FILE=false
#regex: disallowed files(empty=disabled)
#.sql|.classpath|.project|node_modules|hydar.properties|HydarCompilerCache|.jks|.pem|.bat|.jar|src/|classes/|bots/
Hydar.FORBIDDEN_REGEX=WEB-INF|META-INF|hydar.properties|sessions.bin
#if true, these will 404 instead of 403
Hydar.FORBIDDEN_SILENT=true
Hydar.cache.ENABLED=true
Hydar.cache.MAX=1G
Hydar.cache.ON_REGEX=.*
Hydar.cache.OFF_REGEX=
Hydar.zip.ALGS=gzip
Hydar.zip.MIMES="text/html"; "text/css"; "text/plain"; "text/xml"; "text/x-component";"text/javascript"; "application/x-javascript"; "application/javascript"; "application/json";"application/manifest,json";"application/vnd.api,json";"application/xml";"application/xhtml,xml";"application/rss,xml";"application/atom,xml";"application/vnd.ms-fontobject";"application/x-font-ttf";"application/x-font-opentype";"application/x-font-truetype";"image/svg,xml";"image/x-icon";"image/vnd.microsoft.icon";"font/ttf";"font/eot";"font/otf";"font/opentype"
# settings for the HYDAR compiler
Hydar.CREATE_JAVA_FILES=false
Hydar.COMPILER_OPTIONS=
Hydar.PARALLEL_COMPILE=true
Hydar.COMPILE_IN_MEMORY=true
Hydar.LAZY_COMPILE=true
Hydar.LAZY_FILES=true
# settings for the TURN server
Hydar.turn.ENABLED=false
Hydar.turn.PORT=3478
# technical ssl settings
Hydar.ssl.TRUST_STORE_PATH=
Hydar.ssl.TRUST_STORE_PASSPHRASE=
Hydar.ssl.KEY_STORE_PATH=
Hydar.ssl.KEY_STORE_PASSPHRASE=
Hydar.ssl.CONTEXT_NAME=TLS
Hydar.ssl.ENABLED_PROTOCOLS=TLSv1.2,TLSv1.3
Hydar.ssl.HSTS=true
#HTTP settings
Hydar.SERVER_HEADER=Large_Hydar/2.0
Hydar.SEND_DATE=true
Hydar.SEND_ETAG=true
Hydar.RECEIVE_ETAGS=true
Hydar.RANGE_JSP=false
Hydar.RANGE_NO_JSP=true
Hydar.CACHE_CONTROL_JSP=no-cache
Hydar.CACHE_CONTROL_NO_JSP=public, must-revalidate
Hydar.http.LIFETIME=5s
#HTTP/2 settings
Hydar.h2.ENABLED=true
Hydar.h2.WINDOW_ATTEMPTS=3
Hydar.h2.LOCAL_WINDOW_TIMER=0ms
Hydar.h2.LOCAL_WINDOW_INC=10240000
Hydar.h2.REMOTE_WINDOW_TIMER=1000ms
Hydar.h2.HEADER_TABLE_SIZE=4096
Hydar.h2.MAX_CONCURRENT_STREAMS=256
Hydar.h2.MAX_FRAME_SIZE=16384
Hydar.h2.MAX_HEADER_LIST_SIZE=8192
Hydar.h2.LIFETIME=30s
#(DISABLED)MAP or LINKEDLIST - linkedlist uses less memory, map is faster
Hydar.h2.HPACK_TABLE_STRATEGY=MAP
#(DISABLED)MAP or ARRAY - array is usually faster
Hydar.h2.HPACK_TREE_STRATEGY=ARRAY
#Websocket settings
Hydar.ws.ENABLED=true
Hydar.ws.DEFLATE=true
Hydar.ws.LIFETIME=15s
@ContextParams
# format: key = value
# i.e.
# companyName = Hydar, Inc.
# then, in JSP: request.getServletContext().getInitParameter("companyName")
# -->"Hydar, Inc."
@Links
# regex on the left of => will be replaced with right string in url's(both trimmed)
# (without redirecting)
# examples
# ^/api-nk/leaderboard/anon/ => /test/Post.jsp?a=
#^/leaderboard/anon/ => /test/Post_cql.jsp?a=
@Resources
# Resources will be loaded using JNDI.
# Example:
# db.name=jdbc/hydar
# db.url=jdbc:mysql:asflkjg;fkmsc
# db.user=root
# db.password=hydar
# db.factory=com.mysql.cj.jdbc.MysqlDataSourceFactory
# db.type=com.mysql.cj.jdbc.MysqlConnectionPoolDataSource
# db.maxIdle=4
# db.explicitUrl=true
# db.maxTotal=4
# db.maxWaitMillis=5000
# can be accessed as:
# DataSource dataSource = (DataSource) new InitialContext().lookup("java:comp/env/jdbc/hydar");
#
# Most of the arguments are unnecessary; a HydarDataSource pool will be attempted
# to generate from a driver class as long as a url is provided.
#
# Full list of arguments:
# user, password, url, driver, initialSize, minIdle, maxIdle, maxTotal, maxWaitMillis,
# maxOpenPreparedStatements, poolPreparedStatements, defaultAutoCommit, defaultReadOnly, defaultSchema,
# clearStatementPoolOnReturn, defaultTransactionIsolation, factory, type, name, username
#
# Other properties will all be passed through to the driver or factory class.
# If you want to pass through a parameter with the same name
# as a builtin one, put it in quotes(ie db."factory").
# Closing connections is important.
@ErrorPages
# error code or "default"=string if in quotes, otherwise path
# (cannot be a jsp)
429="Rate limit"
503="Service unavailable"
default="A known error has occurred"