parent
fe7f88a8ff
commit
d88f6ec203
34
caddy
34
caddy
|
@ -9,38 +9,12 @@
|
||||||
# caddy_enable (bool): Set to "NO" by default.
|
# caddy_enable (bool): Set to "NO" by default.
|
||||||
# Set it to "YES" to enable caddy
|
# Set it to "YES" to enable caddy
|
||||||
#
|
#
|
||||||
# caddy_cert_email (str): Set to "" by default.
|
|
||||||
# Defines the SSL certificate issuer email. By providing an
|
|
||||||
# email address you automatically agree to letsencrypt.org's
|
|
||||||
# general terms and conditions
|
|
||||||
#
|
|
||||||
# caddy_bin_path (str): Set to "/usr/local/bin/caddy" by default.
|
# caddy_bin_path (str): Set to "/usr/local/bin/caddy" by default.
|
||||||
# Provides the path to the caddy server executable
|
# Provides the path to the caddy server executable
|
||||||
#
|
#
|
||||||
# caddy_cpu (str): Set to "99%" by default.
|
|
||||||
# Configures, how much CPU capacity caddy may gain
|
|
||||||
#
|
|
||||||
# caddy_config_path (str): Set to "/usr/local/www/Caddyfile" by default.
|
# caddy_config_path (str): Set to "/usr/local/www/Caddyfile" by default.
|
||||||
# Defines the path for the configuration file caddy will load on boot
|
# Defines the path for the configuration file caddy will load on boot
|
||||||
#
|
#
|
||||||
# caddy_user (str): Set to "root" by default.
|
|
||||||
# Defines the user that caddy will run on
|
|
||||||
#
|
|
||||||
# caddy_group (str): Set to "wheel" by default.
|
|
||||||
# Defines the group that caddy files will be attached to
|
|
||||||
#
|
|
||||||
# caddy_syslog_facility (str) Set to "local7" by default.
|
|
||||||
# Defines the syslog facility used to log output from the caddy process.
|
|
||||||
# This is NOT the web access log.
|
|
||||||
#
|
|
||||||
# caddy_syslog_level (str) Set to "notice" by default.
|
|
||||||
# Defines the syslog level used to log output from the caddy process.
|
|
||||||
# This is NOT the web access log.
|
|
||||||
#
|
|
||||||
# caddy_env (str) Set to "" by default.
|
|
||||||
# This allows environment variable to be set that may be required, for example when using "DNS Challenge" account credentials are required.
|
|
||||||
# e.g. (in your rc.conf) caddy_env="CLOUDFLARE_EMAIL=me@domain.com CLOUDFLARE_API_KEY=my_api_key"
|
|
||||||
#
|
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
@ -50,16 +24,8 @@ rcvar="${name}_enable"
|
||||||
load_rc_config ${name}
|
load_rc_config ${name}
|
||||||
|
|
||||||
: ${caddy_enable:="NO"}
|
: ${caddy_enable:="NO"}
|
||||||
: ${caddy_cert_email=""}
|
|
||||||
: ${caddy_bin_path="/usr/local/bin/caddy"}
|
: ${caddy_bin_path="/usr/local/bin/caddy"}
|
||||||
: ${caddy_cpu="99%"} # was a bug for me that caused a crash within jails
|
|
||||||
: ${caddy_config_path="/usr/local/www/Caddyfile"}
|
: ${caddy_config_path="/usr/local/www/Caddyfile"}
|
||||||
: ${caddy_syslog_facility="local7"}
|
|
||||||
: ${caddy_syslog_level="notice"}
|
|
||||||
: ${caddy_user="root"}
|
|
||||||
: ${caddy_group="wheel"}
|
|
||||||
: ${caddy_flags=""}
|
|
||||||
: ${caddy_options="-cpu ${caddy_cpu} -log stdout -conf ${caddy_config_path} -agree -email ${caddy_cert_email} ${caddy_flags}"}
|
|
||||||
|
|
||||||
if [ "$caddy_cert_email" = "" ]
|
if [ "$caddy_cert_email" = "" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue