-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.conf.example
More file actions
67 lines (59 loc) · 1.61 KB
/
Copy pathproduction.conf.example
File metadata and controls
67 lines (59 loc) · 1.61 KB
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
# simple-httpd — production
# Public HTTPS static hosting. Install certs and document roots before starting.
#
# ./build/simple-httpd --config /etc/simple-httpd/simple-httpd.conf
#
# Typical layout:
# /var/www/html default site
# /var/www/app.example Host: app.example
# /etc/simple-httpd/tls/ fullchain.pem + privkey.pem
# /var/log/simple-httpd/ access.log + error.log
[server]
listen_address = 0.0.0.0
listen_port = 443
document_root = /var/www/html
index_files = index.html, index.htm
directory_listing = false
follow_symlinks = false
cache_max_age = 86400
server_name = simple-httpd
[performance]
worker_threads = 16
http2 = true
max_connections = 1024
max_connections_per_ip = 64
request_timeout_seconds = 30
keep_alive = true
keep_alive_timeout_seconds = 15
max_request_size = 65536
max_header_count = 100
compression = true
compression_min_length = 256
[ssl]
ssl_cert = /etc/simple-httpd/tls/fullchain.pem
ssl_key = /etc/simple-httpd/tls/privkey.pem
tls_min_version = 1.2
hsts = true
hsts_max_age = 31536000
[logging]
log_level = info
access_log = /var/log/simple-httpd/access.log
error_log = /var/log/simple-httpd/error.log
security_log = /var/log/simple-httpd/security.log
[ops]
health_path = /healthz
metrics_path = /metrics
rate_limit_enabled = true
rate_limit_requests = 120
rate_limit_window_seconds = 60
security_headers = true
allow_methods = GET, HEAD, OPTIONS
[vhost:www.example.com]
document_root = /var/www/html
[vhost:app.example]
document_root = /var/www/app.example
# Optional extras stay off in production unless you need them:
# ssi = false
# cgi_prefix =
# proxy =
# fastcgi =