summaryrefslogtreecommitdiff
path: root/config.toml.sample
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-08-22 11:25:20 -0400
committerjake <jake@jakes-mail.top>2022-08-22 11:34:28 -0400
commite5fefd1500041620517b19f5c0493059f64a842b (patch)
tree0355bbd8df4a5a1021ad3e42f023b0a4c97eb0c4 /config.toml.sample
parentf8f8b537b3c6e3da4b8d4e4fd49440dfb1f0dcc0 (diff)
Add UNIX sockets
Comment out Smart::Comments
Diffstat (limited to 'config.toml.sample')
-rw-r--r--config.toml.sample12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.toml.sample b/config.toml.sample
index fea0fb5..cdbe8bf 100644
--- a/config.toml.sample
+++ b/config.toml.sample
@@ -3,11 +3,19 @@
# '::' and/or '0.0.0.0' is a 'bind' to all ('::' seems to work for IPv4 as well) - vhost with their own bind and the same ports will result in an error.
# 'Address already in use' or something similar.
# To bind to more than one address, make the value an array ie: ['192.168.0.24', '10.0.1.1']
+# bind can also be set to 'no' which means if vhosts are to be accessed via internet, the vhost will need their own bind option.
bind = '::'
# To bind to more than one port, make the value an array ie: [1965, 1966, 1967]
ports = 1965
# Can specify one or both of these.
tls = ['v1.2', 'v1.3']
+# UNIX socket, will make all vhost accessible via this socket unless they have their own 'unix' parameter.
+# Ports parameter will not matter in regards to unix socket.
+# unix can be set to 'no' where it will not make an unix socket, although vhost can have their own unix parameter.
+# The path of the unix socket needs to be readable/writable.
+# If the socket file exists when attempting to use it then this program will delete that file and make a new one.
+# By default, if unix does not exist, there will be no unix socket.
+unix = 'no'
## The following options are specific to default and will not work with vhost
# Working dir is used as a relative location if a 'pathy' option (like log_file) is not absolute.
@@ -64,8 +72,12 @@ assume_index = true
# A more realistic example
#['example.com']
+# bind can be set to a string or a list or 'no' which will not be accessible via IP address.
#bind = ['172.16.0.53', '10.43.14.32']
#ports = [10000,10001,10002]
+# example.com can only be accesed through this socket, other vhost
+# unix can be set to some path or to 'no' which will not include it in default's unix path if it is set.
+#unix = '/some/other/path/to/unix.sock'
#auto_cert = false
# Location to the cert/key pair is relative to cert_key_dir unless the path is absolute
# The existance of cert and key option will cause auto_cert to be ignored.