forked from ferronweb/ferron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathferron-packages.kdl
More file actions
37 lines (32 loc) · 1.35 KB
/
ferron-packages.kdl
File metadata and controls
37 lines (32 loc) · 1.35 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
// See https://ferron.sh/docs/configuration-kdl for the configuration reference
// Global configuration.
//
// Here you can put configuration that applies to all hosts,
// and even to the web server itself.
globals {
// Log requests and errors into log files
log "/var/log/ferron/access.log"
error_log "/var/log/ferron/error.log"
}
// Host configuration.
//
// Here you can put configuration that applies to a specific host,
// by default a catch-all ":80" host that applies to all hostnames and port 80 (HTTP).
//
// Replace ":80" with your domain name (pointing to your server) to use HTTPS.
// If you don't specify the paths to the TLS certificate and private key manually,
// Ferron will obtain a TLS certificate automatically (via Let's Encrypt by default).
:80 {
// Serve static files
root "/var/www/ferron"
// Reverse proxy to a backend server
//proxy "http://localhost:3000/"
// Serve a PHP site with PHP-FPM (you would need to specify the webroot also used for serving static files)
// Replace "unix:///run/php/php-fpm.sock" with your Unix socket URL
//fcgi_php "unix:///run/php/php-fpm.sock"
// If using Unix socket with PHP-FPM,
// set the listener owner and group in the PHP pool configuration to the web server user (`ferron`, if you used installer for GNU/Linux)
// For example:
// listen.owner = ferron
// listen.group = ferron
}