Feb 25, 2020
This commit is contained in:
		
							
								
								
									
										32
									
								
								jails/config/atm/afp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								jails/config/atm/afp.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,32 @@
 | 
			
		||||
;
 | 
			
		||||
; Netatalk 3.x configuration file
 | 
			
		||||
;
 | 
			
		||||
 | 
			
		||||
[Global]
 | 
			
		||||
; Global server settings
 | 
			
		||||
hostname = atm
 | 
			
		||||
hosts allow = 192.168.0.0/24,192.168.100.0/24
 | 
			
		||||
afp listen = 0.0.0.0
 | 
			
		||||
zeroconf = yes
 | 
			
		||||
 | 
			
		||||
; [Homes]
 | 
			
		||||
; basedir regex = /xxxx
 | 
			
		||||
 | 
			
		||||
; [My AFP Volume]
 | 
			
		||||
; path = /path/to/volume
 | 
			
		||||
 | 
			
		||||
[Sharad Time Machine Volume]
 | 
			
		||||
path = /mnt/sharad
 | 
			
		||||
time machine = yes
 | 
			
		||||
 | 
			
		||||
[Rachna Time Machine Volume]
 | 
			
		||||
path = /mnt/rachna
 | 
			
		||||
time machine = yes
 | 
			
		||||
 | 
			
		||||
[Nivi Time Machine Volume]
 | 
			
		||||
path = /mnt/nivi
 | 
			
		||||
time machine = yes
 | 
			
		||||
 | 
			
		||||
[Rishabh Time Machine Volume]
 | 
			
		||||
path = /mnt/rishabh
 | 
			
		||||
time machine = yes
 | 
			
		||||
							
								
								
									
										20
									
								
								jails/config/atm/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/atm/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FreeBSD: {
 | 
			
		||||
    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
 | 
			
		||||
    enabled: no
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp-freebsd-pkg: {
 | 
			
		||||
    url: "http://pkgp-freebsd-pkg.ahlawat.com/${ABI}/latest",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 10
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp121: {
 | 
			
		||||
    url: "http://pkgp.ahlawat.com/packages/pj121-default/",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    signature_type: "pubkey",
 | 
			
		||||
    pubkey: "/mnt/certs/poudriere.cert",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 100
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										0
									
								
								jails/config/auto/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/auto/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										46
									
								
								jails/config/book/cps
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										46
									
								
								jails/config/book/cps
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,46 @@
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
# https://diyit.org/license/
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# the two lines below are not just comments but required by rcorder; service -e
 | 
			
		||||
# PROVIDE: cpsserver
 | 
			
		||||
# REQUIRE: NETWORKING DAEMON
 | 
			
		||||
 | 
			
		||||
. /etc/rc.subr
 | 
			
		||||
 | 
			
		||||
: ${cpsserver_enable="NO"}
 | 
			
		||||
 
 | 
			
		||||
name=cpsserver
 | 
			
		||||
rcvar=${name}_enable
 | 
			
		||||
 | 
			
		||||
CPSSERVER="nohup /usr/local/bin/python3.6 /data/calibre-web/cps.py"
 | 
			
		||||
 | 
			
		||||
start_cmd="${name}_start"
 | 
			
		||||
stop_cmd="${name}_stop"
 | 
			
		||||
restart_cmd="${name}_restart"
 | 
			
		||||
 | 
			
		||||
cpsserver_start()
 | 
			
		||||
{
 | 
			
		||||
        $CPSSERVER -p /data/big/app.db -g /data/big/gdrive.db &
 | 
			
		||||
        $CPSSERVER -p /data/fiction/app.db -g /data/fiction/gdrive.db &
 | 
			
		||||
        $CPSSERVER -p /data/movie/app.db -g /data/movie/gdrive.db &
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cpsserver_stop()
 | 
			
		||||
{
 | 
			
		||||
        ps ax | grep -ie cps.py | grep -v grep | awk '{print $1}' | xargs kill -9
 | 
			
		||||
}
 | 
			
		||||
cpsserver_restart()
 | 
			
		||||
{
 | 
			
		||||
	cpsserver_stop
 | 
			
		||||
	cpsserver_start
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
load_rc_config ${name}
 | 
			
		||||
run_rc_command "$1"
 | 
			
		||||
							
								
								
									
										0
									
								
								jails/config/calibre/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/calibre/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										44
									
								
								jails/config/cam/camserver
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								jails/config/cam/camserver
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,44 @@
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
# https://diyit.org/license/
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# the two lines below are not just comments but required by rcorder; service -e
 | 
			
		||||
# PROVIDE: camserver
 | 
			
		||||
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
 | 
			
		||||
 | 
			
		||||
. /etc/rc.subr
 | 
			
		||||
 | 
			
		||||
: ${camserver_enable="NO"}
 | 
			
		||||
 
 | 
			
		||||
name=camserver
 | 
			
		||||
rcvar=camserver_enable
 | 
			
		||||
 
 | 
			
		||||
camserver="/usr/local/bin/meyectl"
 | 
			
		||||
 
 | 
			
		||||
start_cmd="camserver_start"
 | 
			
		||||
stop_cmd="camserver_stop"
 | 
			
		||||
restart_cmd="camserver_restart"
 | 
			
		||||
 
 | 
			
		||||
camserver_start()
 | 
			
		||||
{
 | 
			
		||||
        $camserver startserver -b -c /mnt/config/secret/motioneye/motioneye.conf
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
camserver_stop()
 | 
			
		||||
{
 | 
			
		||||
        $camserver stopserver
 | 
			
		||||
}
 | 
			
		||||
camserver_restart()
 | 
			
		||||
{
 | 
			
		||||
	camserver_stop
 | 
			
		||||
	camserver_start
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
load_rc_config ${name}
 | 
			
		||||
run_rc_command "$1"
 | 
			
		||||
							
								
								
									
										0
									
								
								jails/config/cert/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/cert/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								jails/config/ci/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/ci/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										11
									
								
								jails/config/cloud/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								jails/config/cloud/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
Listen 443
 | 
			
		||||
SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
 | 
			
		||||
SSLCipherSuite          ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
 | 
			
		||||
SSLHonorCipherOrder	on
 | 
			
		||||
SSLCompression		off
 | 
			
		||||
# SSLUseStapling	on
 | 
			
		||||
SSLSessionTickets	off
 | 
			
		||||
SSLOptions		+StrictRequire
 | 
			
		||||
SSLPassPhraseDialog	builtin
 | 
			
		||||
SSLSessionCacheTimeout	300
 | 
			
		||||
SSLSessionCache         shmcb:/usr/local/etc/apache24/ssl_scache(512000)
 | 
			
		||||
							
								
								
									
										1
									
								
								jails/config/cloud/crontab_add
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								jails/config/cloud/crontab_add
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
*/15 * * * * /usr/local/bin/php -f /usr/local/www/apache24/data/nextcloud/cron.php
 | 
			
		||||
							
								
								
									
										611
									
								
								jails/config/cloud/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										611
									
								
								jails/config/cloud/httpd.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,611 @@
 | 
			
		||||
#
 | 
			
		||||
# This is the main Apache HTTP server configuration file.  It contains the
 | 
			
		||||
# configuration directives that give the server its instructions.
 | 
			
		||||
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
 | 
			
		||||
# In particular, see 
 | 
			
		||||
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
 | 
			
		||||
# for a discussion of each configuration directive.
 | 
			
		||||
#
 | 
			
		||||
# Do NOT simply read the instructions in here without understanding
 | 
			
		||||
# what they do.  They're here only as hints or reminders.  If you are unsure
 | 
			
		||||
# consult the online docs. You have been warned.  
 | 
			
		||||
#
 | 
			
		||||
# Configuration and logfile names: If the filenames you specify for many
 | 
			
		||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
 | 
			
		||||
# server will use that explicit path.  If the filenames do *not* begin
 | 
			
		||||
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
 | 
			
		||||
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
 | 
			
		||||
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" 
 | 
			
		||||
# will be interpreted as '/logs/access_log'.
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerRoot: The top of the directory tree under which the server's
 | 
			
		||||
# configuration, error, and log files are kept.
 | 
			
		||||
#
 | 
			
		||||
# Do not add a slash at the end of the directory path.  If you point
 | 
			
		||||
# ServerRoot at a non-local disk, be sure to specify a local disk on the
 | 
			
		||||
# Mutex directive, if file-based mutexes are used.  If you wish to share the
 | 
			
		||||
# same ServerRoot for multiple httpd daemons, you will need to change at
 | 
			
		||||
# least PidFile.
 | 
			
		||||
#
 | 
			
		||||
ServerRoot "/usr/local"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Mutex: Allows you to set the mutex mechanism and mutex file directory
 | 
			
		||||
# for individual mutexes, or change the global defaults
 | 
			
		||||
#
 | 
			
		||||
# Uncomment and change the directory if mutexes are file-based and the default
 | 
			
		||||
# mutex file directory is not on a local disk or is not appropriate for some
 | 
			
		||||
# other reason.
 | 
			
		||||
#
 | 
			
		||||
# Mutex default:/var/run
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
 | 
			
		||||
# ports, instead of the default. See also the <VirtualHost>
 | 
			
		||||
# directive.
 | 
			
		||||
#
 | 
			
		||||
# Change this to Listen on specific IP addresses as shown below to 
 | 
			
		||||
# prevent Apache from glomming onto all bound IP addresses.
 | 
			
		||||
#
 | 
			
		||||
#Listen 12.34.56.78:80
 | 
			
		||||
Listen 80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Dynamic Shared Object (DSO) Support
 | 
			
		||||
#
 | 
			
		||||
# To be able to use the functionality of a module which was built as a DSO you
 | 
			
		||||
# have to place corresponding `LoadModule' lines at this location so the
 | 
			
		||||
# directives contained in it are actually available _before_ they are used.
 | 
			
		||||
# Statically compiled modules (those listed by `httpd -l') do not need
 | 
			
		||||
# to be loaded here.
 | 
			
		||||
#
 | 
			
		||||
# Example:
 | 
			
		||||
# LoadModule foo_module modules/mod_foo.so
 | 
			
		||||
#
 | 
			
		||||
LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 | 
			
		||||
#LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
 | 
			
		||||
#LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
 | 
			
		||||
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
 | 
			
		||||
#LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
 | 
			
		||||
#LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
 | 
			
		||||
#LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
 | 
			
		||||
#LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
 | 
			
		||||
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
 | 
			
		||||
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
 | 
			
		||||
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
 | 
			
		||||
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
 | 
			
		||||
#LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
 | 
			
		||||
#LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
 | 
			
		||||
#LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
 | 
			
		||||
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
 | 
			
		||||
#LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
 | 
			
		||||
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
 | 
			
		||||
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
 | 
			
		||||
#LoadModule auth_form_module libexec/apache24/mod_auth_form.so
 | 
			
		||||
#LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
 | 
			
		||||
#LoadModule allowmethods_module libexec/apache24/mod_allowmethods.so
 | 
			
		||||
#LoadModule file_cache_module libexec/apache24/mod_file_cache.so
 | 
			
		||||
#LoadModule cache_module libexec/apache24/mod_cache.so
 | 
			
		||||
#LoadModule cache_disk_module libexec/apache24/mod_cache_disk.so
 | 
			
		||||
#LoadModule cache_socache_module libexec/apache24/mod_cache_socache.so
 | 
			
		||||
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
 | 
			
		||||
#LoadModule socache_dbm_module libexec/apache24/mod_socache_dbm.so
 | 
			
		||||
#LoadModule socache_memcache_module libexec/apache24/mod_socache_memcache.so
 | 
			
		||||
#LoadModule watchdog_module libexec/apache24/mod_watchdog.so
 | 
			
		||||
#LoadModule macro_module libexec/apache24/mod_macro.so
 | 
			
		||||
#LoadModule dbd_module libexec/apache24/mod_dbd.so
 | 
			
		||||
#LoadModule dumpio_module libexec/apache24/mod_dumpio.so
 | 
			
		||||
#LoadModule buffer_module libexec/apache24/mod_buffer.so
 | 
			
		||||
#LoadModule data_module libexec/apache24/mod_data.so
 | 
			
		||||
#LoadModule ratelimit_module libexec/apache24/mod_ratelimit.so
 | 
			
		||||
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
 | 
			
		||||
#LoadModule ext_filter_module libexec/apache24/mod_ext_filter.so
 | 
			
		||||
#LoadModule request_module libexec/apache24/mod_request.so
 | 
			
		||||
#LoadModule include_module libexec/apache24/mod_include.so
 | 
			
		||||
LoadModule filter_module libexec/apache24/mod_filter.so
 | 
			
		||||
#LoadModule reflector_module libexec/apache24/mod_reflector.so
 | 
			
		||||
#LoadModule substitute_module libexec/apache24/mod_substitute.so
 | 
			
		||||
#LoadModule sed_module libexec/apache24/mod_sed.so
 | 
			
		||||
#LoadModule charset_lite_module libexec/apache24/mod_charset_lite.so
 | 
			
		||||
#LoadModule deflate_module libexec/apache24/mod_deflate.so
 | 
			
		||||
#LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so
 | 
			
		||||
#LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
 | 
			
		||||
LoadModule mime_module libexec/apache24/mod_mime.so
 | 
			
		||||
LoadModule log_config_module libexec/apache24/mod_log_config.so
 | 
			
		||||
#LoadModule log_debug_module libexec/apache24/mod_log_debug.so
 | 
			
		||||
#LoadModule log_forensic_module libexec/apache24/mod_log_forensic.so
 | 
			
		||||
#LoadModule logio_module libexec/apache24/mod_logio.so
 | 
			
		||||
LoadModule env_module libexec/apache24/mod_env.so
 | 
			
		||||
#LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
 | 
			
		||||
#LoadModule cern_meta_module libexec/apache24/mod_cern_meta.so
 | 
			
		||||
#LoadModule expires_module libexec/apache24/mod_expires.so
 | 
			
		||||
LoadModule headers_module libexec/apache24/mod_headers.so
 | 
			
		||||
#LoadModule usertrack_module libexec/apache24/mod_usertrack.so
 | 
			
		||||
#LoadModule unique_id_module libexec/apache24/mod_unique_id.so
 | 
			
		||||
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
 | 
			
		||||
LoadModule version_module libexec/apache24/mod_version.so
 | 
			
		||||
#LoadModule remoteip_module libexec/apache24/mod_remoteip.so
 | 
			
		||||
LoadModule proxy_module libexec/apache24/mod_proxy.so
 | 
			
		||||
#LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
 | 
			
		||||
#LoadModule proxy_ftp_module libexec/apache24/mod_proxy_ftp.so
 | 
			
		||||
#LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
 | 
			
		||||
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
 | 
			
		||||
#LoadModule proxy_scgi_module libexec/apache24/mod_proxy_scgi.so
 | 
			
		||||
#LoadModule proxy_uwsgi_module libexec/apache24/mod_proxy_uwsgi.so
 | 
			
		||||
#LoadModule proxy_fdpass_module libexec/apache24/mod_proxy_fdpass.so
 | 
			
		||||
#LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
 | 
			
		||||
#LoadModule proxy_ajp_module libexec/apache24/mod_proxy_ajp.so
 | 
			
		||||
#LoadModule proxy_balancer_module libexec/apache24/mod_proxy_balancer.so
 | 
			
		||||
#LoadModule proxy_express_module libexec/apache24/mod_proxy_express.so
 | 
			
		||||
#LoadModule proxy_hcheck_module libexec/apache24/mod_proxy_hcheck.so
 | 
			
		||||
#LoadModule session_module libexec/apache24/mod_session.so
 | 
			
		||||
#LoadModule session_cookie_module libexec/apache24/mod_session_cookie.so
 | 
			
		||||
#LoadModule session_crypto_module libexec/apache24/mod_session_crypto.so
 | 
			
		||||
#LoadModule session_dbd_module libexec/apache24/mod_session_dbd.so
 | 
			
		||||
#LoadModule slotmem_shm_module libexec/apache24/mod_slotmem_shm.so
 | 
			
		||||
#LoadModule slotmem_plain_module libexec/apache24/mod_slotmem_plain.so
 | 
			
		||||
LoadModule ssl_module libexec/apache24/mod_ssl.so
 | 
			
		||||
#LoadModule dialup_module libexec/apache24/mod_dialup.so
 | 
			
		||||
LoadModule http2_module libexec/apache24/mod_http2.so
 | 
			
		||||
LoadModule proxy_http2_module libexec/apache24/mod_proxy_http2.so
 | 
			
		||||
#LoadModule lbmethod_byrequests_module libexec/apache24/mod_lbmethod_byrequests.so
 | 
			
		||||
#LoadModule lbmethod_bytraffic_module libexec/apache24/mod_lbmethod_bytraffic.so
 | 
			
		||||
#LoadModule lbmethod_bybusyness_module libexec/apache24/mod_lbmethod_bybusyness.so
 | 
			
		||||
#LoadModule lbmethod_heartbeat_module libexec/apache24/mod_lbmethod_heartbeat.so
 | 
			
		||||
LoadModule unixd_module libexec/apache24/mod_unixd.so
 | 
			
		||||
#LoadModule heartbeat_module libexec/apache24/mod_heartbeat.so
 | 
			
		||||
#LoadModule heartmonitor_module libexec/apache24/mod_heartmonitor.so
 | 
			
		||||
#LoadModule dav_module libexec/apache24/mod_dav.so
 | 
			
		||||
LoadModule status_module libexec/apache24/mod_status.so
 | 
			
		||||
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
 | 
			
		||||
#LoadModule asis_module libexec/apache24/mod_asis.so
 | 
			
		||||
#LoadModule info_module libexec/apache24/mod_info.so
 | 
			
		||||
<IfModule !mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgid_module libexec/apache24/mod_cgid.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
<IfModule mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgi_module libexec/apache24/mod_cgi.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
#LoadModule dav_fs_module libexec/apache24/mod_dav_fs.so
 | 
			
		||||
#LoadModule dav_lock_module libexec/apache24/mod_dav_lock.so
 | 
			
		||||
#LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
 | 
			
		||||
#LoadModule negotiation_module libexec/apache24/mod_negotiation.so
 | 
			
		||||
LoadModule dir_module libexec/apache24/mod_dir.so
 | 
			
		||||
#LoadModule imagemap_module libexec/apache24/mod_imagemap.so
 | 
			
		||||
#LoadModule actions_module libexec/apache24/mod_actions.so
 | 
			
		||||
#LoadModule speling_module libexec/apache24/mod_speling.so
 | 
			
		||||
#LoadModule userdir_module libexec/apache24/mod_userdir.so
 | 
			
		||||
LoadModule alias_module libexec/apache24/mod_alias.so
 | 
			
		||||
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
 | 
			
		||||
#LoadModule php7_module        libexec/apache24/libphp7.so
 | 
			
		||||
 | 
			
		||||
# Third party modules
 | 
			
		||||
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
 | 
			
		||||
 
 | 
			
		||||
<IfModule unixd_module>
 | 
			
		||||
#
 | 
			
		||||
# If you wish httpd to run as a different user or group, you must run
 | 
			
		||||
# httpd as root initially and it will switch.  
 | 
			
		||||
#
 | 
			
		||||
# User/Group: The name (or #number) of the user/group to run httpd as.
 | 
			
		||||
# It is usually good practice to create a dedicated user and group for
 | 
			
		||||
# running httpd, as with most system services.
 | 
			
		||||
#
 | 
			
		||||
User www
 | 
			
		||||
Group www
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# 'Main' server configuration
 | 
			
		||||
#
 | 
			
		||||
# The directives in this section set up the values used by the 'main'
 | 
			
		||||
# server, which responds to any requests that aren't handled by a
 | 
			
		||||
# <VirtualHost> definition.  These values also provide defaults for
 | 
			
		||||
# any <VirtualHost> containers you may define later in the file.
 | 
			
		||||
#
 | 
			
		||||
# All of these directives may appear inside <VirtualHost> containers,
 | 
			
		||||
# in which case these default settings will be overridden for the
 | 
			
		||||
# virtual host being defined.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerAdmin: Your address, where problems with the server should be
 | 
			
		||||
# e-mailed.  This address appears on some server-generated pages, such
 | 
			
		||||
# as error documents.  e.g. admin@your-domain.com
 | 
			
		||||
#
 | 
			
		||||
ServerAdmin sharad@ahlawat.com
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerName gives the name and port that the server uses to identify itself.
 | 
			
		||||
# This can often be determined automatically, but we recommend you specify
 | 
			
		||||
# it explicitly to prevent problems during startup.
 | 
			
		||||
#
 | 
			
		||||
# If your host doesn't have a registered DNS name, enter its IP address here.
 | 
			
		||||
#
 | 
			
		||||
#ServerName www.example.com:80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Deny access to the entirety of your server's filesystem. You must
 | 
			
		||||
# explicitly permit access to web content directories in other 
 | 
			
		||||
# <Directory> blocks below.
 | 
			
		||||
#
 | 
			
		||||
<Directory />
 | 
			
		||||
    AllowOverride none
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Note that from this point forward you must specifically allow
 | 
			
		||||
# particular features to be enabled - so if something's not working as
 | 
			
		||||
# you might expect, make sure that you have specifically enabled it
 | 
			
		||||
# below.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DocumentRoot: The directory out of which you will serve your
 | 
			
		||||
# documents. By default, all requests are taken from this directory, but
 | 
			
		||||
# symbolic links and aliases may be used to point to other locations.
 | 
			
		||||
#
 | 
			
		||||
DocumentRoot "/usr/local/www/apache24/data"
 | 
			
		||||
<Directory "/usr/local/www/apache24/data">
 | 
			
		||||
 | 
			
		||||
  RewriteEngine on
 | 
			
		||||
  RewriteRule ^/\.well-known/ - [L]
 | 
			
		||||
  RewriteRule (.*) https://cloud.ahlawat.com [R,L]
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Possible values for the Options directive are "None", "All",
 | 
			
		||||
    # or any combination of:
 | 
			
		||||
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
 | 
			
		||||
    #
 | 
			
		||||
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
 | 
			
		||||
    # doesn't give it to you.
 | 
			
		||||
    #
 | 
			
		||||
    # The Options directive is both complicated and important.  Please see
 | 
			
		||||
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
 | 
			
		||||
    # for more information.
 | 
			
		||||
    #
 | 
			
		||||
    Options Indexes FollowSymLinks
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    # It can be "All", "None", or any combination of the keywords:
 | 
			
		||||
    #   AllowOverride FileInfo AuthConfig Limit
 | 
			
		||||
    #
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Controls who can get stuff from this server.
 | 
			
		||||
    #
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DirectoryIndex: sets the file that Apache will serve if a directory
 | 
			
		||||
# is requested.
 | 
			
		||||
#
 | 
			
		||||
<IfModule dir_module>
 | 
			
		||||
    DirectoryIndex index.php index.html
 | 
			
		||||
    <FilesMatch "\.php$">
 | 
			
		||||
        SetHandler application/x-httpd-php
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
    <FilesMatch "\.phps$">
 | 
			
		||||
        SetHandler application/x-httpd-php-source
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The following lines prevent .htaccess and .htpasswd files from being 
 | 
			
		||||
# viewed by Web clients. 
 | 
			
		||||
#
 | 
			
		||||
<Files ".ht*">
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Files>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ErrorLog: The location of the error log file.
 | 
			
		||||
# If you do not specify an ErrorLog directive within a <VirtualHost>
 | 
			
		||||
# container, error messages relating to that virtual host will be
 | 
			
		||||
# logged here.  If you *do* define an error logfile for a <VirtualHost>
 | 
			
		||||
# container, that host's errors will be logged there and not here.
 | 
			
		||||
#
 | 
			
		||||
ErrorLog "/var/log/httpd-error.log"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# LogLevel: Control the number of messages logged to the error_log.
 | 
			
		||||
# Possible values include: debug, info, notice, warn, error, crit,
 | 
			
		||||
# alert, emerg.
 | 
			
		||||
#
 | 
			
		||||
LogLevel warn
 | 
			
		||||
 | 
			
		||||
<IfModule log_config_module>
 | 
			
		||||
    #
 | 
			
		||||
    # The following directives define some format nicknames for use with
 | 
			
		||||
    # a CustomLog directive (see below).
 | 
			
		||||
    #
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
 | 
			
		||||
 | 
			
		||||
    <IfModule logio_module>
 | 
			
		||||
      # You need to enable mod_logio.c to use %I and %O
 | 
			
		||||
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
 | 
			
		||||
    </IfModule>
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # The location and format of the access logfile (Common Logfile Format).
 | 
			
		||||
    # If you do not define any access logfiles within a <VirtualHost>
 | 
			
		||||
    # container, they will be logged here.  Contrariwise, if you *do*
 | 
			
		||||
    # define per-<VirtualHost> access logfiles, transactions will be
 | 
			
		||||
    # logged therein and *not* in this file.
 | 
			
		||||
    #
 | 
			
		||||
    CustomLog "/var/log/httpd-access.log" common
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # If you prefer a logfile with access, agent, and referer information
 | 
			
		||||
    # (Combined Logfile Format) you can use the following directive.
 | 
			
		||||
    #
 | 
			
		||||
    #CustomLog "/var/log/httpd-access.log" combined
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule alias_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Redirect: Allows you to tell clients about documents that used to 
 | 
			
		||||
    # exist in your server's namespace, but do not anymore. The client 
 | 
			
		||||
    # will make a new request for the document at its new location.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Redirect permanent /foo http://www.example.com/bar
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Alias: Maps web paths into filesystem paths and is used to
 | 
			
		||||
    # access content that does not live under the DocumentRoot.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Alias /webpath /full/filesystem/path
 | 
			
		||||
    #
 | 
			
		||||
    # If you include a trailing / on /webpath then the server will
 | 
			
		||||
    # require it to be present in the URL.  You will also likely
 | 
			
		||||
    # need to provide a <Directory> section to allow access to
 | 
			
		||||
    # the filesystem path.
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptAlias: This controls which directories contain server scripts. 
 | 
			
		||||
    # ScriptAliases are essentially the same as Aliases, except that
 | 
			
		||||
    # documents in the target directory are treated as applications and
 | 
			
		||||
    # run by the server when requested rather than as documents sent to the
 | 
			
		||||
    # client.  The same rules about trailing "/" apply to ScriptAlias
 | 
			
		||||
    # directives as to Alias.
 | 
			
		||||
    #
 | 
			
		||||
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule cgid_module>
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptSock: On threaded servers, designate the path to the UNIX
 | 
			
		||||
    # socket used to communicate with the CGI daemon of mod_cgid.
 | 
			
		||||
    #
 | 
			
		||||
    #Scriptsock cgisock
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliased
 | 
			
		||||
# CGI directory exists, if you have that configured.
 | 
			
		||||
#
 | 
			
		||||
<Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
    Options None
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
<IfModule headers_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
 | 
			
		||||
    # backend servers which have lingering "httpoxy" defects.
 | 
			
		||||
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
 | 
			
		||||
    #
 | 
			
		||||
    RequestHeader unset Proxy early
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule mime_module>
 | 
			
		||||
    #
 | 
			
		||||
    # TypesConfig points to the file containing the list of mappings from
 | 
			
		||||
    # filename extension to MIME-type.
 | 
			
		||||
    #
 | 
			
		||||
    TypesConfig etc/apache24/mime.types
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddType allows you to add to or override the MIME configuration
 | 
			
		||||
    # file specified in TypesConfig for specific file types.
 | 
			
		||||
    #
 | 
			
		||||
    #AddType application/x-gzip .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # AddEncoding allows you to have certain browsers uncompress
 | 
			
		||||
    # information on the fly. Note: Not all browsers support this.
 | 
			
		||||
    #
 | 
			
		||||
    #AddEncoding x-compress .Z
 | 
			
		||||
    #AddEncoding x-gzip .gz .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # If the AddEncoding directives above are commented-out, then you
 | 
			
		||||
    # probably should define those extensions to indicate media types:
 | 
			
		||||
    #
 | 
			
		||||
    AddType application/x-compress .Z
 | 
			
		||||
    AddType application/x-gzip .gz .tgz
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddHandler allows you to map certain file extensions to "handlers":
 | 
			
		||||
    # actions unrelated to filetype. These can be either built into the server
 | 
			
		||||
    # or added with the Action directive (see below)
 | 
			
		||||
    #
 | 
			
		||||
    # To use CGI scripts outside of ScriptAliased directories:
 | 
			
		||||
    # (You will also need to add "ExecCGI" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddHandler cgi-script .cgi
 | 
			
		||||
 | 
			
		||||
    # For type maps (negotiated resources):
 | 
			
		||||
    #AddHandler type-map var
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Filters allow you to process content before it is sent to the client.
 | 
			
		||||
    #
 | 
			
		||||
    # To parse .shtml files for server-side includes (SSI):
 | 
			
		||||
    # (You will also need to add "Includes" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddType text/html .shtml
 | 
			
		||||
    #AddOutputFilter INCLUDES .shtml
 | 
			
		||||
 | 
			
		||||
    AddType application/x-httpd-php .php
 | 
			
		||||
    AddType application/x-httpd-php-source .phps
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The mod_mime_magic module allows the server to use various hints from the
 | 
			
		||||
# contents of the file itself to determine its type.  The MIMEMagicFile
 | 
			
		||||
# directive tells the module where the hint definitions are located.
 | 
			
		||||
#
 | 
			
		||||
#MIMEMagicFile etc/apache24/magic
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Customizable error responses come in three flavors:
 | 
			
		||||
# 1) plain text 2) local redirects 3) external redirects
 | 
			
		||||
#
 | 
			
		||||
# Some examples:
 | 
			
		||||
#ErrorDocument 500 "The server made a boo boo."
 | 
			
		||||
#ErrorDocument 404 /missing.html
 | 
			
		||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 | 
			
		||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# MaxRanges: Maximum number of Ranges in a request before
 | 
			
		||||
# returning the entire resource, or one of the special
 | 
			
		||||
# values 'default', 'none' or 'unlimited'.
 | 
			
		||||
# Default setting is to accept 200 Ranges.
 | 
			
		||||
#MaxRanges unlimited
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# EnableMMAP and EnableSendfile: On systems that support it, 
 | 
			
		||||
# memory-mapping or the sendfile syscall may be used to deliver
 | 
			
		||||
# files.  This usually improves server performance, but must
 | 
			
		||||
# be turned off when serving from networked-mounted 
 | 
			
		||||
# filesystems or if support for these functions is otherwise
 | 
			
		||||
# broken on your system.
 | 
			
		||||
# Defaults: EnableMMAP On, EnableSendfile Off
 | 
			
		||||
#
 | 
			
		||||
#EnableMMAP off
 | 
			
		||||
#EnableSendfile on
 | 
			
		||||
 | 
			
		||||
# Supplemental configuration
 | 
			
		||||
#
 | 
			
		||||
# The configuration files in the etc/apache24/extra/ directory can be 
 | 
			
		||||
# included to add extra features or to modify the default configuration of 
 | 
			
		||||
# the server, or you may simply copy their contents here and change as 
 | 
			
		||||
# necessary.
 | 
			
		||||
 | 
			
		||||
# Server-pool management (MPM specific)
 | 
			
		||||
#Include etc/apache24/extra/httpd-mpm.conf
 | 
			
		||||
 | 
			
		||||
# Multi-language error messages
 | 
			
		||||
#Include etc/apache24/extra/httpd-multilang-errordoc.conf
 | 
			
		||||
 | 
			
		||||
# Fancy directory listings
 | 
			
		||||
#Include etc/apache24/extra/httpd-autoindex.conf
 | 
			
		||||
 | 
			
		||||
# Language settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-languages.conf
 | 
			
		||||
 | 
			
		||||
# User home directories
 | 
			
		||||
#Include etc/apache24/extra/httpd-userdir.conf
 | 
			
		||||
 | 
			
		||||
# Real-time info on requests and configuration
 | 
			
		||||
#Include etc/apache24/extra/httpd-info.conf
 | 
			
		||||
 | 
			
		||||
# Virtual hosts
 | 
			
		||||
#Include etc/apache24/extra/httpd-vhosts.conf
 | 
			
		||||
 | 
			
		||||
# Local access to the Apache HTTP Server Manual
 | 
			
		||||
#Include etc/apache24/extra/httpd-manual.conf
 | 
			
		||||
 | 
			
		||||
# Distributed authoring and versioning (WebDAV)
 | 
			
		||||
#Include etc/apache24/extra/httpd-dav.conf
 | 
			
		||||
 | 
			
		||||
# Various default settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-default.conf
 | 
			
		||||
 | 
			
		||||
# Configure mod_proxy_html to understand HTML4/XHTML1
 | 
			
		||||
<IfModule proxy_html_module>
 | 
			
		||||
Include etc/apache24/extra/proxy-html.conf
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# Secure (SSL/TLS) connections
 | 
			
		||||
#Include etc/apache24/extra/httpd-ssl.conf
 | 
			
		||||
#
 | 
			
		||||
# Note: The following must must be present to support
 | 
			
		||||
#       starting without SSL on platforms with no /dev/random equivalent
 | 
			
		||||
#       but a statically compiled-in mod_ssl.
 | 
			
		||||
#
 | 
			
		||||
<IfModule ssl_module>
 | 
			
		||||
SSLRandomSeed startup builtin
 | 
			
		||||
SSLRandomSeed connect builtin
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
Include etc/apache24/Includes/*.conf
 | 
			
		||||
 | 
			
		||||
<VirtualHost *:443>
 | 
			
		||||
    ServerName cloud.ahlawat.com
 | 
			
		||||
    ServerAlias *.ahlawat.com
 | 
			
		||||
    ServerAlias cloud
 | 
			
		||||
 | 
			
		||||
    Protocols h2 h2c http/1.1
 | 
			
		||||
 | 
			
		||||
    DocumentRoot "/usr/local/www/apache24/data/nextcloud/"
 | 
			
		||||
    DirectoryIndex /index.php index.php
 | 
			
		||||
 | 
			
		||||
    SSLEngine on
 | 
			
		||||
    SSLCertificateFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLCertificateKeyFile "/mnt/certs/privkey.pem"
 | 
			
		||||
    #SSLCertificateChainFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
 | 
			
		||||
    SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
 | 
			
		||||
    SSLHonorCipherOrder on
 | 
			
		||||
    SSLCompression off
 | 
			
		||||
    SSLSessionTickets off
 | 
			
		||||
    SSLOptions +StrictRequire
 | 
			
		||||
 | 
			
		||||
  RewriteEngine On
 | 
			
		||||
  RewriteCond %{HTTP:Authorization} ^(.*)
 | 
			
		||||
  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
 | 
			
		||||
 | 
			
		||||
  <FilesMatch "\.(cgi|shtml|phtml|php)$">
 | 
			
		||||
    SetHandler "proxy:fcgi://localhost:9000"
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </FilesMatch>
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
 | 
			
		||||
  CustomLog "/var/log/ssl-request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/data/nextcloud/">
 | 
			
		||||
    Options +FollowSymLinks
 | 
			
		||||
    AllowOverride All
 | 
			
		||||
 | 
			
		||||
    <IfModule mod_dav.c>
 | 
			
		||||
      Dav off
 | 
			
		||||
    </IfModule>
 | 
			
		||||
 | 
			
		||||
    SetEnv HOME /usr/local/www/apache24/data/nextcloud
 | 
			
		||||
    SetEnv HTTP_HOME /usr/local/www/apache24/data/nextcloud
 | 
			
		||||
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  ErrorLog "/var/log/ssl-error.log"
 | 
			
		||||
  CustomLog "/var/log/ssl-access_log" combined
 | 
			
		||||
 | 
			
		||||
  <IfModule mod_headers.c>
 | 
			
		||||
    Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
 | 
			
		||||
  </IfModule>
 | 
			
		||||
 | 
			
		||||
</VirtualHost>
 | 
			
		||||
							
								
								
									
										1919
									
								
								jails/config/cloud/php.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1919
									
								
								jails/config/cloud/php.ini
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1317
									
								
								jails/config/cloud/redis.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1317
									
								
								jails/config/cloud/redis.conf
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										423
									
								
								jails/config/cloud/www.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										423
									
								
								jails/config/cloud/www.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,423 @@
 | 
			
		||||
; Start a new pool named 'www'.
 | 
			
		||||
; the variable $pool can be used in any directive and will be replaced by the
 | 
			
		||||
; pool name ('www' here)
 | 
			
		||||
[www]
 | 
			
		||||
 | 
			
		||||
; Per pool prefix
 | 
			
		||||
; It only applies on the following directives:
 | 
			
		||||
; - 'access.log'
 | 
			
		||||
; - 'slowlog'
 | 
			
		||||
; - 'listen' (unixsocket)
 | 
			
		||||
; - 'chroot'
 | 
			
		||||
; - 'chdir'
 | 
			
		||||
; - 'php_values'
 | 
			
		||||
; - 'php_admin_values'
 | 
			
		||||
; When not set, the global prefix (or /usr/local) applies instead.
 | 
			
		||||
; Note: This directive can also be relative to the global prefix.
 | 
			
		||||
; Default Value: none
 | 
			
		||||
;prefix = /path/to/pools/$pool
 | 
			
		||||
 | 
			
		||||
; Unix user/group of processes
 | 
			
		||||
; Note: The user is mandatory. If the group is not set, the default user's group
 | 
			
		||||
;       will be used.
 | 
			
		||||
user = www
 | 
			
		||||
group = www
 | 
			
		||||
 | 
			
		||||
; The address on which to accept FastCGI requests.
 | 
			
		||||
; Valid syntaxes are:
 | 
			
		||||
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
 | 
			
		||||
;                            a specific port;
 | 
			
		||||
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
 | 
			
		||||
;                            a specific port;
 | 
			
		||||
;   'port'                 - to listen on a TCP socket to all addresses
 | 
			
		||||
;                            (IPv6 and IPv4-mapped) on a specific port;
 | 
			
		||||
;   '/path/to/unix/socket' - to listen on a unix socket.
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
listen = 127.0.0.1:9000
 | 
			
		||||
 | 
			
		||||
; Set listen(2) backlog.
 | 
			
		||||
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
 | 
			
		||||
;listen.backlog = 511
 | 
			
		||||
 | 
			
		||||
; Set permissions for unix socket, if one is used. In Linux, read/write
 | 
			
		||||
; permissions must be set in order to allow connections from a web server. Many
 | 
			
		||||
; BSD-derived systems allow connections regardless of permissions.
 | 
			
		||||
; Default Values: user and group are set as the running user
 | 
			
		||||
;                 mode is set to 0660
 | 
			
		||||
;listen.owner = www
 | 
			
		||||
;listen.group = www
 | 
			
		||||
;listen.mode = 0660
 | 
			
		||||
; When POSIX Access Control Lists are supported you can set them using
 | 
			
		||||
; these options, value is a comma separated list of user/group names.
 | 
			
		||||
; When set, listen.owner and listen.group are ignored
 | 
			
		||||
;listen.acl_users =
 | 
			
		||||
;listen.acl_groups =
 | 
			
		||||
 | 
			
		||||
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
 | 
			
		||||
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
 | 
			
		||||
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
 | 
			
		||||
; must be separated by a comma. If this value is left blank, connections will be
 | 
			
		||||
; accepted from any ip address.
 | 
			
		||||
; Default Value: any
 | 
			
		||||
;listen.allowed_clients = 127.0.0.1
 | 
			
		||||
 | 
			
		||||
; Specify the nice(2) priority to apply to the pool processes (only if set)
 | 
			
		||||
; The value can vary from -19 (highest priority) to 20 (lower priority)
 | 
			
		||||
; Note: - It will only work if the FPM master process is launched as root
 | 
			
		||||
;       - The pool processes will inherit the master process priority
 | 
			
		||||
;         unless it specified otherwise
 | 
			
		||||
; Default Value: no set
 | 
			
		||||
; process.priority = -19
 | 
			
		||||
 | 
			
		||||
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
 | 
			
		||||
; or group is differrent than the master process user. It allows to create process
 | 
			
		||||
; core dump and ptrace the process for the pool user.
 | 
			
		||||
; Default Value: no
 | 
			
		||||
; process.dumpable = yes
 | 
			
		||||
 | 
			
		||||
; Choose how the process manager will control the number of child processes.
 | 
			
		||||
; Possible Values:
 | 
			
		||||
;   static  - a fixed number (pm.max_children) of child processes;
 | 
			
		||||
;   dynamic - the number of child processes are set dynamically based on the
 | 
			
		||||
;             following directives. With this process management, there will be
 | 
			
		||||
;             always at least 1 children.
 | 
			
		||||
;             pm.max_children      - the maximum number of children that can
 | 
			
		||||
;                                    be alive at the same time.
 | 
			
		||||
;             pm.start_servers     - the number of children created on startup.
 | 
			
		||||
;             pm.min_spare_servers - the minimum number of children in 'idle'
 | 
			
		||||
;                                    state (waiting to process). If the number
 | 
			
		||||
;                                    of 'idle' processes is less than this
 | 
			
		||||
;                                    number then some children will be created.
 | 
			
		||||
;             pm.max_spare_servers - the maximum number of children in 'idle'
 | 
			
		||||
;                                    state (waiting to process). If the number
 | 
			
		||||
;                                    of 'idle' processes is greater than this
 | 
			
		||||
;                                    number then some children will be killed.
 | 
			
		||||
;  ondemand - no children are created at startup. Children will be forked when
 | 
			
		||||
;             new requests will connect. The following parameter are used:
 | 
			
		||||
;             pm.max_children           - the maximum number of children that
 | 
			
		||||
;                                         can be alive at the same time.
 | 
			
		||||
;             pm.process_idle_timeout   - The number of seconds after which
 | 
			
		||||
;                                         an idle process will be killed.
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
pm = dynamic
 | 
			
		||||
 | 
			
		||||
; The number of child processes to be created when pm is set to 'static' and the
 | 
			
		||||
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 | 
			
		||||
; This value sets the limit on the number of simultaneous requests that will be
 | 
			
		||||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
 | 
			
		||||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
 | 
			
		||||
; CGI. The below defaults are based on a server without much resources. Don't
 | 
			
		||||
; forget to tweak pm.* to fit your needs.
 | 
			
		||||
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
pm.max_children = 10
 | 
			
		||||
 | 
			
		||||
; The number of child processes created on startup.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
 | 
			
		||||
pm.start_servers = 2
 | 
			
		||||
 | 
			
		||||
; The desired minimum number of idle server processes.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Note: Mandatory when pm is set to 'dynamic'
 | 
			
		||||
pm.min_spare_servers = 1
 | 
			
		||||
 | 
			
		||||
; The desired maximum number of idle server processes.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Note: Mandatory when pm is set to 'dynamic'
 | 
			
		||||
pm.max_spare_servers = 3
 | 
			
		||||
 | 
			
		||||
; The number of seconds after which an idle process will be killed.
 | 
			
		||||
; Note: Used only when pm is set to 'ondemand'
 | 
			
		||||
; Default Value: 10s
 | 
			
		||||
;pm.process_idle_timeout = 10s;
 | 
			
		||||
 | 
			
		||||
; The number of requests each child process should execute before respawning.
 | 
			
		||||
; This can be useful to work around memory leaks in 3rd party libraries. For
 | 
			
		||||
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;pm.max_requests = 500
 | 
			
		||||
 | 
			
		||||
; The URI to view the FPM status page. If this value is not set, no URI will be
 | 
			
		||||
; recognized as a status page. It shows the following informations:
 | 
			
		||||
;   pool                 - the name of the pool;
 | 
			
		||||
;   process manager      - static, dynamic or ondemand;
 | 
			
		||||
;   start time           - the date and time FPM has started;
 | 
			
		||||
;   start since          - number of seconds since FPM has started;
 | 
			
		||||
;   accepted conn        - the number of request accepted by the pool;
 | 
			
		||||
;   listen queue         - the number of request in the queue of pending
 | 
			
		||||
;                          connections (see backlog in listen(2));
 | 
			
		||||
;   max listen queue     - the maximum number of requests in the queue
 | 
			
		||||
;                          of pending connections since FPM has started;
 | 
			
		||||
;   listen queue len     - the size of the socket queue of pending connections;
 | 
			
		||||
;   idle processes       - the number of idle processes;
 | 
			
		||||
;   active processes     - the number of active processes;
 | 
			
		||||
;   total processes      - the number of idle + active processes;
 | 
			
		||||
;   max active processes - the maximum number of active processes since FPM
 | 
			
		||||
;                          has started;
 | 
			
		||||
;   max children reached - number of times, the process limit has been reached,
 | 
			
		||||
;                          when pm tries to start more children (works only for
 | 
			
		||||
;                          pm 'dynamic' and 'ondemand');
 | 
			
		||||
; Value are updated in real time.
 | 
			
		||||
; Example output:
 | 
			
		||||
;   pool:                 www
 | 
			
		||||
;   process manager:      static
 | 
			
		||||
;   start time:           01/Jul/2011:17:53:49 +0200
 | 
			
		||||
;   start since:          62636
 | 
			
		||||
;   accepted conn:        190460
 | 
			
		||||
;   listen queue:         0
 | 
			
		||||
;   max listen queue:     1
 | 
			
		||||
;   listen queue len:     42
 | 
			
		||||
;   idle processes:       4
 | 
			
		||||
;   active processes:     11
 | 
			
		||||
;   total processes:      15
 | 
			
		||||
;   max active processes: 12
 | 
			
		||||
;   max children reached: 0
 | 
			
		||||
;
 | 
			
		||||
; By default the status page output is formatted as text/plain. Passing either
 | 
			
		||||
; 'html', 'xml' or 'json' in the query string will return the corresponding
 | 
			
		||||
; output syntax. Example:
 | 
			
		||||
;   http://www.foo.bar/status
 | 
			
		||||
;   http://www.foo.bar/status?json
 | 
			
		||||
;   http://www.foo.bar/status?html
 | 
			
		||||
;   http://www.foo.bar/status?xml
 | 
			
		||||
;
 | 
			
		||||
; By default the status page only outputs short status. Passing 'full' in the
 | 
			
		||||
; query string will also return status for each pool process.
 | 
			
		||||
; Example:
 | 
			
		||||
;   http://www.foo.bar/status?full
 | 
			
		||||
;   http://www.foo.bar/status?json&full
 | 
			
		||||
;   http://www.foo.bar/status?html&full
 | 
			
		||||
;   http://www.foo.bar/status?xml&full
 | 
			
		||||
; The Full status returns for each process:
 | 
			
		||||
;   pid                  - the PID of the process;
 | 
			
		||||
;   state                - the state of the process (Idle, Running, ...);
 | 
			
		||||
;   start time           - the date and time the process has started;
 | 
			
		||||
;   start since          - the number of seconds since the process has started;
 | 
			
		||||
;   requests             - the number of requests the process has served;
 | 
			
		||||
;   request duration     - the duration in µs of the requests;
 | 
			
		||||
;   request method       - the request method (GET, POST, ...);
 | 
			
		||||
;   request URI          - the request URI with the query string;
 | 
			
		||||
;   content length       - the content length of the request (only with POST);
 | 
			
		||||
;   user                 - the user (PHP_AUTH_USER) (or '-' if not set);
 | 
			
		||||
;   script               - the main script called (or '-' if not set);
 | 
			
		||||
;   last request cpu     - the %cpu the last request consumed
 | 
			
		||||
;                          it's always 0 if the process is not in Idle state
 | 
			
		||||
;                          because CPU calculation is done when the request
 | 
			
		||||
;                          processing has terminated;
 | 
			
		||||
;   last request memory  - the max amount of memory the last request consumed
 | 
			
		||||
;                          it's always 0 if the process is not in Idle state
 | 
			
		||||
;                          because memory calculation is done when the request
 | 
			
		||||
;                          processing has terminated;
 | 
			
		||||
; If the process is in Idle state, then informations are related to the
 | 
			
		||||
; last request the process has served. Otherwise informations are related to
 | 
			
		||||
; the current request being served.
 | 
			
		||||
; Example output:
 | 
			
		||||
;   ************************
 | 
			
		||||
;   pid:                  31330
 | 
			
		||||
;   state:                Running
 | 
			
		||||
;   start time:           01/Jul/2011:17:53:49 +0200
 | 
			
		||||
;   start since:          63087
 | 
			
		||||
;   requests:             12808
 | 
			
		||||
;   request duration:     1250261
 | 
			
		||||
;   request method:       GET
 | 
			
		||||
;   request URI:          /test_mem.php?N=10000
 | 
			
		||||
;   content length:       0
 | 
			
		||||
;   user:                 -
 | 
			
		||||
;   script:               /home/fat/web/docs/php/test_mem.php
 | 
			
		||||
;   last request cpu:     0.00
 | 
			
		||||
;   last request memory:  0
 | 
			
		||||
;
 | 
			
		||||
; Note: There is a real-time FPM status monitoring sample web page available
 | 
			
		||||
;       It's available in: /usr/local/share/php/fpm/status.html
 | 
			
		||||
;
 | 
			
		||||
; Note: The value must start with a leading slash (/). The value can be
 | 
			
		||||
;       anything, but it may not be a good idea to use the .php extension or it
 | 
			
		||||
;       may conflict with a real PHP file.
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;pm.status_path = /status
 | 
			
		||||
 | 
			
		||||
; The ping URI to call the monitoring page of FPM. If this value is not set, no
 | 
			
		||||
; URI will be recognized as a ping page. This could be used to test from outside
 | 
			
		||||
; that FPM is alive and responding, or to
 | 
			
		||||
; - create a graph of FPM availability (rrd or such);
 | 
			
		||||
; - remove a server from a group if it is not responding (load balancing);
 | 
			
		||||
; - trigger alerts for the operating team (24/7).
 | 
			
		||||
; Note: The value must start with a leading slash (/). The value can be
 | 
			
		||||
;       anything, but it may not be a good idea to use the .php extension or it
 | 
			
		||||
;       may conflict with a real PHP file.
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;ping.path = /ping
 | 
			
		||||
 | 
			
		||||
; This directive may be used to customize the response of a ping request. The
 | 
			
		||||
; response is formatted as text/plain with a 200 response code.
 | 
			
		||||
; Default Value: pong
 | 
			
		||||
;ping.response = pong
 | 
			
		||||
 | 
			
		||||
; The access log file
 | 
			
		||||
; Default: not set
 | 
			
		||||
;access.log = log/$pool.access.log
 | 
			
		||||
 | 
			
		||||
; The access log format.
 | 
			
		||||
; The following syntax is allowed
 | 
			
		||||
;  %%: the '%' character
 | 
			
		||||
;  %C: %CPU used by the request
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{user}C for user CPU only
 | 
			
		||||
;      - %{system}C for system CPU only
 | 
			
		||||
;      - %{total}C  for user + system CPU (default)
 | 
			
		||||
;  %d: time taken to serve the request
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{seconds}d (default)
 | 
			
		||||
;      - %{miliseconds}d
 | 
			
		||||
;      - %{mili}d
 | 
			
		||||
;      - %{microseconds}d
 | 
			
		||||
;      - %{micro}d
 | 
			
		||||
;  %e: an environment variable (same as $_ENV or $_SERVER)
 | 
			
		||||
;      it must be associated with embraces to specify the name of the env
 | 
			
		||||
;      variable. Some exemples:
 | 
			
		||||
;      - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
 | 
			
		||||
;      - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
 | 
			
		||||
;  %f: script filename
 | 
			
		||||
;  %l: content-length of the request (for POST request only)
 | 
			
		||||
;  %m: request method
 | 
			
		||||
;  %M: peak of memory allocated by PHP
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{bytes}M (default)
 | 
			
		||||
;      - %{kilobytes}M
 | 
			
		||||
;      - %{kilo}M
 | 
			
		||||
;      - %{megabytes}M
 | 
			
		||||
;      - %{mega}M
 | 
			
		||||
;  %n: pool name
 | 
			
		||||
;  %o: output header
 | 
			
		||||
;      it must be associated with embraces to specify the name of the header:
 | 
			
		||||
;      - %{Content-Type}o
 | 
			
		||||
;      - %{X-Powered-By}o
 | 
			
		||||
;      - %{Transfert-Encoding}o
 | 
			
		||||
;      - ....
 | 
			
		||||
;  %p: PID of the child that serviced the request
 | 
			
		||||
;  %P: PID of the parent of the child that serviced the request
 | 
			
		||||
;  %q: the query string
 | 
			
		||||
;  %Q: the '?' character if query string exists
 | 
			
		||||
;  %r: the request URI (without the query string, see %q and %Q)
 | 
			
		||||
;  %R: remote IP address
 | 
			
		||||
;  %s: status (response code)
 | 
			
		||||
;  %t: server time the request was received
 | 
			
		||||
;      it can accept a strftime(3) format:
 | 
			
		||||
;      %d/%b/%Y:%H:%M:%S %z (default)
 | 
			
		||||
;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
 | 
			
		||||
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
 | 
			
		||||
;  %T: time the log has been written (the request has finished)
 | 
			
		||||
;      it can accept a strftime(3) format:
 | 
			
		||||
;      %d/%b/%Y:%H:%M:%S %z (default)
 | 
			
		||||
;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
 | 
			
		||||
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
 | 
			
		||||
;  %u: remote user
 | 
			
		||||
;
 | 
			
		||||
; Default: "%R - %u %t \"%m %r\" %s"
 | 
			
		||||
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
 | 
			
		||||
 | 
			
		||||
; The log file for slow requests
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
; Note: slowlog is mandatory if request_slowlog_timeout is set
 | 
			
		||||
;slowlog = log/$pool.log.slow
 | 
			
		||||
 | 
			
		||||
; The timeout for serving a single request after which a PHP backtrace will be
 | 
			
		||||
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
 | 
			
		||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;request_slowlog_timeout = 0
 | 
			
		||||
 | 
			
		||||
; Depth of slow log stack trace.
 | 
			
		||||
; Default Value: 20
 | 
			
		||||
;request_slowlog_trace_depth = 20
 | 
			
		||||
 | 
			
		||||
; The timeout for serving a single request after which the worker process will
 | 
			
		||||
; be killed. This option should be used when the 'max_execution_time' ini option
 | 
			
		||||
; does not stop script execution for some reason. A value of '0' means 'off'.
 | 
			
		||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;request_terminate_timeout = 0
 | 
			
		||||
 | 
			
		||||
; Set open file descriptor rlimit.
 | 
			
		||||
; Default Value: system defined value
 | 
			
		||||
;rlimit_files = 1024
 | 
			
		||||
 | 
			
		||||
; Set max core size rlimit.
 | 
			
		||||
; Possible Values: 'unlimited' or an integer greater or equal to 0
 | 
			
		||||
; Default Value: system defined value
 | 
			
		||||
;rlimit_core = 0
 | 
			
		||||
 | 
			
		||||
; Chroot to this directory at the start. This value must be defined as an
 | 
			
		||||
; absolute path. When this value is not set, chroot is not used.
 | 
			
		||||
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
 | 
			
		||||
; of its subdirectories. If the pool prefix is not set, the global prefix
 | 
			
		||||
; will be used instead.
 | 
			
		||||
; Note: chrooting is a great security feature and should be used whenever
 | 
			
		||||
;       possible. However, all PHP paths will be relative to the chroot
 | 
			
		||||
;       (error_log, sessions.save_path, ...).
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;chroot =
 | 
			
		||||
 | 
			
		||||
; Chdir to this directory at the start.
 | 
			
		||||
; Note: relative path can be used.
 | 
			
		||||
; Default Value: current directory or / when chroot
 | 
			
		||||
;chdir = /var/www
 | 
			
		||||
 | 
			
		||||
; Redirect worker stdout and stderr into main error log. If not set, stdout and
 | 
			
		||||
; stderr will be redirected to /dev/null according to FastCGI specs.
 | 
			
		||||
; Note: on highloaded environement, this can cause some delay in the page
 | 
			
		||||
; process time (several ms).
 | 
			
		||||
; Default Value: no
 | 
			
		||||
;catch_workers_output = yes
 | 
			
		||||
 | 
			
		||||
; Clear environment in FPM workers
 | 
			
		||||
; Prevents arbitrary environment variables from reaching FPM worker processes
 | 
			
		||||
; by clearing the environment in workers before env vars specified in this
 | 
			
		||||
; pool configuration are added.
 | 
			
		||||
; Setting to "no" will make all environment variables available to PHP code
 | 
			
		||||
; via getenv(), $_ENV and $_SERVER.
 | 
			
		||||
; Default Value: yes
 | 
			
		||||
;clear_env = no
 | 
			
		||||
 | 
			
		||||
; Limits the extensions of the main script FPM will allow to parse. This can
 | 
			
		||||
; prevent configuration mistakes on the web server side. You should only limit
 | 
			
		||||
; FPM to .php extensions to prevent malicious users to use other extensions to
 | 
			
		||||
; execute php code.
 | 
			
		||||
; Note: set an empty value to allow all extensions.
 | 
			
		||||
; Default Value: .php
 | 
			
		||||
;security.limit_extensions = .php .php3 .php4 .php5 .php7
 | 
			
		||||
 | 
			
		||||
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
 | 
			
		||||
; the current environment.
 | 
			
		||||
; Default Value: clean env
 | 
			
		||||
env[HOSTNAME] = $HOSTNAME
 | 
			
		||||
env[PATH] = /usr/local/bin:/usr/bin:/bin
 | 
			
		||||
env[TMP] = /tmp
 | 
			
		||||
env[TMPDIR] = /tmp
 | 
			
		||||
env[TEMP] = /tmp
 | 
			
		||||
 | 
			
		||||
; Additional php.ini defines, specific to this pool of workers. These settings
 | 
			
		||||
; overwrite the values previously defined in the php.ini. The directives are the
 | 
			
		||||
; same as the PHP SAPI:
 | 
			
		||||
;   php_value/php_flag             - you can set classic ini defines which can
 | 
			
		||||
;                                    be overwritten from PHP call 'ini_set'.
 | 
			
		||||
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
 | 
			
		||||
;                                     PHP call 'ini_set'
 | 
			
		||||
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
 | 
			
		||||
 | 
			
		||||
; Defining 'extension' will load the corresponding shared extension from
 | 
			
		||||
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
 | 
			
		||||
; overwrite previously defined php.ini values, but will append the new value
 | 
			
		||||
; instead.
 | 
			
		||||
 | 
			
		||||
; Note: path INI options can be relative and will be expanded with the prefix
 | 
			
		||||
; (pool, global or /usr/local)
 | 
			
		||||
 | 
			
		||||
; Default Value: nothing is defined by default except the values in php.ini and
 | 
			
		||||
;                specified at startup with the -d argument
 | 
			
		||||
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
 | 
			
		||||
;php_flag[display_errors] = off
 | 
			
		||||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
 | 
			
		||||
;php_admin_flag[log_errors] = on
 | 
			
		||||
;php_admin_value[memory_limit] = 32M
 | 
			
		||||
							
								
								
									
										77
									
								
								jails/config/common/.bash_profile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								jails/config/common/.bash_profile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,77 @@
 | 
			
		||||
if [[ $- != *i* ]] ; then
 | 
			
		||||
  # Shell is non-interactive.  Be done now!
 | 
			
		||||
  return
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Bash won't get SIGWINCH if another process is in the foreground.
 | 
			
		||||
# Enable checkwinsize so that bash will check the terminal size when
 | 
			
		||||
# it regains control.  #65623
 | 
			
		||||
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
 | 
			
		||||
shopt -s checkwinsize
 | 
			
		||||
 | 
			
		||||
# Enable history appending instead of overwriting.  #139609
 | 
			
		||||
shopt -s histappend
 | 
			
		||||
 | 
			
		||||
# Change the window title of X terminals 
 | 
			
		||||
case ${TERM} in
 | 
			
		||||
  xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
 | 
			
		||||
      PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
 | 
			
		||||
      ;;
 | 
			
		||||
  screen)
 | 
			
		||||
      PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
 | 
			
		||||
      ;;
 | 
			
		||||
  su)
 | 
			
		||||
      TERM=xterm-256color
 | 
			
		||||
      PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
 | 
			
		||||
      ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
use_color=false
 | 
			
		||||
 | 
			
		||||
# Set colorful PS1 only on colorful terminals.
 | 
			
		||||
# dircolors --print-database uses its own built-in database
 | 
			
		||||
# instead of using /etc/DIR_COLORS.  Try to use the external file
 | 
			
		||||
# first to take advantage of user additions.  Use internal bash
 | 
			
		||||
# globbing instead of external grep binary.
 | 
			
		||||
safe_term=${TERM//[^[:alnum:]]/?}   # sanitize TERM
 | 
			
		||||
match_lhs=""
 | 
			
		||||
[[ -f ~/.dir_colors   ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
 | 
			
		||||
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
 | 
			
		||||
[[ -z ${match_lhs}    ]] \
 | 
			
		||||
  && type -P dircolors >/dev/null \
 | 
			
		||||
  && match_lhs=$(dircolors --print-database)
 | 
			
		||||
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
 | 
			
		||||
 | 
			
		||||
if ${use_color} ; then
 | 
			
		||||
  # Enable colors for ls, etc.  Prefer ~/.dir_colors #64489
 | 
			
		||||
  if type -P dircolors >/dev/null ; then
 | 
			
		||||
      if [[ -f ~/.dir_colors ]] ; then
 | 
			
		||||
          eval $(dircolors -b ~/.dir_colors)
 | 
			
		||||
      elif [[ -f /etc/DIR_COLORS ]] ; then
 | 
			
		||||
          eval $(dircolors -b /etc/DIR_COLORS)
 | 
			
		||||
      fi
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  if [[ ${EUID} == 0 ]] ; then
 | 
			
		||||
      PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
 | 
			
		||||
  else
 | 
			
		||||
      PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  CLICOLOR="YES";    export CLICOLOR
 | 
			
		||||
  LSCOLORS="ExGxFxdxCxDxDxhbadExEx";    export LSCOLORS
 | 
			
		||||
  #alias ls='ls --color=auto'
 | 
			
		||||
  #alias grep='grep --colour=auto'
 | 
			
		||||
else
 | 
			
		||||
  if [[ ${EUID} == 0 ]] ; then
 | 
			
		||||
      # show root@ when we don't have colors
 | 
			
		||||
      PS1='\u@\h \W \$ '
 | 
			
		||||
  else
 | 
			
		||||
      PS1='\u@\h \w \$ '
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Try to keep environment pollution down, EPA loves us.
 | 
			
		||||
unset use_color safe_term match_lhs
 | 
			
		||||
 | 
			
		||||
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && source /usr/local/share/bash-completion/bash_completion.sh
 | 
			
		||||
							
								
								
									
										148
									
								
								jails/config/common/.dir_colors
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										148
									
								
								jails/config/common/.dir_colors
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,148 @@
 | 
			
		||||
# Below, there should be one TERM entry for each termtype that is colorizable
 | 
			
		||||
TERM ansi
 | 
			
		||||
TERM color-xterm
 | 
			
		||||
TERM con132x25
 | 
			
		||||
TERM con132x30
 | 
			
		||||
TERM con132x43
 | 
			
		||||
TERM con132x60
 | 
			
		||||
TERM con80x25
 | 
			
		||||
TERM con80x28
 | 
			
		||||
TERM con80x30
 | 
			
		||||
TERM con80x43
 | 
			
		||||
TERM con80x50
 | 
			
		||||
TERM con80x60
 | 
			
		||||
TERM cons25
 | 
			
		||||
TERM console
 | 
			
		||||
TERM cygwin
 | 
			
		||||
TERM dtterm
 | 
			
		||||
TERM Eterm
 | 
			
		||||
TERM gnome
 | 
			
		||||
TERM konsole
 | 
			
		||||
TERM kterm
 | 
			
		||||
TERM linux
 | 
			
		||||
TERM linux-c
 | 
			
		||||
TERM mach-color
 | 
			
		||||
TERM putty
 | 
			
		||||
TERM rxvt
 | 
			
		||||
TERM rxvt-cygwin
 | 
			
		||||
TERM rxvt-cygwin-native
 | 
			
		||||
TERM rxvt-unicode
 | 
			
		||||
TERM screen
 | 
			
		||||
TERM screen-bce
 | 
			
		||||
TERM screen-w
 | 
			
		||||
TERM screen.linux
 | 
			
		||||
TERM vt100
 | 
			
		||||
TERM xterm
 | 
			
		||||
TERM xterm-256color
 | 
			
		||||
TERM xterm-color
 | 
			
		||||
TERM xterm-debian
 | 
			
		||||
 | 
			
		||||
# Below are the color init strings for the basic file types. A color init
 | 
			
		||||
# string consists of one or more of the following numeric codes:
 | 
			
		||||
# Attribute codes:
 | 
			
		||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
 | 
			
		||||
# Text color codes:
 | 
			
		||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
 | 
			
		||||
# Background color codes:
 | 
			
		||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
 | 
			
		||||
NORMAL 00           # global default, although everything should be something.
 | 
			
		||||
FILE 00             # normal file
 | 
			
		||||
DIR 01;34           # directory
 | 
			
		||||
LINK 01;36          # symbolic link.  (If you set this to 'target' instead of a
 | 
			
		||||
                    # numerical value, the color will match the file pointed to)
 | 
			
		||||
FIFO 40;33          # pipe
 | 
			
		||||
SOCK 01;35          # socket
 | 
			
		||||
DOOR 01;35          # door
 | 
			
		||||
BLK 40;33;01        # block device driver
 | 
			
		||||
CHR 40;33;01        # character device driver
 | 
			
		||||
ORPHAN 01;05;37;41  # orphaned syminks
 | 
			
		||||
MISSING 01;05;37;41 # ... and the files they point to
 | 
			
		||||
 | 
			
		||||
# This is for files with execute permission:
 | 
			
		||||
EXEC 01;32
 | 
			
		||||
 | 
			
		||||
# List any file extensions like '.gz' or '.tar' that you would like ls
 | 
			
		||||
# to colorize below. Put the extension, a space, and the color init string.
 | 
			
		||||
# (and any comments you want to add after a '#')
 | 
			
		||||
 | 
			
		||||
.cmd 01;32 # executables (bright green)
 | 
			
		||||
.exe 01;32
 | 
			
		||||
.com 01;32
 | 
			
		||||
.btm 01;32
 | 
			
		||||
.bat 01;32
 | 
			
		||||
.sh  01;32
 | 
			
		||||
.csh 01;32
 | 
			
		||||
 | 
			
		||||
.tar 01;31 # archives / compressed (bright red)
 | 
			
		||||
.tgz 01;31
 | 
			
		||||
.arj 01;31
 | 
			
		||||
.taz 01;31
 | 
			
		||||
.lzh 01;31
 | 
			
		||||
.zip 01;31
 | 
			
		||||
.z   01;31
 | 
			
		||||
.Z   01;31
 | 
			
		||||
.gz  01;31
 | 
			
		||||
.bz2 01;31
 | 
			
		||||
.bz  01;31
 | 
			
		||||
.tbz2 01;31
 | 
			
		||||
.tz  01;31
 | 
			
		||||
.deb 01;31
 | 
			
		||||
.rpm 01;31
 | 
			
		||||
.rar 01;31        # app-arch/rar
 | 
			
		||||
.ace 01;31        # app-arch/unace
 | 
			
		||||
.zoo 01;31        # app-arch/zoo
 | 
			
		||||
.cpio 01;31       # app-arch/cpio
 | 
			
		||||
.7z  01;31        # app-arch/p7zip
 | 
			
		||||
.rz  01;31        # app-arch/rzip
 | 
			
		||||
 | 
			
		||||
.jpg 01;35 # image formats
 | 
			
		||||
.jpeg 01;35
 | 
			
		||||
.gif 01;35
 | 
			
		||||
.bmp 01;35
 | 
			
		||||
.ppm 01;35
 | 
			
		||||
.tga 01;35
 | 
			
		||||
.xbm 01;35
 | 
			
		||||
.xpm 01;35
 | 
			
		||||
.tif 01;35
 | 
			
		||||
.tiff 01;35
 | 
			
		||||
.png 01;35
 | 
			
		||||
.mng 01;35
 | 
			
		||||
.xcf 01;35
 | 
			
		||||
.pcx 01;35
 | 
			
		||||
.mpg 01;35
 | 
			
		||||
.mpeg 01;35
 | 
			
		||||
.m2v 01;35  # MPEG-2 Video only
 | 
			
		||||
.avi 01;35
 | 
			
		||||
.mkv 01;35  # Matroska (http://matroska.org/)
 | 
			
		||||
.ogm 01;35  # Ogg Media File
 | 
			
		||||
.mp4 01;35  # "Offical" container for MPEG-4
 | 
			
		||||
.m4v 01;35  # MPEG-4 Video only
 | 
			
		||||
.mp4v 01;35 # MPEG-4 Video only
 | 
			
		||||
.mov 01;35  # Quicktime (http://developer.apple.com/qa/qtw/qtw99.html)
 | 
			
		||||
.qt 01;35   # Quicktime (http://developer.apple.com/qa/qtw/qtw99.html)
 | 
			
		||||
.wmv 01;35  # Windows Media Video
 | 
			
		||||
.asf 01;35  # Advanced Systems Format (contains Windows Media Video)
 | 
			
		||||
.rm 01;35   # Real Media
 | 
			
		||||
.rmvb 01;35 # Real Media Variable Bitrate
 | 
			
		||||
.flc 01;35  # AutoDesk Animator
 | 
			
		||||
.fli 01;35  # AutoDesk Animator
 | 
			
		||||
.gl 01;35
 | 
			
		||||
.dl 01;35
 | 
			
		||||
 | 
			
		||||
.pdf 00;32 # Document files
 | 
			
		||||
.ps 00;32
 | 
			
		||||
.txt 00;32
 | 
			
		||||
.patch 00;32
 | 
			
		||||
.diff 00;32
 | 
			
		||||
.log 00;32
 | 
			
		||||
.tex 00;32
 | 
			
		||||
.doc 00;32
 | 
			
		||||
 | 
			
		||||
.mp3 00;36 # Audio files
 | 
			
		||||
.wav 00;36
 | 
			
		||||
.mid 00;36
 | 
			
		||||
.midi 00;36
 | 
			
		||||
.au 00;36
 | 
			
		||||
.ogg 00;36
 | 
			
		||||
.flac 00;36
 | 
			
		||||
.aac 00;36
 | 
			
		||||
							
								
								
									
										1
									
								
								jails/config/common/FreeBSD.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								jails/config/common/FreeBSD.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
FreeBSD: { enabled: no }
 | 
			
		||||
							
								
								
									
										1
									
								
								jails/config/common/authorized_keys
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								jails/config/common/authorized_keys
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAGJkR8PJBp68y44o4H44HueSGYbyg1+8VJP43YEj4M7ssKagMTH5QQEifU1gepdLgoK7mr+9yLpNXUlzT56FOcpQ3cyjPtp58N3384FrewAgiyA2dqwSxN/UsPXXA5F88HxcuhKXfEZgugC92W3LL8/U8dC/nSwj1hFVjWf75OpXqTjJFaBKhVYDjo75OfkzIwWQLmrFO/VF9TmA41eRn/yXZs+S504iVV+0dK6MgkN5FJoPj+XsKNr1pgQTIn63AtdLB2wW4gafWTQI6SMBYUPkfcrFdLR73+g2+IOSiLdB37us2XXtwHw1shJwLlz0j+1EVjZjOFAWILDNwrzJt ahlawat@ahlawat.com
 | 
			
		||||
							
								
								
									
										25
									
								
								jails/config/common/nano/asm.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								jails/config/common/nano/asm.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
## Here is an example for assembler.
 | 
			
		||||
 | 
			
		||||
syntax "asm" "\.(S|s|asm)$"
 | 
			
		||||
magic "assembler source"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
color red "\<[A-Z_]{2,}\>"
 | 
			
		||||
color brightgreen "\.(data|subsection|text)"
 | 
			
		||||
color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
 | 
			
		||||
color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
 | 
			
		||||
icolor brightred "^[[:space:]]*[.0-9A-Z_]*:"
 | 
			
		||||
color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightyellow "<[^= 	]*>" ""(\\.|[^"])*""
 | 
			
		||||
# Multiline strings.  This regex is VERY resource intensive,
 | 
			
		||||
# and sometimes colours things that shouldn't be coloured.
 | 
			
		||||
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										32
									
								
								jails/config/common/nano/autoconf.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								jails/config/common/nano/autoconf.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,32 @@
 | 
			
		||||
## Here is an example for Autoconf.
 | 
			
		||||
 | 
			
		||||
syntax "autoconf" "\.(ac|m4)$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Keywords:
 | 
			
		||||
color yellow "\<(if|test|then|elif|else|fi|for|in|do|done)\>"
 | 
			
		||||
color yellow "(=|!=|&&|\|\|)"
 | 
			
		||||
 | 
			
		||||
# Macros:
 | 
			
		||||
color cyan "\<[[:upper:]_[:digit:]]+\>"
 | 
			
		||||
 | 
			
		||||
# Version numbers:
 | 
			
		||||
color red "\<[-_.0-9]+\>"
 | 
			
		||||
 | 
			
		||||
# Strings:
 | 
			
		||||
color red "\"[^"]*\""  "\'[^']*\'"
 | 
			
		||||
 | 
			
		||||
# Backticks:
 | 
			
		||||
color green "`[^`]*`"
 | 
			
		||||
 | 
			
		||||
# Error lines:
 | 
			
		||||
color brightred "^\*\*\*.*"
 | 
			
		||||
 | 
			
		||||
# Brackets:
 | 
			
		||||
color magenta "\[|\]|\(|\)"
 | 
			
		||||
 | 
			
		||||
# Comments:
 | 
			
		||||
color blue "^[[:blank:]]*#.*"  "\<dnl.*"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace:
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										37
									
								
								jails/config/common/nano/awk.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								jails/config/common/nano/awk.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
			
		||||
## Here is an example for awk.
 | 
			
		||||
 | 
			
		||||
syntax "awk" "\.awk$"
 | 
			
		||||
magic "awk script"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Records.
 | 
			
		||||
icolor brightred "\$[0-9A-Z_!@#$*?-]+"
 | 
			
		||||
# Awk-set variables.
 | 
			
		||||
color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
 | 
			
		||||
color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
 | 
			
		||||
color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
 | 
			
		||||
# Function declarations and special patterns.
 | 
			
		||||
color brightgreen "\<(function|extension|BEGIN|END)\>"
 | 
			
		||||
# Operators.
 | 
			
		||||
color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)"
 | 
			
		||||
# Flow control.
 | 
			
		||||
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
 | 
			
		||||
color brightyellow "\<(break|continue|return)\>"
 | 
			
		||||
# I/O statements.
 | 
			
		||||
color brightgreen "\<(close|getline|next|nextfile|print|printf)\>"
 | 
			
		||||
color brightgreen "\<(system|fflush)\>"
 | 
			
		||||
# Standard functions.
 | 
			
		||||
color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
 | 
			
		||||
color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>"
 | 
			
		||||
color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
 | 
			
		||||
color magenta "\<(mktime|strftime|systime)\>"
 | 
			
		||||
color magenta "\<(and|compl|lshift|or|rshift|xor)\>"
 | 
			
		||||
color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightyellow "<[^= 	]*>" ""(\\.|[^"])*""
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "(^|[[:space:]])#.*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										39
									
								
								jails/config/common/nano/c.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								jails/config/common/nano/c.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,39 @@
 | 
			
		||||
## Here is an example for C/C++.
 | 
			
		||||
 | 
			
		||||
syntax "c" "\.(c(c|pp|xx|\+\+)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
 | 
			
		||||
magic "^(C|C\+\+) (source|program)"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# Constants.
 | 
			
		||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
 | 
			
		||||
# Labels.
 | 
			
		||||
color brightmagenta "^[[:space:]]*[A-Z_a-z]+:[[:space:]]*$"
 | 
			
		||||
 | 
			
		||||
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|auto|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
 | 
			
		||||
color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
 | 
			
		||||
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|override|using|mutable|volatile|register|explicit)\>"
 | 
			
		||||
color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"
 | 
			
		||||
color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
 | 
			
		||||
color magenta "\<(goto|continue|break|return)\>"
 | 
			
		||||
color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
 | 
			
		||||
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
 | 
			
		||||
 | 
			
		||||
# GCC builtins.
 | 
			
		||||
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
 | 
			
		||||
 | 
			
		||||
# Strings.  In general you will want your strings and comments to come last,
 | 
			
		||||
# because highlighting rules are applied in the order they are read in.
 | 
			
		||||
color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>"
 | 
			
		||||
# Multiline strings.  This regex is VERY resource intensive,
 | 
			
		||||
# and sometimes colours things that shouldn't be coloured.
 | 
			
		||||
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Reminders.
 | 
			
		||||
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										28
									
								
								jails/config/common/nano/changelog.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								jails/config/common/nano/changelog.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
## Colouring for Changelogs.
 | 
			
		||||
 | 
			
		||||
syntax "changelog" "Change[Ll]og.*"
 | 
			
		||||
 | 
			
		||||
# Author lines.
 | 
			
		||||
color green "^(19|20).*$"
 | 
			
		||||
# Dates.
 | 
			
		||||
color red "^(19|20)[0-9-]{8}"
 | 
			
		||||
# Email addresses.
 | 
			
		||||
color yellow "<[^>]*@[^>]*>"
 | 
			
		||||
 | 
			
		||||
# Command-line options.
 | 
			
		||||
color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
 | 
			
		||||
# Bug and patch numbers.
 | 
			
		||||
color cyan "(BZ|bug|patch) #[0-9]+" "PR [[:alnum:]]+/[0-9]+"
 | 
			
		||||
# Probable constants, for variety.
 | 
			
		||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
 | 
			
		||||
# Key sequences.
 | 
			
		||||
color brightblue "\^[A-Z^\]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
 | 
			
		||||
 | 
			
		||||
# Changed files.
 | 
			
		||||
color magenta start="^(	| {8})\* " end="(:( |$)|^$)"
 | 
			
		||||
 | 
			
		||||
# Release markers.
 | 
			
		||||
color brightblue "^(GNU )?nano[- ][0-9]\.[0-9]\.[^ ]+"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										20
									
								
								jails/config/common/nano/cmake.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/common/nano/cmake.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
## Syntax highlighting for CMake files.
 | 
			
		||||
 | 
			
		||||
syntax "cmake" "(CMakeLists\.txt|\.cmake)$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
icolor green "^[[:space:]]*[A-Z0-9_]+"
 | 
			
		||||
icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>"
 | 
			
		||||
 | 
			
		||||
icolor brightgreen "^[[:space:]]*((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
 | 
			
		||||
color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)[[:space:]]"
 | 
			
		||||
color brightgreen "[[:space:]](OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))[[:space:]]"
 | 
			
		||||
 | 
			
		||||
icolor brightred "^[[:space:]]*((end)?(function|macro)|return)"
 | 
			
		||||
 | 
			
		||||
icolor cyan start="\$(\{|ENV\{)" end="\}"
 | 
			
		||||
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
 | 
			
		||||
 | 
			
		||||
icolor brightblue "^([[:space:]]*)?#.*"
 | 
			
		||||
icolor brightblue "[[:space:]]#.*"
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										11
									
								
								jails/config/common/nano/css.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								jails/config/common/nano/css.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
## Here is an example for CSS files.
 | 
			
		||||
 | 
			
		||||
syntax "css" "\.css$"
 | 
			
		||||
comment "/*|*/"
 | 
			
		||||
 | 
			
		||||
color brightred     "."
 | 
			
		||||
color brightyellow  start="\{" end="\}"
 | 
			
		||||
color brightwhite   start=":" end="([;^\{]|$)"
 | 
			
		||||
color brightblue    ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
 | 
			
		||||
color brightblue    start="\/\*" end="\\*/"
 | 
			
		||||
color green         ";|:|\{|\}"
 | 
			
		||||
							
								
								
									
										21
									
								
								jails/config/common/nano/debian.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								jails/config/common/nano/debian.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
## Here is an example for apt's sources.list.
 | 
			
		||||
 | 
			
		||||
syntax "sources.list" "sources\.list(~|\.old|\.save)?$" "sources\.list\.d/.*\.list(~|\.old|\.save)?$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Coloring the deb lines, working from tail to head.  First the
 | 
			
		||||
# components -- well, everything, and thus also the components.
 | 
			
		||||
color brightmagenta "^deb.*"
 | 
			
		||||
# Distribution -- well, everything, except the components.
 | 
			
		||||
color brightred "^deb(-src)?\s+.*((ftp|https?|rsh|ssh|copy|file|spacewalk|tor):/\S+|cdrom:\[.+\]/)\s+\S+"
 | 
			
		||||
# URIs.
 | 
			
		||||
color brightgreen "^deb(-src)?\s+.*(ftp|https?|rsh|ssh|copy|file|spacewalk|tor):/\S+"
 | 
			
		||||
# CDroms.
 | 
			
		||||
color brightgreen "^deb(-src)?\s+.*cdrom:\[.+\]/"
 | 
			
		||||
# Options.
 | 
			
		||||
color brightcyan "^deb(-src)?\s+\[.+\]\s+"
 | 
			
		||||
# And finally the initial deb tag.
 | 
			
		||||
color yellow "^deb(-src)?"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "#.*"
 | 
			
		||||
							
								
								
									
										17
									
								
								jails/config/common/nano/default.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								jails/config/common/nano/default.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
## An example of a default syntax.  The default syntax is used for
 | 
			
		||||
## files that do not match any other syntax.
 | 
			
		||||
 | 
			
		||||
syntax "default"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "^[[:space:]]*#.*"
 | 
			
		||||
 | 
			
		||||
# Spaces in front of tabs.
 | 
			
		||||
color ,red " +	+"
 | 
			
		||||
 | 
			
		||||
# Nano's name, including version.
 | 
			
		||||
color brightred "(GNU )?nano [1-9]\.[0-9]\.[^[:space:][:punct:]]+"
 | 
			
		||||
 | 
			
		||||
# Email addresses.
 | 
			
		||||
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
 | 
			
		||||
							
								
								
									
										33
									
								
								jails/config/common/nano/elisp.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								jails/config/common/nano/elisp.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
## Here is an example for Emacs Lisp.
 | 
			
		||||
 | 
			
		||||
syntax "elisp" "\.el$"
 | 
			
		||||
magic "Lisp/Scheme program"
 | 
			
		||||
comment ";"
 | 
			
		||||
 | 
			
		||||
# Basic functions/macros
 | 
			
		||||
color brightcyan "\<(if|when|unless|cond|and|or|lambda|let|progn|while|dolist|dotimes)\>"
 | 
			
		||||
color brightcyan "\<save-((window-)?excursion|restriction)\>"
 | 
			
		||||
color brightcyan "\<eval-(and|when)-compile\>"
 | 
			
		||||
# Defining functions
 | 
			
		||||
color brightcyan "\<def(un|macro|subst|generic|alias)\>"
 | 
			
		||||
color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
 | 
			
		||||
color brightcyan "\<define-(derived|minor|generic)-mode\>"
 | 
			
		||||
# Defining variables
 | 
			
		||||
color brightcyan "\<def(class|const|var(-local|alias)?)\>"
 | 
			
		||||
# Customization functions
 | 
			
		||||
color brightcyan "\<def(custom|face|group|theme)\>"
 | 
			
		||||
# Setting values
 | 
			
		||||
color brightcyan "\<(setq(-default|-local)?|setf|push|pop|declare(-function)?)\>"
 | 
			
		||||
# Feature functions
 | 
			
		||||
color brightcyan "\<(require|provide)\>"
 | 
			
		||||
# Quoted symbols
 | 
			
		||||
color brightyellow "#?'\<(\w|-)+\>"
 | 
			
		||||
# Booleans
 | 
			
		||||
color brightred "\<(t|nil)\>"
 | 
			
		||||
# Keywords
 | 
			
		||||
color blue ":(\w|[?-])+"
 | 
			
		||||
# Strings
 | 
			
		||||
color yellow start="^[[:blank:]]+\"" end="[^\]\""
 | 
			
		||||
color yellow ""(\\.|[^"])*""
 | 
			
		||||
# Comments
 | 
			
		||||
color cyan "(^|[[:space:]]);.*$"
 | 
			
		||||
							
								
								
									
										40
									
								
								jails/config/common/nano/fortran.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								jails/config/common/nano/fortran.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,40 @@
 | 
			
		||||
## Here is an example for Fortran 90/95.
 | 
			
		||||
 | 
			
		||||
syntax "fortran" "\.(f|f90|f95)$"
 | 
			
		||||
comment "!"
 | 
			
		||||
 | 
			
		||||
color red "\<[0-9]+\>"
 | 
			
		||||
 | 
			
		||||
icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>"
 | 
			
		||||
icolor green "\<(append|asis|assign|assignment|associated|character|common)\>"
 | 
			
		||||
icolor green "\<(complex|data|default|delim|dimension|double precision)\>"
 | 
			
		||||
icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>"
 | 
			
		||||
icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>"
 | 
			
		||||
icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)>"
 | 
			
		||||
icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>"
 | 
			
		||||
icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>"
 | 
			
		||||
icolor green "\<(selected_real_kind|subroutine|status)\>"
 | 
			
		||||
 | 
			
		||||
icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>"
 | 
			
		||||
icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>"
 | 
			
		||||
icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>"
 | 
			
		||||
icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>"
 | 
			
		||||
icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>"
 | 
			
		||||
icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>"
 | 
			
		||||
icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>"
 | 
			
		||||
icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>"
 | 
			
		||||
icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>"
 | 
			
		||||
icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>"
 | 
			
		||||
icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>"
 | 
			
		||||
 | 
			
		||||
icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>"
 | 
			
		||||
icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>"
 | 
			
		||||
icolor yellow "\<(.or.|repeat|select case|then|where|while)\>"
 | 
			
		||||
 | 
			
		||||
icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
icolor yellow "<[^= 	]*>" ""(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
icolor blue "!.*"
 | 
			
		||||
							
								
								
									
										74
									
								
								jails/config/common/nano/gentoo.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								jails/config/common/nano/gentoo.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,74 @@
 | 
			
		||||
## Here is an example for Gentoo ebuilds/eclasses,
 | 
			
		||||
## and (further down) one for Portage control files.
 | 
			
		||||
 | 
			
		||||
syntax "ebuild" "\.e(build|class|blit)$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
## All the standard portage functions:
 | 
			
		||||
color brightgreen "(^|\<default_)src_(unpack|prepare|configure|compile|install|test)\>"
 | 
			
		||||
color brightgreen "^pkg_(config|nofetch|info|pretend|setup|(pre|post)(inst|rm))\>"
 | 
			
		||||
color brightgreen "\<default(_pkg_nofetch|_src_(unpack|prepare|configure|compile|test))?\>"
 | 
			
		||||
## Bash-related syntax:
 | 
			
		||||
color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>"
 | 
			
		||||
color green "\<(declare|eval|exec|export|let|local)\>"
 | 
			
		||||
color green "[{}():;|`$<>!=&\\]" "(\]|\[)"
 | 
			
		||||
color green "-[defhnrsuwxzL]\>"
 | 
			
		||||
color green "-(eq|ne|gt|lt|ge|le)\>"
 | 
			
		||||
## Variables... official portage ones in red, all others in bright red:
 | 
			
		||||
color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*"
 | 
			
		||||
color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})"
 | 
			
		||||
color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|[HPR]?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>"
 | 
			
		||||
color red "\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|E?ROOT|WORKDIR)\>"
 | 
			
		||||
color red "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>" "\<(MERGE_TYPE|REPLACING_VERSIONS|REPLACED_BY_VERSION)\>"
 | 
			
		||||
color red "\<EBUILD_PHASE(_FUNC)?\>"
 | 
			
		||||
color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>"
 | 
			
		||||
color red "\<(PATCHES|(HTML_)?DOCS)\>" "\<WANT_(AUTO(CONF|MAKE)|LIBTOOL)\>" "\<AT_M4DIR\>"
 | 
			
		||||
## Portage commands:
 | 
			
		||||
color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse) [!a-zA-Z0-9_+ -]*" "inherit.*"
 | 
			
		||||
color brightblue "\<e(begin|end|conf|install|make|qmake4|ant|(qa)?warn|infon?|error|log|patch(_user)?|new(group|user))\>"
 | 
			
		||||
color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make)|libtoolize)\>"
 | 
			
		||||
color brightblue "\<e(stack|shopts|umask)_(push|pop)\>" "\<version_is_at_least\>"
 | 
			
		||||
color brightblue "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>"
 | 
			
		||||
color brightblue "\<(die|hasv?|inherit|nonfatal)\>" "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\>" "\<(has|best)_version\>"
 | 
			
		||||
color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
 | 
			
		||||
color brightblue "\<do(compress|header|python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
 | 
			
		||||
color brightblue "\<prepall(docs|info|man|strip)?\>" "\<prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)\>"
 | 
			
		||||
color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>"
 | 
			
		||||
color brightblue "\<tc-get(BUILD_)?(AR|AS|CC|CPP|CXX|LD|NM|OBJCOPY|PKG_CONFIG|RANLIB)\>"
 | 
			
		||||
color brightblue "\<tc-(arch(-kernel)?|export|has-(tls|openmp))\>"
 | 
			
		||||
## Common commands used in ebuilds:
 | 
			
		||||
color blue "\<(awk|cat|cd|chmod|chown|cp|echo|env|find|e?grep|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|unset|xargs)\>"
 | 
			
		||||
## Comments (doesn't work that well):
 | 
			
		||||
color yellow "(^|[[:space:]])#.*$"
 | 
			
		||||
## Strings (doesn't work that well):
 | 
			
		||||
color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
 | 
			
		||||
## Trailing space is bad!
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
## Mixed whitespace is also bad.
 | 
			
		||||
color ,green " 	"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
syntax "/etc/portage" "\.(accept_keywords|env|keywords|mask|unmask|use)(/.+)?$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
## Base text:
 | 
			
		||||
color green "^.+$"
 | 
			
		||||
## Likely version and slot numbers:
 | 
			
		||||
color magenta "-[[:digit:].]+(_(alpha|beta|pre|rc|p)[[:digit:]]*)*(-r[[:digit:]]+)?([:[:space:]]|$)"
 | 
			
		||||
color magenta ":[^[:space:]]+([[:space:]]|$)"
 | 
			
		||||
## Use flags (must come after version/slot):
 | 
			
		||||
color brightred "[[:space:]]+\+?[A-Za-z0-9+_@-]+"
 | 
			
		||||
color brightblue "[[:space:]]+-[A-Za-z0-9+_@-]+"
 | 
			
		||||
## Accepted arches:
 | 
			
		||||
color white "[~-]?\<(alpha|amd64|arm(64)?|hppa|ia64|m68k|mips|nios2|ppc(64)?|riscv|s390|sh|sparc|x86)(-(aix|(f|free|net|open)bsd|cygwin|hpux|interix|linux|macos|mint|solaris|winnt))?\>"
 | 
			
		||||
color white "[[:space:]][*~-]?\*"
 | 
			
		||||
## Categories:
 | 
			
		||||
color cyan "^[[:space:]]*[^/]*/"
 | 
			
		||||
## Masking regulators:
 | 
			
		||||
color brightmagenta "^[[:space:]]*(=|~|<|<=|>|>=)"
 | 
			
		||||
## Comments:
 | 
			
		||||
color yellow "#.*$"
 | 
			
		||||
## Trailing space is bad!
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
## Mixed whitespace is also bad.
 | 
			
		||||
color ,green " 	"
 | 
			
		||||
							
								
								
									
										42
									
								
								jails/config/common/nano/go.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								jails/config/common/nano/go.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,42 @@
 | 
			
		||||
## Here is an example for Go.
 | 
			
		||||
 | 
			
		||||
syntax "go" "\.go$"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# Set up a formatter since spelling is probably useless...
 | 
			
		||||
#formatter gofmt -w
 | 
			
		||||
 | 
			
		||||
# Types.
 | 
			
		||||
color green "\<(bool|u?int(8|16|32|64)?|float(32|64)|complex(64|128)|byte|rune|uintptr|string|error)\>"
 | 
			
		||||
color green "\<((<-[[:space:]]*)chan|chan[[:space:]]*<-|const|func|interface|map|struct|type|var)\>"
 | 
			
		||||
 | 
			
		||||
# Predefined functions.
 | 
			
		||||
color blue "\<(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)\>"
 | 
			
		||||
 | 
			
		||||
# Control structures.
 | 
			
		||||
color brightyellow "\<(case|default|defer|else|for|go|if|range|select|switch)\>"
 | 
			
		||||
 | 
			
		||||
# Control flow.
 | 
			
		||||
color magenta "\<(break|continue|fallthrough|goto|return)\>"
 | 
			
		||||
 | 
			
		||||
# Declarations.
 | 
			
		||||
color brightcyan "\<(package|import)\>"
 | 
			
		||||
color brightcyan "//[[:space:]]*\+build[[:space:]]+(([a-zA-Z_0-9]+[[:space:]]*)+,[[:space:]]*)*[a-zA-Z_0-9]+"
 | 
			
		||||
 | 
			
		||||
# Literals.
 | 
			
		||||
color red "\<0([0-7]*|[xX][0-9a-fA-F]+)\>"
 | 
			
		||||
color red "(\<0+|\B)\.[0-9]+([Ee][+-]?[0-9]+)?i?\>"
 | 
			
		||||
color red "\<[1-9][0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?i?\>"
 | 
			
		||||
 | 
			
		||||
# Strings and characters; slightly fuzzy.
 | 
			
		||||
color red "\<(true|false|nil|iota|_)\>"
 | 
			
		||||
color red "'(\\.|[^'])+'"
 | 
			
		||||
color red ""(\\.|[^"])*""
 | 
			
		||||
color red start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										26
									
								
								jails/config/common/nano/groff.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								jails/config/common/nano/groff.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
## Here is an example for groff.
 | 
			
		||||
 | 
			
		||||
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
 | 
			
		||||
comment ".\""
 | 
			
		||||
 | 
			
		||||
# The argument of .ds or .nr
 | 
			
		||||
color cyan "^\.(ds|nr) [^[:space:]]*"
 | 
			
		||||
# Single-character escapes
 | 
			
		||||
color brightmagenta "\\."
 | 
			
		||||
# The argument of \f or \s in the same color
 | 
			
		||||
color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
 | 
			
		||||
# Newlines
 | 
			
		||||
color cyan "(\\|\\\\)n(.|\(..)"
 | 
			
		||||
color cyan start="(\\|\\\\)n\[" end="]"
 | 
			
		||||
# Requests
 | 
			
		||||
color brightgreen "^\.[[:space:]]*[^[:space:]]*"
 | 
			
		||||
# Comments
 | 
			
		||||
color yellow "^\.\\".*$"
 | 
			
		||||
# Strings
 | 
			
		||||
color green "(\\|\\\\)\*(.|\(..)"
 | 
			
		||||
color green start="(\\|\\\\)\*\[" end="]"
 | 
			
		||||
# Characters
 | 
			
		||||
color brightred "\\\(.."
 | 
			
		||||
color brightred start="\\\[" end="]"
 | 
			
		||||
# Macro arguments
 | 
			
		||||
color brightcyan "\\\\\$[1-9]"
 | 
			
		||||
							
								
								
									
										24
									
								
								jails/config/common/nano/guile.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								jails/config/common/nano/guile.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
## Here is an example for Guile Scheme.
 | 
			
		||||
 | 
			
		||||
syntax "guile" "\.scm$"
 | 
			
		||||
header "^#!.*guile"
 | 
			
		||||
comment ";"
 | 
			
		||||
 | 
			
		||||
# Basic scheme functions
 | 
			
		||||
color green "\<(do|if|lambda|let(rec)?|map|unless|when)\>"
 | 
			
		||||
# Defining things
 | 
			
		||||
color brightcyan "\<define(-macro|-module|-public|-syntax)?\>"
 | 
			
		||||
# Quoted symbols
 | 
			
		||||
color brightyellow "'\<(\w|-)+\>"
 | 
			
		||||
# Chars
 | 
			
		||||
color brightmagenta "#\\."
 | 
			
		||||
color brightmagenta "#\\\w+\>"
 | 
			
		||||
# Booleans
 | 
			
		||||
color brightred "(#t|#f)\>"
 | 
			
		||||
# Keywords
 | 
			
		||||
color blue "#?:(\w|[?-])+"
 | 
			
		||||
# Strings
 | 
			
		||||
color yellow start="^[[:blank:]]+\"" end="[^\]\""
 | 
			
		||||
color yellow ""(\\.|[^"])*""
 | 
			
		||||
# Comments
 | 
			
		||||
color cyan "(^|[[:space:]]);.*$"
 | 
			
		||||
							
								
								
									
										28
									
								
								jails/config/common/nano/html.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								jails/config/common/nano/html.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
## Here is an example for HTML.
 | 
			
		||||
 | 
			
		||||
syntax "html" "\.html?$"
 | 
			
		||||
magic "HTML document"
 | 
			
		||||
comment "<!--|-->"
 | 
			
		||||
 | 
			
		||||
# Tags:
 | 
			
		||||
color cyan "<[[:alpha:]/!?][^>]*>"
 | 
			
		||||
# Bold, italic, and underlined:
 | 
			
		||||
color brightmagenta "</?[biu]>"
 | 
			
		||||
 | 
			
		||||
# Named character references:
 | 
			
		||||
color red "&[^;[:space:]]*;"
 | 
			
		||||
# Strings:
 | 
			
		||||
color green ""(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Attributes:
 | 
			
		||||
color red "(abbr|accept(-charset)?|accesskey|action|alink|align|alt|archive|axis|background|bgcolor|border)="
 | 
			
		||||
color red "(cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)="
 | 
			
		||||
color red "(content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|disabled|enctype)="
 | 
			
		||||
color red "(for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)="
 | 
			
		||||
color red "(label|lang|link|longdesc|margin(height|width)|maxlength|media|method|multiple)="
 | 
			
		||||
color red "(name|nohref|noresize|noshade|object|onclick|onfocus|onload|onmouseover|profile|readonly|rel|rev)="
 | 
			
		||||
color red "(rows(pan)?|rules|scheme|scope|scrolling|selected|shape|size|span|src|standby|start|style|summary)="
 | 
			
		||||
color red "(tabindex|target|text|title|type|usemap|valign|value(type)?|vlink|vspace|width|xmlns|xml:space)="
 | 
			
		||||
 | 
			
		||||
# Comments:
 | 
			
		||||
color yellow start="<!--" end="-->"
 | 
			
		||||
							
								
								
									
										16
									
								
								jails/config/common/nano/java.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								jails/config/common/nano/java.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
## Here is an example for Java.
 | 
			
		||||
 | 
			
		||||
syntax "java" "\.java$"
 | 
			
		||||
magic "Java "
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
 | 
			
		||||
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
 | 
			
		||||
color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native)\>"
 | 
			
		||||
color cyan "\<(package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
 | 
			
		||||
color red ""[^"]*""
 | 
			
		||||
color yellow "\<(true|false|null)\>"
 | 
			
		||||
color blue "//.*"
 | 
			
		||||
color blue start="/\*" end="\*/"
 | 
			
		||||
color brightblue start="/\*\*" end="\*/"
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										24
									
								
								jails/config/common/nano/javascript.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								jails/config/common/nano/javascript.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
## Syntax highlighting for Javascript.
 | 
			
		||||
 | 
			
		||||
syntax "javascript" "\.js$"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# Declarational stuff.
 | 
			
		||||
color green "\<(async|class|const|extends|function|let|this|typeof|var|void)\>"
 | 
			
		||||
# Flow control and special keywords.
 | 
			
		||||
color brightyellow "\<(do|while|if|else|switch|case|default|for|each|in|of|with)\>"
 | 
			
		||||
color brightyellow "\<(await|export|import|throw|try|catch|finally|new|delete)\>"
 | 
			
		||||
# "Exit" points.
 | 
			
		||||
color magenta "\<(break|continue|return|yield)\>"
 | 
			
		||||
 | 
			
		||||
# Octal/decimal and hexadecimal numbers.
 | 
			
		||||
color cyan "\<[0-9]+\>" "\<0x[0-9A-Fa-f]+\>"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "(^|[[:space:]])//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										34
									
								
								jails/config/common/nano/json.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								jails/config/common/nano/json.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,34 @@
 | 
			
		||||
## Syntax highlighting for JSON files.
 | 
			
		||||
 | 
			
		||||
# See:  http://www.json.org/
 | 
			
		||||
# Original author:  Aapo Rantalainen
 | 
			
		||||
# License:  GPLv3 or newer
 | 
			
		||||
 | 
			
		||||
syntax "json" "\.json$"
 | 
			
		||||
# No comments are permitted in JSON.
 | 
			
		||||
comment ""
 | 
			
		||||
 | 
			
		||||
# Numbers (used as value).
 | 
			
		||||
color green ":[[:space:]]*\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee]?[-+]?[0-9]+)?"
 | 
			
		||||
# Values (well, any string).
 | 
			
		||||
color brightmagenta "\".+\""
 | 
			
		||||
# Hex numbers (used as value).
 | 
			
		||||
color green ":[[:space:]]*\"#[0-9abcdefABCDEF]+\""
 | 
			
		||||
# Escapes.
 | 
			
		||||
color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})"
 | 
			
		||||
# Special words.
 | 
			
		||||
color green "(true|false|null)"
 | 
			
		||||
 | 
			
		||||
# Names (very unlikely to contain a quote).
 | 
			
		||||
color brightblue "\"[^"]+\"[[:space:]]*:"
 | 
			
		||||
 | 
			
		||||
# Brackets, braces, and separators.
 | 
			
		||||
color brightblue "\[" "\]"
 | 
			
		||||
color brightred "\{" "\}"
 | 
			
		||||
color brightred "," ":"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "(^|[[:space:]]+)(//|#).*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										57
									
								
								jails/config/common/nano/lua.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								jails/config/common/nano/lua.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,57 @@
 | 
			
		||||
## Syntax highlighting for Lua.
 | 
			
		||||
#
 | 
			
		||||
## Original author:  Matthew Wild <mwild1 (at) gmail.com>
 | 
			
		||||
## License: GPL 3 or later
 | 
			
		||||
 | 
			
		||||
syntax "lua" "\.lua$"
 | 
			
		||||
magic "Lua script"
 | 
			
		||||
comment "--"
 | 
			
		||||
 | 
			
		||||
color brightwhite "\[\[.*\]\]"
 | 
			
		||||
 | 
			
		||||
# Operators
 | 
			
		||||
color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>"
 | 
			
		||||
 | 
			
		||||
# Statements
 | 
			
		||||
color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return|break)\>"
 | 
			
		||||
 | 
			
		||||
# Keywords
 | 
			
		||||
color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\("
 | 
			
		||||
 | 
			
		||||
# Standard library
 | 
			
		||||
color brightyellow "\<coroutine\.(create|isyieldable|resume|running|status|wrap|yield)\>"
 | 
			
		||||
color brightyellow "\<debug\.(debug|(get|set)(fenv|hook|local|metatable|(up|user)value)|getinfo|getregistry|traceback|upvalue(id|join))\>"
 | 
			
		||||
color brightyellow "\<io\.(close|flush|input|lines|output|p?open|read|tmpfile|type|write|std(in|out|err))\>"
 | 
			
		||||
color brightyellow "\<math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log)\>"
 | 
			
		||||
color brightyellow "\<math\.((max|min)(integer)?|modf?|pi|pow|rad|random(seed)?|sinh?|sqrt|tan|tointeger|type|ult)\>"
 | 
			
		||||
color brightyellow "\<os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>"
 | 
			
		||||
color brightyellow "\<package\.(config|cpath|loaded|loadlib|path|preload|searchers|searchpath|seeall)\>"
 | 
			
		||||
color brightyellow "\<string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)\>"
 | 
			
		||||
color brightyellow "\<table\.(concat|insert|maxn|move|pack|remove|sort|unpack)\>"
 | 
			
		||||
color brightyellow "\<utf8\.(char|charpattern|codepoint|codes|len|offset)\>"
 | 
			
		||||
 | 
			
		||||
# File handle methods
 | 
			
		||||
color brightyellow ":(close|flush|lines|read|seek|setvbuf|write)\>"
 | 
			
		||||
 | 
			
		||||
# External files
 | 
			
		||||
color brightgreen "\<(dofile|require)\>"
 | 
			
		||||
 | 
			
		||||
# Special words
 | 
			
		||||
color brightmagenta "\<(false|nil|true)\>"
 | 
			
		||||
 | 
			
		||||
# Decimal and hexadecimal numbers
 | 
			
		||||
color red "\<[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)?\>"
 | 
			
		||||
icolor red "\<0x[0-9a-f]+(\.[0-9a-f]*)?(p[+-]?[0-9]+)?\>"
 | 
			
		||||
 | 
			
		||||
# Brackets
 | 
			
		||||
color brightmagenta "\(|\)|\[|\]|\{|\}"
 | 
			
		||||
 | 
			
		||||
# Shebang
 | 
			
		||||
color brightcyan "^#!.*"
 | 
			
		||||
 | 
			
		||||
# Simple comments and multiline comments
 | 
			
		||||
color green "--.*"
 | 
			
		||||
color green start="--\[\[" end="\]\]"
 | 
			
		||||
 | 
			
		||||
# Strings
 | 
			
		||||
color red ""(\\.|[^"\])*"|'(\\.|[^'\])*'"
 | 
			
		||||
							
								
								
									
										14
									
								
								jails/config/common/nano/makefile.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								jails/config/common/nano/makefile.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
## Here is an example for Makefiles.
 | 
			
		||||
 | 
			
		||||
syntax "makefile" "Makefile[^/]*$" "\.(make|mk)$"
 | 
			
		||||
magic "makefile script"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
color red "[:=]"
 | 
			
		||||
color magenta "\<(if|ifeq|else|endif)\>"
 | 
			
		||||
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
 | 
			
		||||
color brightblue "^[^ 	]+:"
 | 
			
		||||
color green "(^|[[:space:]]+)#.*"
 | 
			
		||||
 | 
			
		||||
## Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										18
									
								
								jails/config/common/nano/man.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								jails/config/common/nano/man.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
## Here is an example for manpages.
 | 
			
		||||
 | 
			
		||||
syntax "man" "\.[1-9]x?$"
 | 
			
		||||
magic "troff or preprocessor input"
 | 
			
		||||
comment ".\""
 | 
			
		||||
 | 
			
		||||
color green "\.(SH|SS|TH) .*$"
 | 
			
		||||
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"
 | 
			
		||||
color brightred "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*$"
 | 
			
		||||
color brightblue "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "\.([LP]?P)$"
 | 
			
		||||
color magenta "\\f[BIPR]"
 | 
			
		||||
color yellow "\.(br|DT|RS|RE|PD)"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "\.?\\\".*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										10
									
								
								jails/config/common/nano/mgp.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								jails/config/common/nano/mgp.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
## Here is an example for Magicpoint presentations.
 | 
			
		||||
 | 
			
		||||
syntax "mgp" "\.mgp$"
 | 
			
		||||
header "^%include.*"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
icolor green "^%[a-z].*$"
 | 
			
		||||
color cyan "(^|[[:space:]])#.*$"
 | 
			
		||||
color cyan "(^|[[:space:]])%%.*$"
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										9
									
								
								jails/config/common/nano/mutt.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								jails/config/common/nano/mutt.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
## Here is an example for quoted emails (under e.g. mutt).
 | 
			
		||||
 | 
			
		||||
syntax "mutt"
 | 
			
		||||
 | 
			
		||||
# Quoted lines.
 | 
			
		||||
color green "^>.*"
 | 
			
		||||
 | 
			
		||||
# Signatures, even quoted ones.
 | 
			
		||||
color yellow start="^>* ?-- $" end="^>* ?$"
 | 
			
		||||
							
								
								
									
										11
									
								
								jails/config/common/nano/nanohelp.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								jails/config/common/nano/nanohelp.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
## This is meant for highlighting key combos in a nano help text.
 | 
			
		||||
 | 
			
		||||
# It should not apply to any normal file, so no fileregex.
 | 
			
		||||
syntax "nanohelp"
 | 
			
		||||
 | 
			
		||||
# Key combos:
 | 
			
		||||
color cyan "\^[]4-8A-Z^\_◀▶▲▼]"  "[◀▶▲▼]"  "(\^|M-)Space"  "\<M-."  "\<F1?[0-9]"
 | 
			
		||||
color cyan "\<(Tab|Sh-Tab|Enter|Ins|Del|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
 | 
			
		||||
 | 
			
		||||
# Quoted indicators:
 | 
			
		||||
color brightred "'(\^|M-)'"
 | 
			
		||||
							
								
								
									
										31
									
								
								jails/config/common/nano/nanorc.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								jails/config/common/nano/nanorc.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
			
		||||
## Here is an example for nanorc files.
 | 
			
		||||
 | 
			
		||||
syntax "nanorc" "\.?nanorc$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Possible errors and parameters
 | 
			
		||||
icolor brightred "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|linter|formatter|i?color|extendsyntax).*$"
 | 
			
		||||
 | 
			
		||||
# Keywords
 | 
			
		||||
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|atblanks|autoindent|backup|backwards|boldtext|casesensitive|constantshow|cutfromcursor|fill[[:space:]]+-?[[:digit:]]+|historylog|linenumbers|locking|morespace|mouse|multibuffer|noconvert|nohelp|nopauses|nonewlines|nowrap|positionlog|preserve|quickblank|quiet|rebinddelete|rebindkeypad|regexp|showcursor|smarthome|smooth|softwrap|suspend|tabsize[[:space:]]+[1-9][0-9]*|tabstospaces|tempfile|trimblanks|unix|view|wordbounds)\>"
 | 
			
		||||
icolor yellow "^[[:space:]]*set[[:space:]]+((function|key|number|selected|status|title)color)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
 | 
			
		||||
icolor brightgreen "^[[:space:]]*set[[:space:]]+(backupdir|brackets|functioncolor|keycolor|matchbrackets|numbercolor|operatingdir|punct|quotestr|selectedcolor|speller|statuscolor|titlecolor|whitespace|wordchars)[[:space:]]+"
 | 
			
		||||
icolor brightgreen "^[[:space:]]*bind[[:space:]]+((\^([[:alpha:]]|[]0-9\^_]|Space)|M-([[:alpha:]]|[]!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-6])|Ins|Del)[[:space:]]+[[:alpha:]]+[[:space:]]+(all|main|search|replace(with)?|gotoline|writeout|insert|ext(ernal)?cmd|help|spell|linter|browser|whereisfile|gotodir)([[:space:]]+#|[[:space:]]*$)"
 | 
			
		||||
icolor brightgreen "^[[:space:]]*unbind[[:space:]]+((\^([[:alpha:]]|[]0-9\^_]|Space)|M-([[:alpha:]]|[]!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-6])|Ins|Del)[[:space:]]+(all|main|search|replace(with)?|gotoline|writeout|insert|ext(ernal)?cmd|help|spell|linter|browser|whereisfile|gotodir)([[:space:]]+#|[[:space:]]*$)"
 | 
			
		||||
icolor brightgreen "^[[:space:]]*extendsyntax[[:space:]]+[[:alpha:]]+[[:space:]]+(i?color|header|magic|comment|linter|formatter)[[:space:]]+.*$"
 | 
			
		||||
icolor brightgreen "^[[:space:]]*(linter|formatter)[[:space:]]+[[:alpha:]]+"
 | 
			
		||||
icolor green "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|linter|formatter|extendsyntax)\>"
 | 
			
		||||
 | 
			
		||||
# Strings
 | 
			
		||||
color brightmagenta "".+"([[:space:]]|$)"
 | 
			
		||||
 | 
			
		||||
# Colors
 | 
			
		||||
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
 | 
			
		||||
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
 | 
			
		||||
 | 
			
		||||
# Comments
 | 
			
		||||
color brightblue "(^|[[:space:]]+)#.*$"
 | 
			
		||||
color cyan "^[[:space:]]*##.*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										30
									
								
								jails/config/common/nano/nftables.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								jails/config/common/nano/nftables.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
## Here is an example for nftables.
 | 
			
		||||
 | 
			
		||||
syntax "nftables" "\.(nft|nftables)$"
 | 
			
		||||
header "^#!.*(nft|nftables)"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Objects and operations
 | 
			
		||||
color green "\<(chain|hook|policy|priority|ruleset|set|table|type|v?map)\>"
 | 
			
		||||
color green "\<(define|include)\>"
 | 
			
		||||
color red "\<(add|delete|flush|insert|remove|replace)\>"
 | 
			
		||||
 | 
			
		||||
# Families
 | 
			
		||||
color yellow "\<(arp|bridge|inet|ingress|ip6?|netdev)\>"
 | 
			
		||||
 | 
			
		||||
# Terminal statements
 | 
			
		||||
color red "\<(drop|reject)\>"
 | 
			
		||||
color brightblue "\<(accept|continue|(d|s)nat|goto|jump|masquerade|return)\>"
 | 
			
		||||
 | 
			
		||||
# Comments
 | 
			
		||||
color cyan "(^|[[:space:]])#.*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
 | 
			
		||||
# Strings and others
 | 
			
		||||
color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
 | 
			
		||||
color green "[{}():;|`$<>!=&\\]" "(\]|\[)"
 | 
			
		||||
 | 
			
		||||
# Basic variable names
 | 
			
		||||
color brightred "(\$|@)[[:alpha:]_-][[:alnum:]_.-]*"
 | 
			
		||||
							
								
								
									
										42
									
								
								jails/config/common/nano/objc.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								jails/config/common/nano/objc.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,42 @@
 | 
			
		||||
## Here is an example for C/C++/Obj-C.
 | 
			
		||||
 | 
			
		||||
syntax "m" "\.m$"
 | 
			
		||||
magic "Objective-C source"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# Stuffs,
 | 
			
		||||
color brightwhite "\<[A-Z_][0-9A-Z_]+\>"
 | 
			
		||||
color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
 | 
			
		||||
color green "\<[[:alpha:]_][[:alnum:]_]*_t\>"
 | 
			
		||||
color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
 | 
			
		||||
color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"
 | 
			
		||||
color brightgreen "\<(try|throw|catch|operator|new|delete)\>"
 | 
			
		||||
color brightgreen "\<(goto|continue|break|return)\>"
 | 
			
		||||
color brightgreen "@(encode|end|implementation|interface)|selector)\>"
 | 
			
		||||
 | 
			
		||||
# GCC builtins.
 | 
			
		||||
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
 | 
			
		||||
 | 
			
		||||
# Selector/method.
 | 
			
		||||
color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]"
 | 
			
		||||
color white ":[[:alnum:]]*"
 | 
			
		||||
color magenta "[[:alnum:]]*:"
 | 
			
		||||
color white "\[[^][:space:]]*\]"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
 | 
			
		||||
color brightblack "<[^= 	]*>" ""(\\.|[^"])*""
 | 
			
		||||
color brightblue "@"(\\.|[^"])*""
 | 
			
		||||
# Multiline strings.  This regex is VERY resource intensive,
 | 
			
		||||
# and sometimes colours things that shouldn't be coloured.
 | 
			
		||||
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Preprocessor commands.
 | 
			
		||||
color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color yellow "//.*"
 | 
			
		||||
color yellow start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.                                                                                                       
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										30
									
								
								jails/config/common/nano/ocaml.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								jails/config/common/nano/ocaml.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
## Syntax highlighting for OCaml.
 | 
			
		||||
 | 
			
		||||
syntax "ocaml" "\.mli?$"
 | 
			
		||||
magic "OCaml"
 | 
			
		||||
comment "(*|*)"
 | 
			
		||||
 | 
			
		||||
# Uid:
 | 
			
		||||
color red "\<[A-Z][0-9a-z_]{2,}\>"
 | 
			
		||||
# Declarations:
 | 
			
		||||
color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
 | 
			
		||||
# Structure items:
 | 
			
		||||
color red "\<(type|open|class|module|exception|external)\>"
 | 
			
		||||
# Patterns:
 | 
			
		||||
color blue "\<(fun|function|functor|match|try|with)\>"
 | 
			
		||||
# Pattern modifiers:
 | 
			
		||||
color yellow "\<(as|when|of)\>"
 | 
			
		||||
# Conditions:
 | 
			
		||||
color cyan "\<(if|then|else)\>"
 | 
			
		||||
# Blocks:
 | 
			
		||||
color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
 | 
			
		||||
# Constants:
 | 
			
		||||
color green "\<(true|false)\>"
 | 
			
		||||
# Modules/classes:
 | 
			
		||||
color green "\<(include|inherit|initializer)\>"
 | 
			
		||||
# Expression modifiers:
 | 
			
		||||
color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
 | 
			
		||||
# Comments:
 | 
			
		||||
color white start="\(\*" end="\*\)"
 | 
			
		||||
# Strings: (no multiline handling yet)
 | 
			
		||||
color brightblack ""[^\"]*""
 | 
			
		||||
							
								
								
									
										26
									
								
								jails/config/common/nano/patch.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								jails/config/common/nano/patch.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
## Here is an example for patch files.
 | 
			
		||||
 | 
			
		||||
syntax "patch" "\.(patch|diff|debdiff)$"
 | 
			
		||||
magic "diff output"
 | 
			
		||||
# There is no official support for comments in patch files.
 | 
			
		||||
comment ""
 | 
			
		||||
 | 
			
		||||
# Added lines.
 | 
			
		||||
color brightgreen "^\+.*"
 | 
			
		||||
# Show trailing whitespace only on added lines.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
# Context lines.
 | 
			
		||||
color brightblue "^ .*"
 | 
			
		||||
# Deleted lines.
 | 
			
		||||
color brightred "^-.*"
 | 
			
		||||
 | 
			
		||||
# Header lines.
 | 
			
		||||
color magenta "^(Index:|diff)[[:blank:]].*"
 | 
			
		||||
# File names and dates.
 | 
			
		||||
color red "^---.*"
 | 
			
		||||
color green "^\+\+\+.*"
 | 
			
		||||
# Line numbers.
 | 
			
		||||
color brightyellow "^@@.*"
 | 
			
		||||
 | 
			
		||||
# Statistics.
 | 
			
		||||
color cyan start="^---$" end="^$"
 | 
			
		||||
							
								
								
									
										15
									
								
								jails/config/common/nano/perl.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								jails/config/common/nano/perl.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
## Here is an example for Perl.
 | 
			
		||||
 | 
			
		||||
syntax "perl" "\.p[lm]$"
 | 
			
		||||
header "^#!.*perl[-0-9._]*"
 | 
			
		||||
magic "Perl script"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
 | 
			
		||||
color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"
 | 
			
		||||
icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)"
 | 
			
		||||
color yellow "".*"|qq\|.*\|"
 | 
			
		||||
color white "[sm]/.*/"
 | 
			
		||||
color white start="(^use| = new)" end=";"
 | 
			
		||||
color green "#.*"
 | 
			
		||||
color yellow start="<< 'STOP'" end="STOP"
 | 
			
		||||
							
								
								
									
										35
									
								
								jails/config/common/nano/php.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								jails/config/common/nano/php.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,35 @@
 | 
			
		||||
## Here is an example for PHP.
 | 
			
		||||
 | 
			
		||||
syntax "php" "\.ph(p[23457s~]?|tml)$"
 | 
			
		||||
magic "PHP script"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# PHP markings.
 | 
			
		||||
color brightgreen "(<\?(php)?|\?>)"
 | 
			
		||||
 | 
			
		||||
# Function names.
 | 
			
		||||
color white "\<[A-Za-z_][A-Za-z_0-9]*\("
 | 
			
		||||
# Variable names.
 | 
			
		||||
color cyan "\$[A-Za-z_][A-Za-z_0-9]*"
 | 
			
		||||
 | 
			
		||||
# Types.
 | 
			
		||||
color green "\<(array|bool|callable|const|float|global|int|object|string|var)\>"
 | 
			
		||||
 | 
			
		||||
# Directives and structure.
 | 
			
		||||
color brightcyan "\<(abstract|as|class|clone|(end)?declare|extends|function|implements|include(_once)?|inst(ance|ead)of|interface|namespace|new|private|protected|public|require(_once)?|static|trait|use|yield)\>"
 | 
			
		||||
color brightcyan "\<(case|catch|default|do|echo|else(if)?|end(for(each)?|if|switch|while)|final(ly)?|for(each)?|if|print|switch|throw|try|while)\>"
 | 
			
		||||
# Operators.
 | 
			
		||||
color brightcyan "\<(and|or|xor)\>"
 | 
			
		||||
 | 
			
		||||
# Control flow.
 | 
			
		||||
color magenta "\<(break|continue|goto|return)\>"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightyellow ""(\.|[^"])*"" "'(\.|[^'])*'"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "(^|[[:space:]]+)//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										29
									
								
								jails/config/common/nano/po.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								jails/config/common/nano/po.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
## Colouring for PO files.
 | 
			
		||||
 | 
			
		||||
syntax "po" "\.pot?$"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color green "^#.*$"
 | 
			
		||||
color yellow "Copyright|\(C\)"
 | 
			
		||||
# Header fields.
 | 
			
		||||
color brightred "^\"X-Bugs:.*\"$"
 | 
			
		||||
color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language(\-Team)?|X-Bugs|X-Generator|Plural\-Forms)\>"
 | 
			
		||||
color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>"
 | 
			
		||||
# Encodings and numbers.
 | 
			
		||||
color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
 | 
			
		||||
color yellow "[0-9]|pre[0-9]|[0-9]bit"
 | 
			
		||||
# Msgids.
 | 
			
		||||
color brightblue "^(msgid|msgid_plural|msgstr)\>"
 | 
			
		||||
# Tags.
 | 
			
		||||
color red " fuzzy(,|$)"
 | 
			
		||||
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
 | 
			
		||||
# Format specifiers.
 | 
			
		||||
color brightmagenta "%([1-9]\$)?[a-z]*"
 | 
			
		||||
# Quotes and newlines.
 | 
			
		||||
color yellow "\""
 | 
			
		||||
color cyan "\\n"
 | 
			
		||||
# Reminders.
 | 
			
		||||
color brightwhite,yellow "(FIXME|TODO|XXX)"
 | 
			
		||||
# Obsolete strings.
 | 
			
		||||
color red "#~.*$"
 | 
			
		||||
							
								
								
									
										75
									
								
								jails/config/common/nano/postgresql.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								jails/config/common/nano/postgresql.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,75 @@
 | 
			
		||||
## Here is an example for PostgreSQL.
 | 
			
		||||
 | 
			
		||||
syntax "sql" "\.sql[2345s~]?$"
 | 
			
		||||
comment "-- "
 | 
			
		||||
 | 
			
		||||
# Functions.
 | 
			
		||||
color white "\<[a-z_]*\("
 | 
			
		||||
 | 
			
		||||
# Types.
 | 
			
		||||
color green "\<(int2|smallint|int4|int|integer|int8|bigint|decimal|numeric|real|double precision|(small|big)?serial)\>"
 | 
			
		||||
color green "\<(bit( varying)?|boolean|bytea|enum|money|tsvector|uuid)\>"
 | 
			
		||||
color green "\<(char|varchar|character( varying)?|text)\>"
 | 
			
		||||
color green "\<(date|interval|time(stamp)?( with time zone| without time zone)?)\>"
 | 
			
		||||
color green "\<(point|line|lseg|path|box|polygon|circle)\>"
 | 
			
		||||
color green "\<(cidr|inet|macaddr)\>"
 | 
			
		||||
color green "\<(daterange|int4range|int8range|numrange|tsrange|tstzrange)\>"
 | 
			
		||||
 | 
			
		||||
# Structure.
 | 
			
		||||
color brightyellow "\<(CASE|CLASS|DEFAULT|DO|ELSE|ELSEIF|FOR|FOREACH|FUNCTION|IF|IS NULL)\>"
 | 
			
		||||
color brightyellow "\<(NEW|PRIVATE|PUBLIC|RETURN|RETURNS|SETOF|SWITCH|THEN|WHEN|WHILE)>"
 | 
			
		||||
 | 
			
		||||
# Control flow.
 | 
			
		||||
color magenta "\<(EXCEPTION|NOTICE|RAISE|RETURN)\>"
 | 
			
		||||
 | 
			
		||||
# SQL keywords.
 | 
			
		||||
color blue "\<(ABORT|AGGREGATE|ALTER|ANALYZE|AND|AS|AUTHORIZATION|BEGIN|CAST|CHECKPOINT|CLASS|CLOSE)\>"
 | 
			
		||||
color blue "\<(CLUSTER|COLLATION|COMMENT|COMMIT|CONFIGURATION|CONSTRAINTS|CONVERSION|COPY|CREATE)\>"
 | 
			
		||||
color blue "\<(DATA|DATABASE|DEALLOCATE|DECLARE|DEFAULT|DELETE|DICTIONARY|DISCARD|DO|DOMAIN|DROP)\>"
 | 
			
		||||
color blue "\<(END|EVENT|EXECUTE|EXPLAIN|EXTENSION|FAMILY|FETCH|FOREIGN|FROM|FUNCTION)\>"
 | 
			
		||||
color blue "\<(GRANT|GROUP|IF NOT EXISTS|IMMUTABLE|INDEX|INSERT|INTO|LABEL|LANGUAGE|LARGE|LOAD|LOCK)\>"
 | 
			
		||||
color blue "\<(MAPPING FOR|MATERIALIZED|MOVE|NOTIFY|OBJECT|OPERATOR|OPTIONS|OWNED|OWNER)\>"
 | 
			
		||||
color blue "\<(PARSER|PREPARED?|PRIVILEGES|REASSIGN|REFRESH|RELEASE|RESET|REVOKE|ROLE|ROLLBACK|RULE)\>"
 | 
			
		||||
color blue "\<(SAVEPOINT|SCHEMA|SEARCH|SECURITY|SELECT|SEQUENCE|SERVER|SESSION|SET|SHOW|SPACE|START|SYSTEM)\>"
 | 
			
		||||
color blue "\<(TABLE|TEXT|TO|TRANSACTION|TYPE|UPDATE|USER|VACUUM|VALUES|VIEW|WHERE|WITH|WRAPPER)\>"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
 | 
			
		||||
# Regular expressions.
 | 
			
		||||
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
 | 
			
		||||
 | 
			
		||||
# Shell command expansion is in `backticks` or like %x{this}.  These are
 | 
			
		||||
# "double-quotish" (to use a perlism).
 | 
			
		||||
color brightblue "`[^`]*`" "%x\{[^}]*\}"
 | 
			
		||||
 | 
			
		||||
# Strings, double-quoted.
 | 
			
		||||
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>"
 | 
			
		||||
color green "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
 | 
			
		||||
 | 
			
		||||
# Expression substitution.  These go inside double-quoted strings,
 | 
			
		||||
# "like #{this}".
 | 
			
		||||
color brightgreen "#\{[^}]*\}"
 | 
			
		||||
 | 
			
		||||
# Strings, single-quoted.
 | 
			
		||||
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>"
 | 
			
		||||
color green "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color red "#[^{].*$" "#$"
 | 
			
		||||
color red "--[^{].*$" "#$"
 | 
			
		||||
color red "##[^{].*$" "##$"
 | 
			
		||||
color brightblue "//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# PostgreSQL markings.
 | 
			
		||||
color red "(--)"
 | 
			
		||||
 | 
			
		||||
# PostgreSQL default schemas.
 | 
			
		||||
color brightred "(pg_catalog|public)"
 | 
			
		||||
 | 
			
		||||
# PostgreSQL PLs.
 | 
			
		||||
color brightblue "(pljava|plperlu?|plpgsql|plpy|plpythonu?|plr|plruby|plsh|pltcl|plscheme)"
 | 
			
		||||
							
								
								
									
										16
									
								
								jails/config/common/nano/pov.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								jails/config/common/nano/pov.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
## Here is an example for POV-Ray.
 | 
			
		||||
 | 
			
		||||
syntax "pov" "\.(pov|POV|povray|POVRAY)$"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
color brightcyan "^[[:space:]]*#[[:space:]]*(declare)"
 | 
			
		||||
color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>"
 | 
			
		||||
color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>"
 | 
			
		||||
color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>"
 | 
			
		||||
color brightred "\<(background|camera|fog|light_source|object|texture)\>"
 | 
			
		||||
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
 | 
			
		||||
color brightmagenta "\<(union|group|subgroup)\>"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightblue "//.*"
 | 
			
		||||
color brightblue start="/\*" end="\*/"
 | 
			
		||||
							
								
								
									
										33
									
								
								jails/config/common/nano/python.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								jails/config/common/nano/python.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
## Here is an example for Python.
 | 
			
		||||
 | 
			
		||||
syntax "python" "\.py$"
 | 
			
		||||
header "^#!.*python[-0-9._]*"
 | 
			
		||||
magic "Python script"
 | 
			
		||||
linter pyflakes
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Function definitions.
 | 
			
		||||
icolor brightblue "def [0-9A-Z_]+"
 | 
			
		||||
# Keywords.
 | 
			
		||||
color brightcyan "\<(and|as|assert|async|await|break|class|continue)\>"
 | 
			
		||||
color brightcyan "\<(def|del|elif|else|except|exec|finally|for|from)\>"
 | 
			
		||||
color brightcyan "\<(global|if|import|in|is|lambda|nonlocal|not|or)\>"
 | 
			
		||||
color brightcyan "\<(pass|print|raise|return|try|while|with|yield)\>"
 | 
			
		||||
 | 
			
		||||
# Single-quoted strings.
 | 
			
		||||
color brightgreen "'([^'\]|\\.)+'"
 | 
			
		||||
color brightgreen ""([^"\]|\\.)+""
 | 
			
		||||
# Comments.
 | 
			
		||||
color brightred "(^|[[:blank:]])#.*$"
 | 
			
		||||
# Triple-quoted strings.
 | 
			
		||||
color brightgreen    start="'''([^'),]|$)" end="(^|[^(\])'''"
 | 
			
		||||
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(\])\"\"\""
 | 
			
		||||
 | 
			
		||||
# Special values.
 | 
			
		||||
color brightmagenta "\<(False|None|True)\>"
 | 
			
		||||
 | 
			
		||||
# Reminders.
 | 
			
		||||
color brightwhite,yellow "(FIXME|TODO|XXX)"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										36
									
								
								jails/config/common/nano/ruby.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								jails/config/common/nano/ruby.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
## Here is an example for Ruby.
 | 
			
		||||
 | 
			
		||||
syntax "ruby" "\.rb$"
 | 
			
		||||
header "^#!.*ruby[-0-9._]*"
 | 
			
		||||
magic "Ruby script"
 | 
			
		||||
linter ruby -w -c
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Reserved words.
 | 
			
		||||
color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module)\>"
 | 
			
		||||
color yellow "\<(next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
 | 
			
		||||
# Constants.
 | 
			
		||||
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
 | 
			
		||||
# Ruby "symbols".
 | 
			
		||||
icolor magenta "([ 	]|^):[0-9A-Z_]+\>"
 | 
			
		||||
# Some unique things we want to stand out.
 | 
			
		||||
color brightyellow "\<(__FILE__|__LINE__)\>"
 | 
			
		||||
# Regular expressions.
 | 
			
		||||
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
 | 
			
		||||
# Shell command expansion is in `backticks` or like %x{this}.  These are
 | 
			
		||||
# "double-quotish" (to use a perlism).
 | 
			
		||||
color brightblue "`[^`]*`" "%x\{[^}]*\}"
 | 
			
		||||
# Strings, double-quoted.
 | 
			
		||||
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
 | 
			
		||||
# Expression substitution.  These go inside double-quoted strings,
 | 
			
		||||
# "like #{this}".
 | 
			
		||||
color brightgreen "#\{[^}]*\}"
 | 
			
		||||
# Strings, single-quoted.
 | 
			
		||||
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "#[^{].*$" "#$"
 | 
			
		||||
color brightcyan "##[^{].*$" "##$"
 | 
			
		||||
# "Here" docs.
 | 
			
		||||
color green start="<<-?'?EOT'?" end="^EOT"
 | 
			
		||||
# Some common markers.
 | 
			
		||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
 | 
			
		||||
							
								
								
									
										39
									
								
								jails/config/common/nano/rust.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								jails/config/common/nano/rust.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,39 @@
 | 
			
		||||
## Syntax highlighting for Rust.
 | 
			
		||||
## Copyright 2015 Luke Francl.
 | 
			
		||||
## Licensed under GPL version 3.
 | 
			
		||||
 | 
			
		||||
## NOTE: Rules are applied in order: later rules re-colorize matching text.
 | 
			
		||||
 | 
			
		||||
syntax "rust" "\.rs"
 | 
			
		||||
comment "//"
 | 
			
		||||
 | 
			
		||||
# Function definitions
 | 
			
		||||
color magenta "fn [a-z_0-9]+"
 | 
			
		||||
 | 
			
		||||
# Reserved words
 | 
			
		||||
color yellow "\<(abstract|alignof|as|become|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>"
 | 
			
		||||
 | 
			
		||||
# Macros
 | 
			
		||||
color red "[a-z_]+!"
 | 
			
		||||
 | 
			
		||||
# Constants
 | 
			
		||||
color magenta "[A-Z][A-Z_0-9]+"
 | 
			
		||||
 | 
			
		||||
# Traits/Enums/Structs/Types/...
 | 
			
		||||
color magenta "[A-Z][A-Za-z0-9]+"
 | 
			
		||||
 | 
			
		||||
# Strings
 | 
			
		||||
color green "\".*\""
 | 
			
		||||
color green start="\".*\\$" end=".*\""
 | 
			
		||||
## NOTE: This isn't accurate, but matching "#{0,} for the end of the string is too liberal.
 | 
			
		||||
color green start="r#+\"" end="\"#+"
 | 
			
		||||
 | 
			
		||||
# Comments
 | 
			
		||||
color blue "//.*"
 | 
			
		||||
color blue start="/\*" end="\*/"
 | 
			
		||||
 | 
			
		||||
# Attributes
 | 
			
		||||
color magenta start="#!\[" end="\]"
 | 
			
		||||
 | 
			
		||||
# Some common markers
 | 
			
		||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
 | 
			
		||||
							
								
								
									
										29
									
								
								jails/config/common/nano/sh.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								jails/config/common/nano/sh.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
## Here is an example for Bourne shell scripts.
 | 
			
		||||
 | 
			
		||||
syntax "sh" "\.sh$"
 | 
			
		||||
header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
 | 
			
		||||
magic "(POSIX|Bourne-Again) shell script.*text"
 | 
			
		||||
linter dash -n
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
icolor brightgreen "^[0-9A-Z_]+\(\)"
 | 
			
		||||
color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>"
 | 
			
		||||
color green "\<(declare|eval|exec|export|let|local)\>"
 | 
			
		||||
color green "[{}():;|`$<>!=&\\]" "(\]|\[)"
 | 
			
		||||
color green "-[Ldefgruwx]\>"
 | 
			
		||||
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
 | 
			
		||||
color brightblue "\<(awk|cat|cd|ch(grp|mod|own)|cp|echo|env|grep|install|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|umask|unset)\>"
 | 
			
		||||
 | 
			
		||||
# Basic variable names (no braces).
 | 
			
		||||
color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*"
 | 
			
		||||
# More complicated variable names; handles braces and replacements and arrays.
 | 
			
		||||
color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:space:]]*[[:alnum:]_]+[[:space:]]*|@)\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "(^|[[:space:]])#.*$"
 | 
			
		||||
 | 
			
		||||
# Strings.
 | 
			
		||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										40
									
								
								jails/config/common/nano/spec.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								jails/config/common/nano/spec.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,40 @@
 | 
			
		||||
## Syntax highlighting for RPM spec files.
 | 
			
		||||
 | 
			
		||||
syntax "spec" "\.(spec$|spec\.*)"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Main tags.
 | 
			
		||||
color brightblue "((Icon|ExclusiveOs|ExcludeOs)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((Epoch|Serial|Nosource|Nopatch)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((AutoReq|AutoProv|AutoReqProv)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source\d*|Patch\d*|BuildRoot|Prefix)[[:space:]]*:)"
 | 
			
		||||
color brightblue "((Name|Version|Release|Url|URL)[[:space:]]*:)"
 | 
			
		||||
color brightblue start="^Source" end=":" start="^Patch" end=":"
 | 
			
		||||
# Architectures.
 | 
			
		||||
color brightred "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
 | 
			
		||||
# Architecture conditionals.
 | 
			
		||||
color brightred "(ifarch|ifnarch)"
 | 
			
		||||
# OS conditionals.
 | 
			
		||||
color brightred "(ifos|ifnos)"
 | 
			
		||||
# %* strings.
 | 
			
		||||
color green "%([A-Z_a-z_0-9_]*)"
 | 
			
		||||
color magenta "%_([A-Z_a-z_0-9_]*)"
 | 
			
		||||
color yellow start="%__" end="\ "
 | 
			
		||||
color magenta start="%\{" end="\}"
 | 
			
		||||
color yellow start="%\{__" end="\}"
 | 
			
		||||
# Sections.
 | 
			
		||||
color red "^%(build$|changelog|check$|clean$|description|files|install$|package|pre|prep$|pretrans|preun)"
 | 
			
		||||
color red "^%(post|posttrans|postun|trigger|triggerin|triggerpostun|triggerun|verifyscript)"
 | 
			
		||||
# Conditionals and defines.
 | 
			
		||||
color brightred "%(if|else|endif|define|global|undefine)"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color cyan "#.*$"
 | 
			
		||||
# Special case: "# norootforbuild" is handled as main tag.
 | 
			
		||||
color brightblue "^# norootforbuild"
 | 
			
		||||
# %changelog date entries.
 | 
			
		||||
color brightyellow "^\* .*\)$"
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										20
									
								
								jails/config/common/nano/tcl.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/common/nano/tcl.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
## Syntax highlighting for Tcl files.
 | 
			
		||||
 | 
			
		||||
syntax "tcl" "\.tcl$"
 | 
			
		||||
magic "Tcl(/Tk)? script"
 | 
			
		||||
comment "#"
 | 
			
		||||
 | 
			
		||||
# Standard Tcl [info commands]:
 | 
			
		||||
color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>"
 | 
			
		||||
# Basic Tcl subcommands:
 | 
			
		||||
color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>"
 | 
			
		||||
color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>"
 | 
			
		||||
# Extended TclX [info commands]:
 | 
			
		||||
color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>"
 | 
			
		||||
# Syntax:
 | 
			
		||||
color brightblue "proc[[:space:]]" "(\{|\})"
 | 
			
		||||
color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)"
 | 
			
		||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
 | 
			
		||||
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
color ,magenta "^[[:space:]]*#.*"
 | 
			
		||||
							
								
								
									
										10
									
								
								jails/config/common/nano/tex.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								jails/config/common/nano/tex.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
## Here is a short example for TeX files.
 | 
			
		||||
 | 
			
		||||
syntax "tex" "\.tex$"
 | 
			
		||||
magic "(La)?TeX document"
 | 
			
		||||
linter chktex -v0 -q -I
 | 
			
		||||
comment "%"
 | 
			
		||||
 | 
			
		||||
icolor green "\\.|\\[A-Z]*"
 | 
			
		||||
color magenta "[{}]"
 | 
			
		||||
color blue "(^|[^\])%.*"
 | 
			
		||||
							
								
								
									
										21
									
								
								jails/config/common/nano/texinfo.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								jails/config/common/nano/texinfo.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
## Here is an example for Texinfo files.
 | 
			
		||||
 | 
			
		||||
syntax "texinfo" "\.texi$"
 | 
			
		||||
header "^\\input texinfo"
 | 
			
		||||
magic "Texinfo source"
 | 
			
		||||
comment "@c "
 | 
			
		||||
 | 
			
		||||
# Command arguments, trailing and enclosed.
 | 
			
		||||
color cyan "^@[a-z]+[[:space:]]+.*$"
 | 
			
		||||
color brightmagenta "@[a-zA-Z]+\{[^}]*\}"
 | 
			
		||||
# Commands themselves.
 | 
			
		||||
color yellow "@[a-zA-Z]+\{?" "\}"
 | 
			
		||||
 | 
			
		||||
# Menu items.
 | 
			
		||||
color brightred "^\*[[:space:]]+.*::.*$"
 | 
			
		||||
 | 
			
		||||
# Comments.
 | 
			
		||||
color green "@c[[:space:]]+.*$"
 | 
			
		||||
 | 
			
		||||
# Trailing whitespace.
 | 
			
		||||
color ,green "[[:space:]]+$"
 | 
			
		||||
							
								
								
									
										22
									
								
								jails/config/common/nano/xml.nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								jails/config/common/nano/xml.nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
## Here is an example for XML files.
 | 
			
		||||
 | 
			
		||||
syntax "xml" "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
 | 
			
		||||
header "<\?xml.*version=.*\?>"
 | 
			
		||||
magic "(XML|SGML) (sub)?document"
 | 
			
		||||
comment "<!--|-->"
 | 
			
		||||
 | 
			
		||||
# The entire content of the tag:
 | 
			
		||||
color green  start="<" end=">"
 | 
			
		||||
 | 
			
		||||
# The start and the end of the tag:
 | 
			
		||||
color cyan   "<[^> ]+" ">"
 | 
			
		||||
 | 
			
		||||
# The strings inside the tag:
 | 
			
		||||
color magenta "\"[^"]*\""
 | 
			
		||||
 | 
			
		||||
# Comments:
 | 
			
		||||
color yellow start="<!DOCTYPE" end="[/]?>"
 | 
			
		||||
color yellow start="<!--" end="-->"
 | 
			
		||||
 | 
			
		||||
# Escapes:
 | 
			
		||||
color red    "&[^;]*;"
 | 
			
		||||
							
								
								
									
										270
									
								
								jails/config/common/nanorc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										270
									
								
								jails/config/common/nanorc
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,270 @@
 | 
			
		||||
## Sample initialization file for GNU nano.
 | 
			
		||||
##
 | 
			
		||||
## Please note that you must have configured nano with --enable-nanorc
 | 
			
		||||
## for this file to be read!  Also note that this file should not be in
 | 
			
		||||
## DOS or Mac format, and that characters specially interpreted by the
 | 
			
		||||
## shell should not be escaped here.
 | 
			
		||||
##
 | 
			
		||||
## To make sure an option is disabled, use "unset <option>".
 | 
			
		||||
##
 | 
			
		||||
## For the options that take parameters, the default value is given.
 | 
			
		||||
## Other options are unset by default.
 | 
			
		||||
##
 | 
			
		||||
## Quotes inside string parameters don't have to be escaped with
 | 
			
		||||
## backslashes.  The last double quote in the string will be treated as
 | 
			
		||||
## its end.  For example, for the "brackets" option, ""')>]}" will match
 | 
			
		||||
## ", ', ), >, ], and }.
 | 
			
		||||
 | 
			
		||||
## When soft line wrapping is enabled, make it wrap lines at blanks
 | 
			
		||||
## (tabs and spaces) instead of always at the edge of the screen.
 | 
			
		||||
# set atblanks
 | 
			
		||||
 | 
			
		||||
## Use auto-indentation.
 | 
			
		||||
# set autoindent
 | 
			
		||||
 | 
			
		||||
## Back up files to the current filename plus a tilde.
 | 
			
		||||
# set backup
 | 
			
		||||
 | 
			
		||||
## The directory to put unique backup files in.
 | 
			
		||||
# set backupdir ""
 | 
			
		||||
 | 
			
		||||
## Use bold text instead of reverse video text.
 | 
			
		||||
# set boldtext
 | 
			
		||||
 | 
			
		||||
## The characters treated as closing brackets when justifying
 | 
			
		||||
## paragraphs.  They cannot contain blank characters.  Only closing
 | 
			
		||||
## punctuation, optionally followed by closing brackets, can end
 | 
			
		||||
## sentences.
 | 
			
		||||
# set brackets ""')>]}"
 | 
			
		||||
 | 
			
		||||
## Do case-sensitive searches by default.
 | 
			
		||||
# set casesensitive
 | 
			
		||||
 | 
			
		||||
## Constantly display the cursor position in the status bar.  Note that
 | 
			
		||||
## this overrides "quickblank".
 | 
			
		||||
# set constantshow
 | 
			
		||||
## (The old form, 'const', is deprecated.)
 | 
			
		||||
 | 
			
		||||
## Use cut-from-cursor-to-end-of-line by default.
 | 
			
		||||
# set cutfromcursor
 | 
			
		||||
## (The old form, 'cut', is deprecated.)
 | 
			
		||||
 | 
			
		||||
## Set the line length for wrapping text and justifying paragraphs.
 | 
			
		||||
## If the value is 0 or less, the wrapping point will be the screen
 | 
			
		||||
## width less this number.
 | 
			
		||||
# set fill -8
 | 
			
		||||
 | 
			
		||||
## Remember the used search/replace strings for the next session.
 | 
			
		||||
set historylog
 | 
			
		||||
 | 
			
		||||
## Display line numbers to the left of the text.
 | 
			
		||||
# set linenumbers
 | 
			
		||||
 | 
			
		||||
## Enable vim-style lock-files.  This is just to let a vim user know you
 | 
			
		||||
## are editing a file [s]he is trying to edit and vice versa.  There are
 | 
			
		||||
## no plans to implement vim-style undo state in these files.
 | 
			
		||||
set locking
 | 
			
		||||
 | 
			
		||||
## The opening and closing brackets that can be found by bracket
 | 
			
		||||
## searches.  They cannot contain blank characters.  The former set must
 | 
			
		||||
## come before the latter set, and both must be in the same order.
 | 
			
		||||
# set matchbrackets "(<[{)>]}"
 | 
			
		||||
 | 
			
		||||
## Use the blank line below the title bar as extra editing space.
 | 
			
		||||
# set morespace
 | 
			
		||||
 | 
			
		||||
## Enable mouse support, if available for your system.  When enabled,
 | 
			
		||||
## mouse clicks can be used to place the cursor, set the mark (with a
 | 
			
		||||
## double click), and execute shortcuts.  The mouse will work in the X
 | 
			
		||||
## Window System, and on the console when gpm is running.
 | 
			
		||||
# set mouse
 | 
			
		||||
 | 
			
		||||
## Switch on multiple file buffers (inserting a file will put it into
 | 
			
		||||
## a separate buffer).
 | 
			
		||||
# set multibuffer
 | 
			
		||||
 | 
			
		||||
## Don't convert files from DOS/Mac format.
 | 
			
		||||
# set noconvert
 | 
			
		||||
 | 
			
		||||
## Don't display the helpful shortcut lists at the bottom of the screen.
 | 
			
		||||
# set nohelp
 | 
			
		||||
 | 
			
		||||
## Don't pause between warnings at startup.  Which means that only the
 | 
			
		||||
## last one will be readable (when there are multiple ones).
 | 
			
		||||
# set nopauses
 | 
			
		||||
 | 
			
		||||
## Don't add newlines to the ends of files.
 | 
			
		||||
# set nonewlines
 | 
			
		||||
 | 
			
		||||
## Don't wrap text at all.
 | 
			
		||||
set nowrap
 | 
			
		||||
 | 
			
		||||
## Set operating directory.  nano will not read or write files outside
 | 
			
		||||
## this directory and its subdirectories.  Also, the current directory
 | 
			
		||||
## is changed to here, so any files are inserted from this dir.  A blank
 | 
			
		||||
## string means the operating-directory feature is turned off.
 | 
			
		||||
# set operatingdir ""
 | 
			
		||||
 | 
			
		||||
## Remember the cursor position in each file for the next editing session.
 | 
			
		||||
# set positionlog
 | 
			
		||||
## (The old form, 'poslog', is deprecated.)
 | 
			
		||||
 | 
			
		||||
## Preserve the XON and XOFF keys (^Q and ^S).
 | 
			
		||||
# set preserve
 | 
			
		||||
 | 
			
		||||
## The characters treated as closing punctuation when justifying
 | 
			
		||||
## paragraphs.  They cannot contain blank characters.  Only closing
 | 
			
		||||
## punctuation, optionally followed by closing brackets, can end
 | 
			
		||||
## sentences.
 | 
			
		||||
# set punct "!.?"
 | 
			
		||||
 | 
			
		||||
## Do quick status-bar blanking.  Status-bar messages will disappear after
 | 
			
		||||
## 1 keystroke instead of 26.  Note that "constantshow" overrides this.
 | 
			
		||||
# set quickblank
 | 
			
		||||
 | 
			
		||||
## The email-quote string, used to justify email-quoted paragraphs.
 | 
			
		||||
## This is an extended regular expression if your system supports them,
 | 
			
		||||
## otherwise a literal string.
 | 
			
		||||
## If you have extended regular expression support, the default is:
 | 
			
		||||
# set quotestr "^([ 	]*[#:>\|}])+"
 | 
			
		||||
## Otherwise:
 | 
			
		||||
# set quotestr "> "
 | 
			
		||||
 | 
			
		||||
## Fix Backspace/Delete confusion problem.
 | 
			
		||||
# set rebinddelete
 | 
			
		||||
 | 
			
		||||
## Fix numeric keypad key confusion problem.
 | 
			
		||||
# set rebindkeypad
 | 
			
		||||
 | 
			
		||||
## Do extended regular expression searches by default.
 | 
			
		||||
# set regexp
 | 
			
		||||
 | 
			
		||||
## Put the cursor on the highlighted item in the file browser;
 | 
			
		||||
## useful for people who use a braille display.
 | 
			
		||||
# set showcursor
 | 
			
		||||
 | 
			
		||||
## Make the Home key smarter.  When Home is pressed anywhere but at the
 | 
			
		||||
## very beginning of non-whitespace characters on a line, the cursor
 | 
			
		||||
## will jump to that beginning (either forwards or backwards).  If the
 | 
			
		||||
## cursor is already at that position, it will jump to the true
 | 
			
		||||
## beginning of the line.
 | 
			
		||||
# set smarthome
 | 
			
		||||
 | 
			
		||||
## Use smooth scrolling as the default.
 | 
			
		||||
# set smooth
 | 
			
		||||
 | 
			
		||||
## Enable soft line wrapping (AKA full-line display).
 | 
			
		||||
# set softwrap
 | 
			
		||||
 | 
			
		||||
## Use this spelling checker instead of the internal one.  This option
 | 
			
		||||
## does not have a default value.
 | 
			
		||||
# set speller "aspell -x -c"
 | 
			
		||||
 | 
			
		||||
## Allow nano to be suspended.
 | 
			
		||||
set suspend
 | 
			
		||||
 | 
			
		||||
## Use this tab size instead of the default; it must be greater than 0.
 | 
			
		||||
set tabsize 4
 | 
			
		||||
 | 
			
		||||
## Convert typed tabs to spaces.
 | 
			
		||||
set tabstospaces
 | 
			
		||||
 | 
			
		||||
## Save automatically on exit; don't prompt.
 | 
			
		||||
# set tempfile
 | 
			
		||||
 | 
			
		||||
## Snip whitespace at the end of lines when justifying or hard-wrapping.
 | 
			
		||||
# set trimblanks
 | 
			
		||||
 | 
			
		||||
## Disallow file modification.  Why would you want this in an rcfile? ;)
 | 
			
		||||
# set view
 | 
			
		||||
 | 
			
		||||
## The two single-column characters used to display the first characters
 | 
			
		||||
## of tabs and spaces.  187 in ISO 8859-1 (0000BB in Unicode) and 183 in
 | 
			
		||||
## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
 | 
			
		||||
## The default when in a UTF-8 locale:
 | 
			
		||||
# set whitespace "»·"
 | 
			
		||||
## The default otherwise:
 | 
			
		||||
# set whitespace ">."
 | 
			
		||||
 | 
			
		||||
## Detect word boundaries differently by treating punctuation
 | 
			
		||||
## characters as parts of words.
 | 
			
		||||
# set wordbounds
 | 
			
		||||
 | 
			
		||||
## The characters (besides alphanumeric ones) that should be considered
 | 
			
		||||
## as parts of words.  This option does not have a default value.  When
 | 
			
		||||
## set, it overrides option 'set wordbounds'.
 | 
			
		||||
# set wordchars "<_>."
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Paint the interface elements of nano.
 | 
			
		||||
## These are examples; by default there are no colors.
 | 
			
		||||
# set titlecolor brightwhite,blue
 | 
			
		||||
# set statuscolor brightwhite,green
 | 
			
		||||
# set selectedcolor brightwhite,magenta
 | 
			
		||||
# set numbercolor cyan
 | 
			
		||||
# set keycolor cyan
 | 
			
		||||
# set functioncolor green
 | 
			
		||||
## In root's .nanorc you might want to use:
 | 
			
		||||
# set titlecolor brightwhite,red
 | 
			
		||||
# set statuscolor brightwhite,red
 | 
			
		||||
# set selectedcolor brightwhite,cyan
 | 
			
		||||
# set numbercolor magenta
 | 
			
		||||
# set keycolor brightmagenta
 | 
			
		||||
# set functioncolor magenta
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Setup of syntax coloring.
 | 
			
		||||
##
 | 
			
		||||
## Format:
 | 
			
		||||
##
 | 
			
		||||
## syntax "short description" ["filename regex" ...]
 | 
			
		||||
##
 | 
			
		||||
## The "none" syntax is reserved; specifying it on the command line is
 | 
			
		||||
## the same as not having a syntax at all.  The "default" syntax is
 | 
			
		||||
## special: it takes no filename regexes, and applies to files that
 | 
			
		||||
## don't match any other syntax's filename regexes.
 | 
			
		||||
##
 | 
			
		||||
## color foreground,background "regex" ["regex"...]
 | 
			
		||||
## or
 | 
			
		||||
## icolor foreground,background "regex" ["regex"...]
 | 
			
		||||
##
 | 
			
		||||
## "color" will do case-sensitive matches, while "icolor" will do
 | 
			
		||||
## case-insensitive matches.
 | 
			
		||||
##
 | 
			
		||||
## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
 | 
			
		||||
## For foreground colors, you may use the prefix "bright" to get a
 | 
			
		||||
## stronger highlight.
 | 
			
		||||
##
 | 
			
		||||
## To use multi-line regexes, use the start="regex" end="regex"
 | 
			
		||||
## [start="regex" end="regex"...] format.
 | 
			
		||||
##
 | 
			
		||||
## If your system supports transparency, not specifying a background
 | 
			
		||||
## color will use a transparent color.  If you don't want this, be sure
 | 
			
		||||
## to set the background color to black or white.
 | 
			
		||||
##
 | 
			
		||||
## All regexes should be extended regular expressions.
 | 
			
		||||
##
 | 
			
		||||
## If you wish, you may put your syntax definitions in separate files.
 | 
			
		||||
## You can make use of such files as follows:
 | 
			
		||||
##
 | 
			
		||||
## include "/path/to/syntax_file.nanorc"
 | 
			
		||||
##
 | 
			
		||||
## Unless otherwise noted, the name of the syntax file (without the
 | 
			
		||||
## ".nanorc" extension) should be the same as the "short description"
 | 
			
		||||
## name inside that file.  These names are kept fairly short to make
 | 
			
		||||
## them easier to remember and faster to type using nano's -Y option.
 | 
			
		||||
##
 | 
			
		||||
## To include all existing syntax definitions, you can do:
 | 
			
		||||
include "/usr/local/etc/nano/*.nanorc"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Key bindings.
 | 
			
		||||
## See nanorc(5) (section REBINDING KEYS) for more details on this.
 | 
			
		||||
##
 | 
			
		||||
## The following two functions are not bound to any key by default.
 | 
			
		||||
## You may wish to choose other keys than the ones suggested here.
 | 
			
		||||
# bind M-B cutwordleft main
 | 
			
		||||
# bind M-N cutwordright main
 | 
			
		||||
 | 
			
		||||
## Set this if your Backspace key sends Del most of the time.
 | 
			
		||||
# bind Del backspace all
 | 
			
		||||
							
								
								
									
										20
									
								
								jails/config/common/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/common/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FreeBSD: {
 | 
			
		||||
    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
 | 
			
		||||
    enabled: no
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp-freebsd-pkg: {
 | 
			
		||||
    url: "http://pkgp-freebsd-pkg.ahlawat.com/${ABI}/latest",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 10
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp121: {
 | 
			
		||||
    url: "http://pkgp.ahlawat.com/packages/pj121-default/",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    signature_type: "pubkey",
 | 
			
		||||
    pubkey: "/mnt/certs/poudriere.cert",
 | 
			
		||||
    enabled: no,
 | 
			
		||||
    priority: 100
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										12
									
								
								jails/config/common/snip-sendmail.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								jails/config/common/snip-sendmail.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
# https://diyit.org/license/
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#! /usr/local/bin/bash
 | 
			
		||||
# smart_host - mail - is the mail server's dns name
 | 
			
		||||
echo "define(\`SMART_HOST', \`mail')" >> /etc/mail/$HOSTNAME.mc
 | 
			
		||||
echo "define(\`confDOMAIN_NAME', \`$HOSTNAME')" >> /etc/mail/$HOSTNAME.mc
 | 
			
		||||
							
								
								
									
										121
									
								
								jails/config/common/sshd_config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								jails/config/common/sshd_config
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,121 @@
 | 
			
		||||
#	$OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
 | 
			
		||||
#	$FreeBSD: releng/12.1/crypto/openssh/sshd_config 338561 2018-09-10 16:20:12Z des $
 | 
			
		||||
 | 
			
		||||
# This is the sshd server system-wide configuration file.  See
 | 
			
		||||
# sshd_config(5) for more information.
 | 
			
		||||
 | 
			
		||||
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
 | 
			
		||||
 | 
			
		||||
# The strategy used for options in the default sshd_config shipped with
 | 
			
		||||
# OpenSSH is to specify options with their default value where
 | 
			
		||||
# possible, but leave them commented.  Uncommented options override the
 | 
			
		||||
# default value.
 | 
			
		||||
 | 
			
		||||
# Note that some of FreeBSD's defaults differ from OpenBSD's, and
 | 
			
		||||
# FreeBSD has a few additional options.
 | 
			
		||||
 | 
			
		||||
#Port 22
 | 
			
		||||
#AddressFamily any
 | 
			
		||||
#ListenAddress 0.0.0.0
 | 
			
		||||
#ListenAddress ::
 | 
			
		||||
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_rsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ed25519_key
 | 
			
		||||
 | 
			
		||||
# Ciphers and keying
 | 
			
		||||
#RekeyLimit default none
 | 
			
		||||
 | 
			
		||||
# Logging
 | 
			
		||||
#SyslogFacility AUTH
 | 
			
		||||
#LogLevel INFO
 | 
			
		||||
 | 
			
		||||
# Authentication:
 | 
			
		||||
 | 
			
		||||
#LoginGraceTime 2m
 | 
			
		||||
PermitRootLogin yes
 | 
			
		||||
#StrictModes yes
 | 
			
		||||
#MaxAuthTries 6
 | 
			
		||||
#MaxSessions 10
 | 
			
		||||
 | 
			
		||||
#PubkeyAuthentication yes
 | 
			
		||||
 | 
			
		||||
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
 | 
			
		||||
# but this is overridden so installations will only check .ssh/authorized_keys
 | 
			
		||||
AuthorizedKeysFile	.ssh/authorized_keys
 | 
			
		||||
 | 
			
		||||
#AuthorizedPrincipalsFile none
 | 
			
		||||
 | 
			
		||||
#AuthorizedKeysCommand none
 | 
			
		||||
#AuthorizedKeysCommandUser nobody
 | 
			
		||||
 | 
			
		||||
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
 | 
			
		||||
#HostbasedAuthentication no
 | 
			
		||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
 | 
			
		||||
# HostbasedAuthentication
 | 
			
		||||
#IgnoreUserKnownHosts no
 | 
			
		||||
# Don't read the user's ~/.rhosts and ~/.shosts files
 | 
			
		||||
#IgnoreRhosts yes
 | 
			
		||||
 | 
			
		||||
# Change to yes to enable built-in password authentication.
 | 
			
		||||
#PasswordAuthentication no
 | 
			
		||||
#PermitEmptyPasswords no
 | 
			
		||||
 | 
			
		||||
# Change to no to disable PAM authentication
 | 
			
		||||
#ChallengeResponseAuthentication yes
 | 
			
		||||
 | 
			
		||||
# Kerberos options
 | 
			
		||||
#KerberosAuthentication no
 | 
			
		||||
#KerberosOrLocalPasswd yes
 | 
			
		||||
#KerberosTicketCleanup yes
 | 
			
		||||
#KerberosGetAFSToken no
 | 
			
		||||
 | 
			
		||||
# GSSAPI options
 | 
			
		||||
#GSSAPIAuthentication no
 | 
			
		||||
#GSSAPICleanupCredentials yes
 | 
			
		||||
 | 
			
		||||
# Set this to 'no' to disable PAM authentication, account processing,
 | 
			
		||||
# and session processing. If this is enabled, PAM authentication will
 | 
			
		||||
# be allowed through the ChallengeResponseAuthentication and
 | 
			
		||||
# PasswordAuthentication.  Depending on your PAM configuration,
 | 
			
		||||
# PAM authentication via ChallengeResponseAuthentication may bypass
 | 
			
		||||
# the setting of "PermitRootLogin without-password".
 | 
			
		||||
# If you just want the PAM account and session checks to run without
 | 
			
		||||
# PAM authentication, then enable this but set PasswordAuthentication
 | 
			
		||||
# and ChallengeResponseAuthentication to 'no'.
 | 
			
		||||
#UsePAM yes
 | 
			
		||||
 | 
			
		||||
#AllowAgentForwarding yes
 | 
			
		||||
#AllowTcpForwarding yes
 | 
			
		||||
#GatewayPorts no
 | 
			
		||||
#X11Forwarding yes
 | 
			
		||||
#X11DisplayOffset 10
 | 
			
		||||
#X11UseLocalhost yes
 | 
			
		||||
#PermitTTY yes
 | 
			
		||||
#PrintMotd yes
 | 
			
		||||
#PrintLastLog yes
 | 
			
		||||
#TCPKeepAlive yes
 | 
			
		||||
#PermitUserEnvironment no
 | 
			
		||||
#Compression delayed
 | 
			
		||||
#ClientAliveInterval 0
 | 
			
		||||
#ClientAliveCountMax 3
 | 
			
		||||
#UseDNS yes
 | 
			
		||||
#PidFile /var/run/sshd.pid
 | 
			
		||||
#MaxStartups 10:30:100
 | 
			
		||||
#PermitTunnel no
 | 
			
		||||
#ChrootDirectory none
 | 
			
		||||
#UseBlacklist no
 | 
			
		||||
#VersionAddendum FreeBSD-20180909
 | 
			
		||||
 | 
			
		||||
# no default banner path
 | 
			
		||||
#Banner none
 | 
			
		||||
 | 
			
		||||
# override default of no subsystems
 | 
			
		||||
Subsystem	sftp	/usr/libexec/sftp-server
 | 
			
		||||
 | 
			
		||||
# Example of overriding settings on a per-user basis
 | 
			
		||||
#Match User anoncvs
 | 
			
		||||
#	X11Forwarding no
 | 
			
		||||
#	AllowTcpForwarding no
 | 
			
		||||
#	PermitTTY no
 | 
			
		||||
#	ForceCommand cvs server
 | 
			
		||||
							
								
								
									
										49
									
								
								jails/config/common/vncserver
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								jails/config/common/vncserver
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,49 @@
 | 
			
		||||
# Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
# https://diyit.org/license/
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# the two lines below are not just comments but required by rcorder; service -e
 | 
			
		||||
# PROVIDE: vncserver
 | 
			
		||||
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
 | 
			
		||||
 | 
			
		||||
. /etc/rc.subr
 | 
			
		||||
 | 
			
		||||
: ${vncserver_enable="NO"}
 | 
			
		||||
: ${vncserver_user="p"}
 | 
			
		||||
: ${vncserver_geometry="1600x900"}
 | 
			
		||||
: ${vncserver_display="1"}
 | 
			
		||||
 
 | 
			
		||||
name=vncserver
 | 
			
		||||
rcvar=vncserver_enable
 | 
			
		||||
 
 | 
			
		||||
VNCSERVER="/usr/local/bin/vncserver"
 | 
			
		||||
 
 | 
			
		||||
start_cmd="vncserver_start"
 | 
			
		||||
stop_cmd="vncserver_stop"
 | 
			
		||||
restart_cmd="vncserver_restart"
 | 
			
		||||
 
 | 
			
		||||
vncserver_start()
 | 
			
		||||
{
 | 
			
		||||
        CMD="$VNCSERVER -geometry ${vncserver_geometry} -name $(hostname -s) :${vncserver_display}"
 | 
			
		||||
        su -l ${vncserver_user} -c "${CMD}"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
vncserver_stop()
 | 
			
		||||
{
 | 
			
		||||
        CMD="$VNCSERVER -kill :${vncserver_display}"
 | 
			
		||||
        su -l ${vncserver_user} -c "${CMD}"
 | 
			
		||||
}
 | 
			
		||||
vncserver_restart()
 | 
			
		||||
{
 | 
			
		||||
	vncserver_stop
 | 
			
		||||
	vncserver_start
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
load_rc_config ${name}
 | 
			
		||||
run_rc_command "$1"
 | 
			
		||||
							
								
								
									
										25
									
								
								jails/config/common/xstartup
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								jails/config/common/xstartup
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
unset SESSION_MANAGER
 | 
			
		||||
unset DBUS_SESSION_BUS_ADDRESS
 | 
			
		||||
OS=`uname -s`
 | 
			
		||||
if [ $OS = 'Linux' ]; then
 | 
			
		||||
  case "$WINDOWMANAGER" in
 | 
			
		||||
    *gnome*)
 | 
			
		||||
      if [ -e /etc/SuSE-release ]; then
 | 
			
		||||
        PATH=$PATH:/opt/gnome/bin
 | 
			
		||||
        export PATH
 | 
			
		||||
      fi
 | 
			
		||||
      ;;
 | 
			
		||||
  esac
 | 
			
		||||
fi
 | 
			
		||||
if [ -x /etc/X11/xinit/xinitrc ]; then
 | 
			
		||||
  exec /etc/X11/xinit/xinitrc
 | 
			
		||||
fi
 | 
			
		||||
if [ -f /etc/X11/xinit/xinitrc ]; then
 | 
			
		||||
  exec sh /etc/X11/xinit/xinitrc
 | 
			
		||||
fi
 | 
			
		||||
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
 | 
			
		||||
xsetroot -solid grey
 | 
			
		||||
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
 | 
			
		||||
fluxbox &
 | 
			
		||||
							
								
								
									
										99
									
								
								jails/config/db/my.cnf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								jails/config/db/my.cnf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,99 @@
 | 
			
		||||
# Example MySQL config file for small systems.
 | 
			
		||||
#
 | 
			
		||||
# This is for a system with little memory (<= 64M) where MySQL is only used
 | 
			
		||||
# from time to time and it's important that the mysqld daemon
 | 
			
		||||
# doesn't use much resources.
 | 
			
		||||
#
 | 
			
		||||
# MySQL programs look for option files in a set of
 | 
			
		||||
# locations which depend on the deployment platform.
 | 
			
		||||
# You can copy this option file to one of those
 | 
			
		||||
# locations. For information about these locations, see:
 | 
			
		||||
# http://dev.mysql.com/doc/mysql/en/option-files.html
 | 
			
		||||
#
 | 
			
		||||
# In this file, you can use all long options that a program supports.
 | 
			
		||||
# If you want to know which options a program supports, run the program
 | 
			
		||||
# with the "--help" option.
 | 
			
		||||
 | 
			
		||||
# The following options will be passed to all MySQL clients
 | 
			
		||||
[client]
 | 
			
		||||
#password	= your_password
 | 
			
		||||
port		= 3306
 | 
			
		||||
socket		= /tmp/mysql.sock
 | 
			
		||||
 | 
			
		||||
# Here follows entries for some specific programs
 | 
			
		||||
 | 
			
		||||
# The MySQL server
 | 
			
		||||
[mysqld]
 | 
			
		||||
bind-address    = *
 | 
			
		||||
port		= 3306
 | 
			
		||||
socket		= /tmp/mysql.sock
 | 
			
		||||
skip-external-locking
 | 
			
		||||
key_buffer_size = 16K
 | 
			
		||||
max_allowed_packet = 64M
 | 
			
		||||
table_open_cache = 16
 | 
			
		||||
sort_buffer_size = 64K
 | 
			
		||||
read_buffer_size = 256K
 | 
			
		||||
read_rnd_buffer_size = 256K
 | 
			
		||||
net_buffer_length = 2K
 | 
			
		||||
thread_stack = 240K
 | 
			
		||||
 | 
			
		||||
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
 | 
			
		||||
# if all processes that need to connect to mysqld run on the same host.
 | 
			
		||||
# All interaction with mysqld must be made via Unix sockets or named pipes.
 | 
			
		||||
# Note that using this option without enabling named pipes on Windows
 | 
			
		||||
# (using the "enable-named-pipe" option) will render mysqld useless!
 | 
			
		||||
# 
 | 
			
		||||
#skip-networking
 | 
			
		||||
server-id	= 1
 | 
			
		||||
 | 
			
		||||
# Uncomment the following if you want to log updates
 | 
			
		||||
#log-bin=mysql-bin
 | 
			
		||||
 | 
			
		||||
# binary logging format - mixed recommended
 | 
			
		||||
binlog_format=ROW
 | 
			
		||||
 | 
			
		||||
# Causes updates to non-transactional engines using statement format to be
 | 
			
		||||
# written directly to binary log. Before using this option make sure that
 | 
			
		||||
# there are no dependencies between transactional and non-transactional
 | 
			
		||||
# tables such as in the statement INSERT INTO t_myisam SELECT * FROM
 | 
			
		||||
# t_innodb; otherwise, slaves may diverge from the master.
 | 
			
		||||
#binlog_direct_non_transactional_updates=TRUE
 | 
			
		||||
 | 
			
		||||
# Uncomment the following if you are using InnoDB tables
 | 
			
		||||
#innodb_data_home_dir = /var/db/mysql
 | 
			
		||||
#innodb_data_file_path = ibdata1:10M:autoextend
 | 
			
		||||
innodb_log_group_home_dir = /var/db/mysql-log
 | 
			
		||||
# You can set .._buffer_pool_size up to 50 - 80 %
 | 
			
		||||
# of RAM but beware of setting memory usage too high
 | 
			
		||||
innodb_buffer_pool_size = 1G
 | 
			
		||||
innodb_io_capacity=4000
 | 
			
		||||
transaction-isolation = READ-COMMITTED
 | 
			
		||||
# Set .._log_file_size to 25 % of buffer pool size
 | 
			
		||||
innodb_log_file_size = 250M
 | 
			
		||||
#innodb_log_buffer_size = 8M
 | 
			
		||||
innodb_flush_log_at_trx_commit = 2
 | 
			
		||||
#innodb_lock_wait_timeout = 50
 | 
			
		||||
 | 
			
		||||
innodb_doublewrite = 0
 | 
			
		||||
innodb_checksum_algorithm = none
 | 
			
		||||
slow_query_log_file = /var/db/mysql-log/slow.log
 | 
			
		||||
log-error = /var/db/mysql-log/error.log
 | 
			
		||||
log_bin = /var/db/mysql-log/binlog
 | 
			
		||||
relay_log = /var/db/mysql-log/relay-bin
 | 
			
		||||
expire_logs_days = 7
 | 
			
		||||
 | 
			
		||||
[mysqldump]
 | 
			
		||||
quick
 | 
			
		||||
max_allowed_packet = 16M
 | 
			
		||||
 | 
			
		||||
[mysql]
 | 
			
		||||
no-auto-rehash
 | 
			
		||||
# Remove the next comment character if you are not familiar with SQL
 | 
			
		||||
#safe-updates
 | 
			
		||||
 | 
			
		||||
[myisamchk]
 | 
			
		||||
key_buffer_size = 8M
 | 
			
		||||
sort_buffer_size = 8M
 | 
			
		||||
 | 
			
		||||
[mysqlhotcopy]
 | 
			
		||||
interactive-timeout
 | 
			
		||||
							
								
								
									
										3
									
								
								jails/config/db/mysqld_exporter/my.cnf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								jails/config/db/mysqld_exporter/my.cnf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
[client]
 | 
			
		||||
user=exporter
 | 
			
		||||
password=exporter
 | 
			
		||||
							
								
								
									
										0
									
								
								jails/config/debian/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/debian/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								jails/config/dns/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/dns/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										785
									
								
								jails/config/git/gitea/conf/app.ini.defaults
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										785
									
								
								jails/config/git/gitea/conf/app.ini.defaults
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,785 @@
 | 
			
		||||
 | 
			
		||||
; This file lists the default values used by Gitea
 | 
			
		||||
; Copy required sections to your own app.ini (default is custom/conf/app.ini)
 | 
			
		||||
; and modify as needed.
 | 
			
		||||
 | 
			
		||||
; see https://docs.gitea.io/en-us/config-cheat-sheet/ for additional documentation.
 | 
			
		||||
 | 
			
		||||
; App name that shows in every page title
 | 
			
		||||
APP_NAME = Gitea: Git with a cup of tea
 | 
			
		||||
; Change it if you run locally
 | 
			
		||||
RUN_USER = git
 | 
			
		||||
; Either "dev", "prod" or "test", default is "dev"
 | 
			
		||||
RUN_MODE = dev
 | 
			
		||||
 | 
			
		||||
[repository]
 | 
			
		||||
ROOT =
 | 
			
		||||
SCRIPT_TYPE = bash
 | 
			
		||||
; Default ANSI charset
 | 
			
		||||
ANSI_CHARSET =
 | 
			
		||||
; Force every new repository to be private
 | 
			
		||||
FORCE_PRIVATE = false
 | 
			
		||||
; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used.
 | 
			
		||||
DEFAULT_PRIVATE = last
 | 
			
		||||
; Global limit of repositories per user, applied at creation time. -1 means no limit
 | 
			
		||||
MAX_CREATION_LIMIT = -1
 | 
			
		||||
; Mirror sync queue length, increase if mirror syncing starts hanging
 | 
			
		||||
MIRROR_QUEUE_LENGTH = 1000
 | 
			
		||||
; Patch test queue length, increase if pull request patch testing starts hanging
 | 
			
		||||
PULL_REQUEST_QUEUE_LENGTH = 1000
 | 
			
		||||
; Preferred Licenses to place at the top of the List
 | 
			
		||||
; The name here must match the filename in conf/license or custom/conf/license
 | 
			
		||||
PREFERRED_LICENSES = Apache License 2.0,MIT License
 | 
			
		||||
; Disable the ability to interact with repositories using the HTTP protocol
 | 
			
		||||
DISABLE_HTTP_GIT = false
 | 
			
		||||
; Value for Access-Control-Allow-Origin header, default is not to present
 | 
			
		||||
; WARNING: This maybe harmful to you website if you do not give it a right value.
 | 
			
		||||
ACCESS_CONTROL_ALLOW_ORIGIN =
 | 
			
		||||
; Force ssh:// clone url instead of scp-style uri when default SSH port is used
 | 
			
		||||
USE_COMPAT_SSH_URI = false
 | 
			
		||||
; Close issues as long as a commit on any branch marks it as fixed
 | 
			
		||||
DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false
 | 
			
		||||
 | 
			
		||||
[repository.editor]
 | 
			
		||||
; List of file extensions for which lines should be wrapped in the CodeMirror editor
 | 
			
		||||
; Separate extensions with a comma. To line wrap files without an extension, just put a comma
 | 
			
		||||
LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
 | 
			
		||||
; Valid file modes that have a preview API associated with them, such as api/v1/markdown
 | 
			
		||||
; Separate the values by commas. The preview tab in edit mode won't be displayed if the file extension doesn't match
 | 
			
		||||
PREVIEWABLE_FILE_MODES = markdown
 | 
			
		||||
 | 
			
		||||
[repository.local]
 | 
			
		||||
; Path for local repository copy. Defaults to `tmp/local-repo`
 | 
			
		||||
LOCAL_COPY_PATH = tmp/local-repo
 | 
			
		||||
; Path for local wiki copy. Defaults to `tmp/local-wiki`
 | 
			
		||||
LOCAL_WIKI_PATH = tmp/local-wiki
 | 
			
		||||
 | 
			
		||||
[repository.upload]
 | 
			
		||||
; Whether repository file uploads are enabled. Defaults to `true`
 | 
			
		||||
ENABLED = true
 | 
			
		||||
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
 | 
			
		||||
TEMP_PATH = data/tmp/uploads
 | 
			
		||||
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
 | 
			
		||||
ALLOWED_TYPES =
 | 
			
		||||
; Max size of each file in megabytes. Defaults to 3MB
 | 
			
		||||
FILE_MAX_SIZE = 3
 | 
			
		||||
; Max number of files per upload. Defaults to 5
 | 
			
		||||
MAX_FILES = 5
 | 
			
		||||
 | 
			
		||||
[repository.pull-request]
 | 
			
		||||
; List of prefixes used in Pull Request title to mark them as Work In Progress
 | 
			
		||||
WORK_IN_PROGRESS_PREFIXES=WIP:,[WIP]
 | 
			
		||||
 | 
			
		||||
[repository.issue]
 | 
			
		||||
; List of reasons why a Pull Request or Issue can be locked
 | 
			
		||||
LOCK_REASONS=Too heated,Off-topic,Resolved,Spam
 | 
			
		||||
 | 
			
		||||
[cors]
 | 
			
		||||
; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
 | 
			
		||||
; enable cors headers (disabled by default)
 | 
			
		||||
ENABLED=false
 | 
			
		||||
; scheme of allowed requests
 | 
			
		||||
SCHEME=http
 | 
			
		||||
; list of requesting domains that are allowed
 | 
			
		||||
ALLOW_DOMAIN=*
 | 
			
		||||
; allow subdomains of headers listed above to request
 | 
			
		||||
ALLOW_SUBDOMAIN=false
 | 
			
		||||
; list of methods allowed to request
 | 
			
		||||
METHODS=GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
 | 
			
		||||
; max time to cache response
 | 
			
		||||
MAX_AGE=10m
 | 
			
		||||
; allow request with credentials
 | 
			
		||||
ALLOW_CREDENTIALS=false
 | 
			
		||||
 | 
			
		||||
[ui]
 | 
			
		||||
; Number of repositories that are displayed on one explore page
 | 
			
		||||
EXPLORE_PAGING_NUM = 20
 | 
			
		||||
; Number of issues that are displayed on one page
 | 
			
		||||
ISSUE_PAGING_NUM = 10
 | 
			
		||||
; Number of maximum commits displayed in one activity feed
 | 
			
		||||
FEED_MAX_COMMIT_NUM = 5
 | 
			
		||||
; Number of maximum commits displayed in commit graph.
 | 
			
		||||
GRAPH_MAX_COMMIT_NUM = 100
 | 
			
		||||
; Number of line of codes shown for a code comment
 | 
			
		||||
CODE_COMMENT_LINES = 4
 | 
			
		||||
; Value of `theme-color` meta tag, used by Android >= 5.0
 | 
			
		||||
; An invalid color like "none" or "disable" will have the default style
 | 
			
		||||
; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
 | 
			
		||||
THEME_COLOR_META_TAG = `#6cc644`
 | 
			
		||||
; Max size of files to be displayed (default is 8MiB)
 | 
			
		||||
MAX_DISPLAY_FILE_SIZE = 8388608
 | 
			
		||||
; Whether the email of the user should be shown in the Explore Users page
 | 
			
		||||
SHOW_USER_EMAIL = true
 | 
			
		||||
; Set the default theme for the Gitea install
 | 
			
		||||
DEFAULT_THEME = gitea
 | 
			
		||||
; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`.
 | 
			
		||||
THEMES = gitea,arc-green
 | 
			
		||||
; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
 | 
			
		||||
DEFAULT_SHOW_FULL_NAME = false
 | 
			
		||||
 | 
			
		||||
[ui.admin]
 | 
			
		||||
; Number of users that are displayed on one page
 | 
			
		||||
USER_PAGING_NUM = 50
 | 
			
		||||
; Number of repos that are displayed on one page
 | 
			
		||||
REPO_PAGING_NUM = 50
 | 
			
		||||
; Number of notices that are displayed on one page
 | 
			
		||||
NOTICE_PAGING_NUM = 25
 | 
			
		||||
; Number of organizations that are displayed on one page
 | 
			
		||||
ORG_PAGING_NUM = 50
 | 
			
		||||
 | 
			
		||||
[ui.user]
 | 
			
		||||
; Number of repos that are displayed on one page
 | 
			
		||||
REPO_PAGING_NUM = 15
 | 
			
		||||
 | 
			
		||||
[ui.meta]
 | 
			
		||||
AUTHOR = Gitea - Git with a cup of tea
 | 
			
		||||
DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
 | 
			
		||||
KEYWORDS = go,git,self-hosted,gitea
 | 
			
		||||
 | 
			
		||||
[markdown]
 | 
			
		||||
; Enable hard line break extension
 | 
			
		||||
ENABLE_HARD_LINE_BREAK = false
 | 
			
		||||
; List of custom URL-Schemes that are allowed as links when rendering Markdown
 | 
			
		||||
; for example git,magnet
 | 
			
		||||
CUSTOM_URL_SCHEMES =
 | 
			
		||||
; List of file extensions that should be rendered/edited as Markdown
 | 
			
		||||
; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma
 | 
			
		||||
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
 | 
			
		||||
 | 
			
		||||
[server]
 | 
			
		||||
; The protocol the server listens on. One of 'http', 'https', 'unix' or 'fcgi'.
 | 
			
		||||
PROTOCOL = http
 | 
			
		||||
DOMAIN = localhost
 | 
			
		||||
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
 | 
			
		||||
; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
 | 
			
		||||
HTTP_ADDR = 0.0.0.0
 | 
			
		||||
HTTP_PORT = 3000
 | 
			
		||||
; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server
 | 
			
		||||
; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main
 | 
			
		||||
; ROOT_URL.  Defaults are false for REDIRECT_OTHER_PORT and 80 for
 | 
			
		||||
; PORT_TO_REDIRECT.
 | 
			
		||||
REDIRECT_OTHER_PORT = false
 | 
			
		||||
PORT_TO_REDIRECT = 80
 | 
			
		||||
; Permission for unix socket
 | 
			
		||||
UNIX_SOCKET_PERMISSION = 666
 | 
			
		||||
; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
 | 
			
		||||
; In most cases you do not need to change the default value.
 | 
			
		||||
; Alter it only if your SSH server node is not the same as HTTP node.
 | 
			
		||||
; Do not set this variable if PROTOCOL is set to 'unix'.
 | 
			
		||||
LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
 | 
			
		||||
; Disable SSH feature when not available
 | 
			
		||||
DISABLE_SSH = false
 | 
			
		||||
; Whether to use the builtin SSH server or not.
 | 
			
		||||
START_SSH_SERVER = false
 | 
			
		||||
; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER.
 | 
			
		||||
BUILTIN_SSH_SERVER_USER =
 | 
			
		||||
; Domain name to be exposed in clone URL
 | 
			
		||||
SSH_DOMAIN = %(DOMAIN)s
 | 
			
		||||
; The network interface the builtin SSH server should listen on
 | 
			
		||||
SSH_LISTEN_HOST =
 | 
			
		||||
; Port number to be exposed in clone URL
 | 
			
		||||
SSH_PORT = 22
 | 
			
		||||
; The port number the builtin SSH server should listen on
 | 
			
		||||
SSH_LISTEN_PORT = %(SSH_PORT)s
 | 
			
		||||
; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
 | 
			
		||||
SSH_ROOT_PATH =
 | 
			
		||||
; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
 | 
			
		||||
; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
 | 
			
		||||
SSH_CREATE_AUTHORIZED_KEYS_FILE = true
 | 
			
		||||
; For the built-in SSH server, choose the ciphers to support for SSH connections,
 | 
			
		||||
; for system SSH this setting has no effect
 | 
			
		||||
SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
 | 
			
		||||
; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections,
 | 
			
		||||
; for system SSH this setting has no effect
 | 
			
		||||
SSH_SERVER_KEY_EXCHANGES = diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, curve25519-sha256@libssh.org
 | 
			
		||||
; For the built-in SSH server, choose the MACs to support for SSH connections,
 | 
			
		||||
; for system SSH this setting has no effect
 | 
			
		||||
SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96
 | 
			
		||||
; Directory to create temporary files in when testing public keys using ssh-keygen,
 | 
			
		||||
; default is the system temporary directory.
 | 
			
		||||
SSH_KEY_TEST_PATH =
 | 
			
		||||
; Path to ssh-keygen, default is 'ssh-keygen' which means the shell is responsible for finding out which one to call.
 | 
			
		||||
SSH_KEYGEN_PATH = ssh-keygen
 | 
			
		||||
; Enable SSH Authorized Key Backup when rewriting all keys, default is true
 | 
			
		||||
SSH_BACKUP_AUTHORIZED_KEYS = true
 | 
			
		||||
; Enable exposure of SSH clone URL to anonymous visitors, default is false
 | 
			
		||||
SSH_EXPOSE_ANONYMOUS = false
 | 
			
		||||
; Indicate whether to check minimum key size with corresponding type
 | 
			
		||||
MINIMUM_KEY_SIZE_CHECK = false
 | 
			
		||||
; Disable CDN even in "prod" mode
 | 
			
		||||
OFFLINE_MODE = false
 | 
			
		||||
DISABLE_ROUTER_LOG = false
 | 
			
		||||
; Generate steps:
 | 
			
		||||
; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
 | 
			
		||||
;
 | 
			
		||||
; Or from a .pfx file exported from the Windows certificate store (do
 | 
			
		||||
; not forget to export the private key):
 | 
			
		||||
; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
 | 
			
		||||
; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
 | 
			
		||||
CERT_FILE = custom/https/cert.pem
 | 
			
		||||
KEY_FILE = custom/https/key.pem
 | 
			
		||||
; Root directory containing templates and static files.
 | 
			
		||||
; default is the path where Gitea is executed
 | 
			
		||||
STATIC_ROOT_PATH =
 | 
			
		||||
; Default path for App data
 | 
			
		||||
APP_DATA_PATH = data
 | 
			
		||||
; Application level GZIP support
 | 
			
		||||
ENABLE_GZIP = false
 | 
			
		||||
; Application profiling (memory and cpu)
 | 
			
		||||
; For "web" command it listens on localhost:6060
 | 
			
		||||
; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)_<username>_<temporary id>
 | 
			
		||||
ENABLE_PPROF = false
 | 
			
		||||
; PPROF_DATA_PATH, use an absolute path when you start gitea as service
 | 
			
		||||
PPROF_DATA_PATH = data/tmp/pprof
 | 
			
		||||
; Landing page, can be "home", "explore", or "organizations"
 | 
			
		||||
LANDING_PAGE = home
 | 
			
		||||
; Enables git-lfs support. true or false, default is false.
 | 
			
		||||
LFS_START_SERVER = false
 | 
			
		||||
; Where your lfs files reside, default is data/lfs.
 | 
			
		||||
LFS_CONTENT_PATH = data/lfs
 | 
			
		||||
; LFS authentication secret, change this yourself
 | 
			
		||||
LFS_JWT_SECRET =
 | 
			
		||||
; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
 | 
			
		||||
LFS_HTTP_AUTH_EXPIRY = 20m
 | 
			
		||||
 | 
			
		||||
; Define allowed algorithms and their minimum key length (use -1 to disable a type)
 | 
			
		||||
[ssh.minimum_key_sizes]
 | 
			
		||||
ED25519 = 256
 | 
			
		||||
ECDSA = 256
 | 
			
		||||
RSA = 2048
 | 
			
		||||
DSA = 1024
 | 
			
		||||
 | 
			
		||||
[database]
 | 
			
		||||
; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice
 | 
			
		||||
DB_TYPE = mysql
 | 
			
		||||
HOST = 127.0.0.1:3306
 | 
			
		||||
NAME = gitea
 | 
			
		||||
USER = root
 | 
			
		||||
; Use PASSWD = `your password` for quoting if you use special characters in the password.
 | 
			
		||||
PASSWD =
 | 
			
		||||
; For Postgres, either "disable" (default), "require", or "verify-full"
 | 
			
		||||
; For MySQL, either "false" (default), "true", or "skip-verify"
 | 
			
		||||
SSL_MODE = disable
 | 
			
		||||
; For MySQL only, either "utf8" or "utf8mb4", default is "utf8".
 | 
			
		||||
; NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
 | 
			
		||||
CHARSET = utf8
 | 
			
		||||
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
 | 
			
		||||
PATH = data/gitea.db
 | 
			
		||||
; For "sqlite3" only. Query timeout
 | 
			
		||||
SQLITE_TIMEOUT = 500
 | 
			
		||||
; For iterate buffer, default is 50
 | 
			
		||||
ITERATE_BUFFER_SIZE = 50
 | 
			
		||||
; Show the database generated SQL
 | 
			
		||||
LOG_SQL = true
 | 
			
		||||
; Maximum number of DB Connect retries
 | 
			
		||||
DB_RETRIES = 10
 | 
			
		||||
; Backoff time per DB retry (time.Duration)
 | 
			
		||||
DB_RETRY_BACKOFF = 3s
 | 
			
		||||
 | 
			
		||||
[indexer]
 | 
			
		||||
; Issue indexer type, currently support: bleve or db, default is bleve
 | 
			
		||||
ISSUE_INDEXER_TYPE = bleve
 | 
			
		||||
; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
 | 
			
		||||
ISSUE_INDEXER_PATH = indexers/issues.bleve
 | 
			
		||||
; Issue indexer queue, currently support: channel or levelqueue, default is levelqueue
 | 
			
		||||
ISSUE_INDEXER_QUEUE_TYPE = levelqueue
 | 
			
		||||
; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the queue will be saved path,
 | 
			
		||||
; default is indexers/issues.queue
 | 
			
		||||
ISSUE_INDEXER_QUEUE_DIR = indexers/issues.queue
 | 
			
		||||
; When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string.
 | 
			
		||||
ISSUE_INDEXER_QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
 | 
			
		||||
; Batch queue number, default is 20
 | 
			
		||||
ISSUE_INDEXER_QUEUE_BATCH_NUMBER = 20
 | 
			
		||||
 | 
			
		||||
; repo indexer by default disabled, since it uses a lot of disk space
 | 
			
		||||
REPO_INDEXER_ENABLED = false
 | 
			
		||||
REPO_INDEXER_PATH = indexers/repos.bleve
 | 
			
		||||
UPDATE_BUFFER_LEN = 20
 | 
			
		||||
MAX_FILE_SIZE = 1048576
 | 
			
		||||
 | 
			
		||||
[admin]
 | 
			
		||||
; Disallow regular (non-admin) users from creating organizations.
 | 
			
		||||
DISABLE_REGULAR_ORG_CREATION = false
 | 
			
		||||
 | 
			
		||||
[security]
 | 
			
		||||
; Whether the installer is disabled
 | 
			
		||||
INSTALL_LOCK = false
 | 
			
		||||
; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
 | 
			
		||||
SECRET_KEY = !#@FDEWREWR&*(
 | 
			
		||||
; How long to remember that an user is logged in before requiring relogin (in days)
 | 
			
		||||
LOGIN_REMEMBER_DAYS = 7
 | 
			
		||||
COOKIE_USERNAME = gitea_awesome
 | 
			
		||||
COOKIE_REMEMBER_NAME = gitea_incredible
 | 
			
		||||
; Reverse proxy authentication header name of user name
 | 
			
		||||
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
 | 
			
		||||
REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL
 | 
			
		||||
; The minimum password length for new Users
 | 
			
		||||
MIN_PASSWORD_LENGTH = 6
 | 
			
		||||
; Set to true to allow users to import local server paths
 | 
			
		||||
IMPORT_LOCAL_PATHS = false
 | 
			
		||||
; Set to true to prevent all users (including admin) from creating custom git hooks
 | 
			
		||||
DISABLE_GIT_HOOKS = false
 | 
			
		||||
 | 
			
		||||
[openid]
 | 
			
		||||
;
 | 
			
		||||
; OpenID is an open, standard and decentralized authentication protocol.
 | 
			
		||||
; Your identity is the address of a webpage you provide, which describes
 | 
			
		||||
; how to prove you are in control of that page.
 | 
			
		||||
;
 | 
			
		||||
; For more info: https://en.wikipedia.org/wiki/OpenID
 | 
			
		||||
;
 | 
			
		||||
; Current implementation supports OpenID-2.0
 | 
			
		||||
;
 | 
			
		||||
; Tested to work providers at the time of writing:
 | 
			
		||||
;  - Any GNUSocial node (your.hostname.tld/username)
 | 
			
		||||
;  - Any SimpleID provider (http://simpleid.koinic.net)
 | 
			
		||||
;  - http://openid.org.cn/
 | 
			
		||||
;  - openid.stackexchange.com
 | 
			
		||||
;  - login.launchpad.net
 | 
			
		||||
;  - <username>.livejournal.com
 | 
			
		||||
;
 | 
			
		||||
; Whether to allow signin in via OpenID
 | 
			
		||||
ENABLE_OPENID_SIGNIN = true
 | 
			
		||||
; Whether to allow registering via OpenID
 | 
			
		||||
; Do not include to rely on rhw DISABLE_REGISTRATION setting
 | 
			
		||||
;ENABLE_OPENID_SIGNUP = true
 | 
			
		||||
; Allowed URI patterns (POSIX regexp).
 | 
			
		||||
; Space separated.
 | 
			
		||||
; Only these would be allowed if non-blank.
 | 
			
		||||
; Example value: trusted.domain.org trusted.domain.net
 | 
			
		||||
WHITELISTED_URIS =
 | 
			
		||||
; Forbidden URI patterns (POSIX regexp).
 | 
			
		||||
; Space separated.
 | 
			
		||||
; Only used if WHITELISTED_URIS is blank.
 | 
			
		||||
; Example value: loadaverage.org/badguy stackexchange.com/.*spammer
 | 
			
		||||
BLACKLISTED_URIS =
 | 
			
		||||
 | 
			
		||||
[service]
 | 
			
		||||
; Time limit to confirm account/email registration
 | 
			
		||||
ACTIVE_CODE_LIVE_MINUTES = 180
 | 
			
		||||
; Time limit to perform the reset of a forgotten password
 | 
			
		||||
RESET_PASSWD_CODE_LIVE_MINUTES = 180
 | 
			
		||||
; Whether a new user needs to confirm their email when registering.
 | 
			
		||||
REGISTER_EMAIL_CONFIRM = false
 | 
			
		||||
; List of domain names that are allowed to be used to register on a Gitea instance
 | 
			
		||||
; gitea.io,example.com
 | 
			
		||||
EMAIL_DOMAIN_WHITELIST=
 | 
			
		||||
; Disallow registration, only allow admins to create accounts.
 | 
			
		||||
DISABLE_REGISTRATION = false
 | 
			
		||||
; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false
 | 
			
		||||
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
 | 
			
		||||
; User must sign in to view anything.
 | 
			
		||||
REQUIRE_SIGNIN_VIEW = false
 | 
			
		||||
; Mail notification
 | 
			
		||||
ENABLE_NOTIFY_MAIL = false
 | 
			
		||||
; More detail: https://github.com/gogits/gogs/issues/165
 | 
			
		||||
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
 | 
			
		||||
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
 | 
			
		||||
ENABLE_REVERSE_PROXY_EMAIL = false
 | 
			
		||||
; Enable captcha validation for registration
 | 
			
		||||
ENABLE_CAPTCHA = false
 | 
			
		||||
; Type of captcha you want to use. Options: image, recaptcha
 | 
			
		||||
CAPTCHA_TYPE = image
 | 
			
		||||
; Enable recaptcha to use Google's recaptcha service
 | 
			
		||||
; Go to https://www.google.com/recaptcha/admin to sign up for a key
 | 
			
		||||
RECAPTCHA_SECRET  =
 | 
			
		||||
RECAPTCHA_SITEKEY =
 | 
			
		||||
; Change this to use recaptcha.net or other recaptcha service
 | 
			
		||||
RECAPTCHA_URL = https://www.google.com/recaptcha/
 | 
			
		||||
; Default value for KeepEmailPrivate
 | 
			
		||||
; Each new user will get the value of this setting copied into their profile
 | 
			
		||||
DEFAULT_KEEP_EMAIL_PRIVATE = false
 | 
			
		||||
; Default value for AllowCreateOrganization
 | 
			
		||||
; Every new user will have rights set to create organizations depending on this setting
 | 
			
		||||
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
 | 
			
		||||
; Either "public", "limited" or "private", default is "public"
 | 
			
		||||
; Limited is for signed user only
 | 
			
		||||
; Private is only for member of the organization
 | 
			
		||||
; Public is for everyone
 | 
			
		||||
DEFAULT_ORG_VISIBILITY = public
 | 
			
		||||
; Default value for EnableDependencies
 | 
			
		||||
; Repositories will use dependencies by default depending on this setting
 | 
			
		||||
DEFAULT_ENABLE_DEPENDENCIES = true
 | 
			
		||||
; Enable heatmap on users profiles.
 | 
			
		||||
ENABLE_USER_HEATMAP = true
 | 
			
		||||
; Enable Timetracking
 | 
			
		||||
ENABLE_TIMETRACKING = true
 | 
			
		||||
; Default value for EnableTimetracking
 | 
			
		||||
; Repositories will use timetracking by default depending on this setting
 | 
			
		||||
DEFAULT_ENABLE_TIMETRACKING = true
 | 
			
		||||
; Default value for AllowOnlyContributorsToTrackTime
 | 
			
		||||
; Only users with write permissions can track time if this is true
 | 
			
		||||
DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
 | 
			
		||||
; Default value for the domain part of the user's email address in the git log
 | 
			
		||||
; if he has set KeepEmailPrivate to true. The user's email will be replaced with a
 | 
			
		||||
; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
 | 
			
		||||
NO_REPLY_ADDRESS = noreply.example.org
 | 
			
		||||
; Show Registration button
 | 
			
		||||
SHOW_REGISTRATION_BUTTON = true
 | 
			
		||||
; Default value for AutoWatchNewRepos
 | 
			
		||||
; When adding a repo to a team or creating a new repo all team members will watch the
 | 
			
		||||
; repo automatically if enabled
 | 
			
		||||
AUTO_WATCH_NEW_REPOS = true
 | 
			
		||||
 | 
			
		||||
[webhook]
 | 
			
		||||
; Hook task queue length, increase if webhook shooting starts hanging
 | 
			
		||||
QUEUE_LENGTH = 1000
 | 
			
		||||
; Deliver timeout in seconds
 | 
			
		||||
DELIVER_TIMEOUT = 5
 | 
			
		||||
; Allow insecure certification
 | 
			
		||||
SKIP_TLS_VERIFY = false
 | 
			
		||||
; Number of history information in each page
 | 
			
		||||
PAGING_NUM = 10
 | 
			
		||||
 | 
			
		||||
[mailer]
 | 
			
		||||
ENABLED = false
 | 
			
		||||
; Buffer length of channel, keep it as it is if you don't know what it is.
 | 
			
		||||
SEND_BUFFER_LEN = 100
 | 
			
		||||
; Prefix displayed before subject in mail
 | 
			
		||||
SUBJECT_PREFIX =
 | 
			
		||||
; Mail server
 | 
			
		||||
; Gmail: smtp.gmail.com:587
 | 
			
		||||
; QQ: smtp.qq.com:465
 | 
			
		||||
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
 | 
			
		||||
HOST =
 | 
			
		||||
; Disable HELO operation when hostnames are different.
 | 
			
		||||
DISABLE_HELO =
 | 
			
		||||
; Custom hostname for HELO operation, if no value is provided, one is retrieved from system.
 | 
			
		||||
HELO_HOSTNAME =
 | 
			
		||||
; Do not verify the certificate of the server. Only use this for self-signed certificates
 | 
			
		||||
SKIP_VERIFY =
 | 
			
		||||
; Use client certificate
 | 
			
		||||
USE_CERTIFICATE = false
 | 
			
		||||
CERT_FILE = custom/mailer/cert.pem
 | 
			
		||||
KEY_FILE = custom/mailer/key.pem
 | 
			
		||||
; Should SMTP connection use TLS
 | 
			
		||||
IS_TLS_ENABLED = false
 | 
			
		||||
; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
 | 
			
		||||
FROM =
 | 
			
		||||
; Mailer user name and password
 | 
			
		||||
USER =
 | 
			
		||||
; Use PASSWD = `your password` for quoting if you use special characters in the password.
 | 
			
		||||
PASSWD =
 | 
			
		||||
; Send mails as plain text
 | 
			
		||||
SEND_AS_PLAIN_TEXT = false
 | 
			
		||||
; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log)
 | 
			
		||||
MAILER_TYPE = smtp
 | 
			
		||||
; Specify an alternative sendmail binary
 | 
			
		||||
SENDMAIL_PATH = sendmail
 | 
			
		||||
; Specify any extra sendmail arguments
 | 
			
		||||
SENDMAIL_ARGS =
 | 
			
		||||
 | 
			
		||||
[cache]
 | 
			
		||||
; Either "memory", "redis", or "memcache", default is "memory"
 | 
			
		||||
ADAPTER = memory
 | 
			
		||||
; For "memory" only, GC interval in seconds, default is 60
 | 
			
		||||
INTERVAL = 60
 | 
			
		||||
; For "redis" and "memcache", connection host address
 | 
			
		||||
; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
 | 
			
		||||
; memcache: `127.0.0.1:11211`
 | 
			
		||||
HOST =
 | 
			
		||||
; Time to keep items in cache if not used, default is 16 hours.
 | 
			
		||||
; Setting it to 0 disables caching
 | 
			
		||||
ITEM_TTL = 16h
 | 
			
		||||
 | 
			
		||||
[session]
 | 
			
		||||
; Either "memory", "file", or "redis", default is "memory"
 | 
			
		||||
PROVIDER = memory
 | 
			
		||||
; Provider config options
 | 
			
		||||
; memory: doesn't have any config yet
 | 
			
		||||
; file: session file path, e.g. `data/sessions`
 | 
			
		||||
; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
 | 
			
		||||
; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
 | 
			
		||||
PROVIDER_CONFIG = data/sessions
 | 
			
		||||
; Session cookie name
 | 
			
		||||
COOKIE_NAME = i_like_gitea
 | 
			
		||||
; If you use session in https only, default is false
 | 
			
		||||
COOKIE_SECURE = false
 | 
			
		||||
; Enable set cookie, default is true
 | 
			
		||||
ENABLE_SET_COOKIE = true
 | 
			
		||||
; Session GC time interval in seconds, default is 86400 (1 day)
 | 
			
		||||
GC_INTERVAL_TIME = 86400
 | 
			
		||||
; Session life time in seconds, default is 86400 (1 day)
 | 
			
		||||
SESSION_LIFE_TIME = 86400
 | 
			
		||||
 | 
			
		||||
[picture]
 | 
			
		||||
AVATAR_UPLOAD_PATH = data/avatars
 | 
			
		||||
REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
 | 
			
		||||
; How Gitea deals with missing repository avatars
 | 
			
		||||
; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used
 | 
			
		||||
REPOSITORY_AVATAR_FALLBACK = none
 | 
			
		||||
REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png
 | 
			
		||||
; Max Width and Height of uploaded avatars.
 | 
			
		||||
; This is to limit the amount of RAM used when resizing the image.
 | 
			
		||||
AVATAR_MAX_WIDTH = 4096
 | 
			
		||||
AVATAR_MAX_HEIGHT = 3072
 | 
			
		||||
; Maximum alloved file size for uploaded avatars.
 | 
			
		||||
; This is to limit the amount of RAM used when resizing the image.
 | 
			
		||||
AVATAR_MAX_FILE_SIZE = 1048576
 | 
			
		||||
; Chinese users can choose "duoshuo"
 | 
			
		||||
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
 | 
			
		||||
GRAVATAR_SOURCE = gravatar
 | 
			
		||||
; This value will always be true in offline mode.
 | 
			
		||||
DISABLE_GRAVATAR = false
 | 
			
		||||
; Federated avatar lookup uses DNS to discover avatar associated
 | 
			
		||||
; with emails, see https://www.libravatar.org
 | 
			
		||||
; This value will always be false in offline mode or when Gravatar is disabled.
 | 
			
		||||
ENABLE_FEDERATED_AVATAR = false
 | 
			
		||||
 | 
			
		||||
[attachment]
 | 
			
		||||
; Whether attachments are enabled. Defaults to `true`
 | 
			
		||||
ENABLED = true
 | 
			
		||||
; Path for attachments. Defaults to `data/attachments`
 | 
			
		||||
PATH = data/attachments
 | 
			
		||||
; One or more allowed types, e.g. image/jpeg|image/png
 | 
			
		||||
ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip
 | 
			
		||||
; Max size of each file. Defaults to 4MB
 | 
			
		||||
MAX_SIZE = 4
 | 
			
		||||
; Max number of files per upload. Defaults to 5
 | 
			
		||||
MAX_FILES = 5
 | 
			
		||||
 | 
			
		||||
[time]
 | 
			
		||||
; Specifies the format for fully outputted dates. Defaults to RFC1123
 | 
			
		||||
; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
 | 
			
		||||
; For more information about the format see http://golang.org/pkg/time/#pkg-constants
 | 
			
		||||
FORMAT =
 | 
			
		||||
 | 
			
		||||
[log]
 | 
			
		||||
ROOT_PATH =
 | 
			
		||||
; Either "console", "file", "conn", "smtp" or "database", default is "console"
 | 
			
		||||
; Use comma to separate multiple modes, e.g. "console, file"
 | 
			
		||||
MODE = console
 | 
			
		||||
; Buffer length of the channel, keep it as it is if you don't know what it is.
 | 
			
		||||
BUFFER_LEN = 10000
 | 
			
		||||
REDIRECT_MACARON_LOG = false
 | 
			
		||||
MACARON = file
 | 
			
		||||
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
 | 
			
		||||
ROUTER_LOG_LEVEL = Info
 | 
			
		||||
ROUTER = console
 | 
			
		||||
ENABLE_ACCESS_LOG = false
 | 
			
		||||
ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"
 | 
			
		||||
ACCESS = file
 | 
			
		||||
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
 | 
			
		||||
LEVEL = Info
 | 
			
		||||
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None"
 | 
			
		||||
STACKTRACE_LEVEL = None
 | 
			
		||||
 | 
			
		||||
; Generic log modes
 | 
			
		||||
[log.x]
 | 
			
		||||
FLAGS = stdflags
 | 
			
		||||
EXPRESSION =
 | 
			
		||||
PREFIX =
 | 
			
		||||
COLORIZE = false
 | 
			
		||||
 | 
			
		||||
; For "console" mode only
 | 
			
		||||
[log.console]
 | 
			
		||||
LEVEL =
 | 
			
		||||
STDERR = false
 | 
			
		||||
 | 
			
		||||
; For "file" mode only
 | 
			
		||||
[log.file]
 | 
			
		||||
LEVEL =
 | 
			
		||||
; Set the file_name for the logger. If this is a relative path this
 | 
			
		||||
; will be relative to ROOT_PATH
 | 
			
		||||
FILE_NAME =
 | 
			
		||||
; This enables automated log rotate(switch of following options), default is true
 | 
			
		||||
LOG_ROTATE = true
 | 
			
		||||
; Max number of lines in a single file, default is 1000000
 | 
			
		||||
MAX_LINES = 1000000
 | 
			
		||||
; Max size shift of a single file, default is 28 means 1 << 28, 256MB
 | 
			
		||||
MAX_SIZE_SHIFT = 28
 | 
			
		||||
; Segment log daily, default is true
 | 
			
		||||
DAILY_ROTATE = true
 | 
			
		||||
; delete the log file after n days, default is 7
 | 
			
		||||
MAX_DAYS = 7
 | 
			
		||||
; compress logs with gzip
 | 
			
		||||
COMPRESS = true
 | 
			
		||||
; compression level see godoc for compress/gzip
 | 
			
		||||
COMPRESSION_LEVEL = -1
 | 
			
		||||
 | 
			
		||||
; For "conn" mode only
 | 
			
		||||
[log.conn]
 | 
			
		||||
LEVEL =
 | 
			
		||||
; Reconnect host for every single message, default is false
 | 
			
		||||
RECONNECT_ON_MSG = false
 | 
			
		||||
; Try to reconnect when connection is lost, default is false
 | 
			
		||||
RECONNECT = false
 | 
			
		||||
; Either "tcp", "unix" or "udp", default is "tcp"
 | 
			
		||||
PROTOCOL = tcp
 | 
			
		||||
; Host address
 | 
			
		||||
ADDR =
 | 
			
		||||
 | 
			
		||||
; For "smtp" mode only
 | 
			
		||||
[log.smtp]
 | 
			
		||||
LEVEL =
 | 
			
		||||
; Name displayed in mail title, default is "Diagnostic message from server"
 | 
			
		||||
SUBJECT = Diagnostic message from server
 | 
			
		||||
; Mail server
 | 
			
		||||
HOST =
 | 
			
		||||
; Mailer user name and password
 | 
			
		||||
USER =
 | 
			
		||||
; Use PASSWD = `your password` for quoting if you use special characters in the password.
 | 
			
		||||
PASSWD =
 | 
			
		||||
; Receivers, can be one or more, e.g. 1@example.com,2@example.com
 | 
			
		||||
RECEIVERS =
 | 
			
		||||
 | 
			
		||||
[cron]
 | 
			
		||||
; Enable running cron tasks periodically.
 | 
			
		||||
ENABLED = true
 | 
			
		||||
; Run cron tasks when Gitea starts.
 | 
			
		||||
RUN_AT_START = false
 | 
			
		||||
 | 
			
		||||
; Update mirrors
 | 
			
		||||
[cron.update_mirrors]
 | 
			
		||||
SCHEDULE = @every 10m
 | 
			
		||||
 | 
			
		||||
; Repository health check
 | 
			
		||||
[cron.repo_health_check]
 | 
			
		||||
SCHEDULE = @every 24h
 | 
			
		||||
TIMEOUT = 60s
 | 
			
		||||
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
 | 
			
		||||
; see more on http://git-scm.com/docs/git-fsck
 | 
			
		||||
ARGS =
 | 
			
		||||
 | 
			
		||||
; Check repository statistics
 | 
			
		||||
[cron.check_repo_stats]
 | 
			
		||||
RUN_AT_START = true
 | 
			
		||||
SCHEDULE = @every 24h
 | 
			
		||||
 | 
			
		||||
; Clean up old repository archives
 | 
			
		||||
[cron.archive_cleanup]
 | 
			
		||||
; Whether to enable the job
 | 
			
		||||
ENABLED = true
 | 
			
		||||
; Whether to always run at least once at start up time (if ENABLED)
 | 
			
		||||
RUN_AT_START = true
 | 
			
		||||
; Time interval for job to run
 | 
			
		||||
SCHEDULE = @every 24h
 | 
			
		||||
; Archives created more than OLDER_THAN ago are subject to deletion
 | 
			
		||||
OLDER_THAN = 24h
 | 
			
		||||
 | 
			
		||||
; Synchronize external user data (only LDAP user synchronization is supported)
 | 
			
		||||
[cron.sync_external_users]
 | 
			
		||||
; Synchronize external user data when starting server (default false)
 | 
			
		||||
RUN_AT_START = false
 | 
			
		||||
; Interval as a duration between each synchronization (default every 24h)
 | 
			
		||||
SCHEDULE = @every 24h
 | 
			
		||||
; Create new users, update existing user data and disable users that are not in external source anymore (default)
 | 
			
		||||
;   or only create new users if UPDATE_EXISTING is set to false
 | 
			
		||||
UPDATE_EXISTING = true
 | 
			
		||||
 | 
			
		||||
[git]
 | 
			
		||||
; Disables highlight of added and removed changes
 | 
			
		||||
DISABLE_DIFF_HIGHLIGHT = false
 | 
			
		||||
; Max number of lines allowed in a single file in diff view
 | 
			
		||||
MAX_GIT_DIFF_LINES = 1000
 | 
			
		||||
; Max number of allowed characters in a line in diff view
 | 
			
		||||
MAX_GIT_DIFF_LINE_CHARACTERS = 5000
 | 
			
		||||
; Max number of files shown in diff view
 | 
			
		||||
MAX_GIT_DIFF_FILES = 100
 | 
			
		||||
; Arguments for command 'git gc', e.g. "--aggressive --auto"
 | 
			
		||||
; see more on http://git-scm.com/docs/git-gc/
 | 
			
		||||
GC_ARGS =
 | 
			
		||||
; If use git wire protocol version 2 when git version >= 2.18, default is true, set to false when you always want git wire protocol version 1
 | 
			
		||||
EnableAutoGitWireProtocol = true
 | 
			
		||||
 | 
			
		||||
; Operation timeout in seconds
 | 
			
		||||
[git.timeout]
 | 
			
		||||
DEFAULT = 360
 | 
			
		||||
MIGRATE = 600
 | 
			
		||||
MIRROR = 300
 | 
			
		||||
CLONE = 300
 | 
			
		||||
PULL = 300
 | 
			
		||||
GC = 60
 | 
			
		||||
 | 
			
		||||
[mirror]
 | 
			
		||||
; Default interval as a duration between each check
 | 
			
		||||
DEFAULT_INTERVAL = 8h
 | 
			
		||||
; Min interval as a duration must be > 1m
 | 
			
		||||
MIN_INTERVAL = 10m
 | 
			
		||||
 | 
			
		||||
[api]
 | 
			
		||||
; Enables Swagger. True or false; default is true.
 | 
			
		||||
ENABLE_SWAGGER = true
 | 
			
		||||
; Max number of items in a page
 | 
			
		||||
MAX_RESPONSE_ITEMS = 50
 | 
			
		||||
; Default paging number of api
 | 
			
		||||
DEFAULT_PAGING_NUM = 30
 | 
			
		||||
; Default and maximum number of items per page for git trees api
 | 
			
		||||
DEFAULT_GIT_TREES_PER_PAGE = 1000
 | 
			
		||||
; Default size of a blob returned by the blobs API (default is 10MiB)
 | 
			
		||||
DEFAULT_MAX_BLOB_SIZE = 10485760
 | 
			
		||||
 | 
			
		||||
[oauth2]
 | 
			
		||||
; Enables OAuth2 provider
 | 
			
		||||
ENABLE = true
 | 
			
		||||
; Lifetime of an OAuth2 access token in seconds
 | 
			
		||||
ACCESS_TOKEN_EXPIRATION_TIME=3600
 | 
			
		||||
; Lifetime of an OAuth2 access token in hours
 | 
			
		||||
REFRESH_TOKEN_EXPIRATION_TIME=730
 | 
			
		||||
; Check if refresh token got already used
 | 
			
		||||
INVALIDATE_REFRESH_TOKENS=false
 | 
			
		||||
; OAuth2 authentication secret for access and refresh tokens, change this a unique string.
 | 
			
		||||
JWT_SECRET=Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
 | 
			
		||||
 | 
			
		||||
[i18n]
 | 
			
		||||
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
 | 
			
		||||
NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
 | 
			
		||||
 | 
			
		||||
; Used for datetimepicker
 | 
			
		||||
[i18n.datelang]
 | 
			
		||||
en-US = en
 | 
			
		||||
zh-CN = zh
 | 
			
		||||
zh-HK = zh-HK
 | 
			
		||||
zh-TW = zh-TW
 | 
			
		||||
de-DE = de
 | 
			
		||||
fr-FR = fr
 | 
			
		||||
nl-NL = nl
 | 
			
		||||
lv-LV = lv
 | 
			
		||||
ru-RU = ru
 | 
			
		||||
uk-UA = uk
 | 
			
		||||
ja-JP = ja
 | 
			
		||||
es-ES = es
 | 
			
		||||
pt-BR = pt-BR
 | 
			
		||||
pl-PL = pl
 | 
			
		||||
bg-BG = bg
 | 
			
		||||
it-IT = it
 | 
			
		||||
fi-FI = fi
 | 
			
		||||
tr-TR = tr
 | 
			
		||||
cs-CZ = cs-CZ
 | 
			
		||||
sr-SP = sr
 | 
			
		||||
sv-SE = sv
 | 
			
		||||
ko-KR = ko
 | 
			
		||||
 | 
			
		||||
[U2F]
 | 
			
		||||
; NOTE: THE DEFAULT VALUES HERE WILL NEED TO BE CHANGED
 | 
			
		||||
; Two Factor authentication with security keys
 | 
			
		||||
; https://developers.yubico.com/U2F/App_ID.html
 | 
			
		||||
;APP_ID = http://localhost:3000/
 | 
			
		||||
; Comma seperated list of trusted facets
 | 
			
		||||
;TRUSTED_FACETS = http://localhost:3000/
 | 
			
		||||
 | 
			
		||||
; Extension mapping to highlight class
 | 
			
		||||
; e.g. .toml=ini
 | 
			
		||||
[highlight.mapping]
 | 
			
		||||
 | 
			
		||||
[other]
 | 
			
		||||
SHOW_FOOTER_BRANDING = false
 | 
			
		||||
; Show version information about Gitea and Go in the footer
 | 
			
		||||
SHOW_FOOTER_VERSION = true
 | 
			
		||||
; Show template execution time in the footer
 | 
			
		||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
 | 
			
		||||
 | 
			
		||||
[markup.asciidoc]
 | 
			
		||||
ENABLED = false
 | 
			
		||||
; List of file extensions that should be rendered by an external command
 | 
			
		||||
FILE_EXTENSIONS = .adoc,.asciidoc
 | 
			
		||||
; External command to render all matching extensions
 | 
			
		||||
RENDER_COMMAND = "asciidoc --out-file=- -"
 | 
			
		||||
; Don't pass the file on STDIN, pass the filename as argument instead.
 | 
			
		||||
IS_INPUT_FILE = false
 | 
			
		||||
 | 
			
		||||
[metrics]
 | 
			
		||||
; Enables metrics endpoint. True or false; default is false.
 | 
			
		||||
ENABLED = false
 | 
			
		||||
; If you want to add authorization, specify a token here
 | 
			
		||||
TOKEN =
 | 
			
		||||
							
								
								
									
										93
									
								
								jails/config/git/gitea/conf/app.ini.sample
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								jails/config/git/gitea/conf/app.ini.sample
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,93 @@
 | 
			
		||||
#
 | 
			
		||||
# Sample Configuration for Gitea using SQLite
 | 
			
		||||
#
 | 
			
		||||
# For information on the available settings, consult the online
 | 
			
		||||
# documentation, or see the accompanying file app.ini.defaults, which
 | 
			
		||||
# contains the settings incorporated into the gitea binary.
 | 
			
		||||
#
 | 
			
		||||
# This sample configuration runs Gitea with a local database.  Before
 | 
			
		||||
# running this configuration, make sure to change the INTERNAL_TOKEN,
 | 
			
		||||
# JWT_SECRET, and SECRET_KEY variables.  SECRET_KEY is a password of your
 | 
			
		||||
# choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding,
 | 
			
		||||
# JWT_SECRET is a 32-byte random number in BASE64 encoding.
 | 
			
		||||
# 
 | 
			
		||||
# Your can generate the token using for example:
 | 
			
		||||
#   openssl rand -base64 64
 | 
			
		||||
# 
 | 
			
		||||
# You can let Gitea add these to the config for you; you need to make
 | 
			
		||||
# app.ini writeable by the git user.
 | 
			
		||||
#
 | 
			
		||||
# There are no pre-configured users; the first user to register becomes an
 | 
			
		||||
# admin.  In this sample configuration, the HTTP server only listens on
 | 
			
		||||
# localhost.
 | 
			
		||||
#
 | 
			
		||||
# If you'd rather use the web-based installer, remove this conf/app.ini file
 | 
			
		||||
# and make /usr/local/etc/gitea/conf writeable to the git user.
 | 
			
		||||
 | 
			
		||||
APP_NAME = Gitea: Git with a cup of tea
 | 
			
		||||
RUN_USER = git
 | 
			
		||||
RUN_MODE = prod
 | 
			
		||||
 | 
			
		||||
[database]
 | 
			
		||||
DB_TYPE  = sqlite3
 | 
			
		||||
HOST     = 127.0.0.1:3306
 | 
			
		||||
NAME     = gitea
 | 
			
		||||
PASSWD   = 
 | 
			
		||||
PATH     = /var/db/gitea/gitea.db
 | 
			
		||||
SSL_MODE = disable
 | 
			
		||||
USER     = root
 | 
			
		||||
 | 
			
		||||
[indexer]
 | 
			
		||||
ISSUE_INDEXER_PATH = /var/db/gitea/indexers/issues.bleve
 | 
			
		||||
 | 
			
		||||
[log]
 | 
			
		||||
ROOT_PATH = /var/log/gitea
 | 
			
		||||
MODE      = file
 | 
			
		||||
LEVEL     = Info
 | 
			
		||||
 | 
			
		||||
[mailer]
 | 
			
		||||
ENABLED = false
 | 
			
		||||
 | 
			
		||||
[oauth2]
 | 
			
		||||
JWT_SECRET = D56bmu6xCtEKs9vKKgMKnsa4X9FDwo64HVyaS4fQ4mY
 | 
			
		||||
 | 
			
		||||
[picture]
 | 
			
		||||
AVATAR_UPLOAD_PATH      = /var/db/gitea/data/avatars
 | 
			
		||||
DISABLE_GRAVATAR        = false
 | 
			
		||||
ENABLE_FEDERATED_AVATAR = false
 | 
			
		||||
 | 
			
		||||
[repository]
 | 
			
		||||
ROOT = /var/db/gitea/gitea-repositories
 | 
			
		||||
# Gitea's default is 'bash', so if you have bash installed, you can comment
 | 
			
		||||
# this out.
 | 
			
		||||
SCRIPT_TYPE = sh
 | 
			
		||||
 | 
			
		||||
[repository.upload]
 | 
			
		||||
TEMP_PATH = /var/db/gitea/data/tmp/uploads
 | 
			
		||||
 | 
			
		||||
[security]
 | 
			
		||||
INSTALL_LOCK = true
 | 
			
		||||
INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw==
 | 
			
		||||
SECRET_KEY   = ChangeMeBeforeRunning
 | 
			
		||||
 | 
			
		||||
[session]
 | 
			
		||||
PROVIDER = file
 | 
			
		||||
PROVIDER_CONFIG = /var/db/gitea/data/sessions
 | 
			
		||||
 | 
			
		||||
[server]
 | 
			
		||||
DOMAIN       = localhost
 | 
			
		||||
HTTP_ADDR    = 127.0.0.1
 | 
			
		||||
HTTP_PORT    = 3000
 | 
			
		||||
ROOT_URL     = http://localhost:3000/
 | 
			
		||||
DISABLE_SSH  = false
 | 
			
		||||
SSH_DOMAIN   = %(DOMAIN)s
 | 
			
		||||
SSH_PORT     = 22
 | 
			
		||||
OFFLINE_MODE = false
 | 
			
		||||
APP_DATA_PATH = /var/db/gitea/data
 | 
			
		||||
 | 
			
		||||
[service]
 | 
			
		||||
REGISTER_EMAIL_CONFIRM = false
 | 
			
		||||
ENABLE_NOTIFY_MAIL     = false
 | 
			
		||||
DISABLE_REGISTRATION   = false
 | 
			
		||||
ENABLE_CAPTCHA         = true
 | 
			
		||||
REQUIRE_SIGNIN_VIEW    = false
 | 
			
		||||
							
								
								
									
										25
									
								
								jails/config/git/gitea/options/license
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								jails/config/git/gitea/options/license
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
All rights reserved.
 | 
			
		||||
 | 
			
		||||
Redistribution and use in source and binary forms, with or without
 | 
			
		||||
modification, are permitted provided that the following conditions are met:
 | 
			
		||||
 | 
			
		||||
1. Redistributions of source code must retain the above copyright notice, this
 | 
			
		||||
   list of conditions and the following disclaimer.
 | 
			
		||||
 | 
			
		||||
2. Redistributions in binary form must reproduce the above copyright notice,
 | 
			
		||||
   this list of conditions and the following disclaimer in the documentation
 | 
			
		||||
   and/or other materials provided with the distribution.
 | 
			
		||||
 | 
			
		||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 | 
			
		||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 | 
			
		||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 | 
			
		||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 | 
			
		||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 | 
			
		||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 | 
			
		||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 | 
			
		||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 | 
			
		||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
			
		||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
							
								
								
									
										25
									
								
								jails/config/git/gitea/public/diyit-org-license.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								jails/config/git/gitea/public/diyit-org-license.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2018-2020, diyIT.org
 | 
			
		||||
All rights reserved.
 | 
			
		||||
 | 
			
		||||
Redistribution and use in source and binary forms, with or without
 | 
			
		||||
modification, are permitted provided that the following conditions are met:
 | 
			
		||||
 | 
			
		||||
1. Redistributions of source code must retain the above copyright notice, this
 | 
			
		||||
   list of conditions and the following disclaimer.
 | 
			
		||||
 | 
			
		||||
2. Redistributions in binary form must reproduce the above copyright notice,
 | 
			
		||||
   this list of conditions and the following disclaimer in the documentation
 | 
			
		||||
   and/or other materials provided with the distribution.
 | 
			
		||||
 | 
			
		||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 | 
			
		||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 | 
			
		||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 | 
			
		||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 | 
			
		||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 | 
			
		||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 | 
			
		||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 | 
			
		||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 | 
			
		||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
			
		||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
@ -0,0 +1,4 @@
 | 
			
		||||
<footer>
 | 
			
		||||
	<div class="ui container">
 | 
			
		||||
	</div>
 | 
			
		||||
</footer>
 | 
			
		||||
							
								
								
									
										12
									
								
								jails/config/hub/.htaccess
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								jails/config/hub/.htaccess
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
# https://httpd.apache.org/docs/2.4/mod/mod_authnz_ldap.html
 | 
			
		||||
 | 
			
		||||
AuthName "Unauthorized Access will be Prosecuted"
 | 
			
		||||
AuthType Basic
 | 
			
		||||
 | 
			
		||||
AuthBasicProvider      ldap file
 | 
			
		||||
 | 
			
		||||
AuthLDAPURL            ldaps://ldap.ahlawat.com:636/ou=people,dc=infra?cn??(gidNumber=1)
 | 
			
		||||
 | 
			
		||||
AuthUserFile /usr/local/www/apache24/.htpasswd
 | 
			
		||||
 | 
			
		||||
Require valid-user
 | 
			
		||||
							
								
								
									
										11
									
								
								jails/config/hub/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								jails/config/hub/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
Listen 443
 | 
			
		||||
SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
 | 
			
		||||
SSLCipherSuite          ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
 | 
			
		||||
SSLHonorCipherOrder	on
 | 
			
		||||
SSLCompression		off
 | 
			
		||||
# SSLUseStapling	on
 | 
			
		||||
SSLSessionTickets	off
 | 
			
		||||
SSLOptions		+StrictRequire
 | 
			
		||||
SSLPassPhraseDialog	builtin
 | 
			
		||||
SSLSessionCacheTimeout	300
 | 
			
		||||
SSLSessionCache         shmcb:/usr/local/etc/apache24/ssl_scache(512000)
 | 
			
		||||
							
								
								
									
										612
									
								
								jails/config/hub/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										612
									
								
								jails/config/hub/httpd.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,612 @@
 | 
			
		||||
#
 | 
			
		||||
# This is the main Apache HTTP server configuration file.  It contains the
 | 
			
		||||
# configuration directives that give the server its instructions.
 | 
			
		||||
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
 | 
			
		||||
# In particular, see 
 | 
			
		||||
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
 | 
			
		||||
# for a discussion of each configuration directive.
 | 
			
		||||
#
 | 
			
		||||
# Do NOT simply read the instructions in here without understanding
 | 
			
		||||
# what they do.  They're here only as hints or reminders.  If you are unsure
 | 
			
		||||
# consult the online docs. You have been warned.  
 | 
			
		||||
#
 | 
			
		||||
# Configuration and logfile names: If the filenames you specify for many
 | 
			
		||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
 | 
			
		||||
# server will use that explicit path.  If the filenames do *not* begin
 | 
			
		||||
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
 | 
			
		||||
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
 | 
			
		||||
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" 
 | 
			
		||||
# will be interpreted as '/logs/access_log'.
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerRoot: The top of the directory tree under which the server's
 | 
			
		||||
# configuration, error, and log files are kept.
 | 
			
		||||
#
 | 
			
		||||
# Do not add a slash at the end of the directory path.  If you point
 | 
			
		||||
# ServerRoot at a non-local disk, be sure to specify a local disk on the
 | 
			
		||||
# Mutex directive, if file-based mutexes are used.  If you wish to share the
 | 
			
		||||
# same ServerRoot for multiple httpd daemons, you will need to change at
 | 
			
		||||
# least PidFile.
 | 
			
		||||
#
 | 
			
		||||
ServerRoot "/usr/local"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Mutex: Allows you to set the mutex mechanism and mutex file directory
 | 
			
		||||
# for individual mutexes, or change the global defaults
 | 
			
		||||
#
 | 
			
		||||
# Uncomment and change the directory if mutexes are file-based and the default
 | 
			
		||||
# mutex file directory is not on a local disk or is not appropriate for some
 | 
			
		||||
# other reason.
 | 
			
		||||
#
 | 
			
		||||
# Mutex default:/var/run
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
 | 
			
		||||
# ports, instead of the default. See also the <VirtualHost>
 | 
			
		||||
# directive.
 | 
			
		||||
#
 | 
			
		||||
# Change this to Listen on specific IP addresses as shown below to 
 | 
			
		||||
# prevent Apache from glomming onto all bound IP addresses.
 | 
			
		||||
#
 | 
			
		||||
#Listen 12.34.56.78:80
 | 
			
		||||
Listen 80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Dynamic Shared Object (DSO) Support
 | 
			
		||||
#
 | 
			
		||||
# To be able to use the functionality of a module which was built as a DSO you
 | 
			
		||||
# have to place corresponding `LoadModule' lines at this location so the
 | 
			
		||||
# directives contained in it are actually available _before_ they are used.
 | 
			
		||||
# Statically compiled modules (those listed by `httpd -l') do not need
 | 
			
		||||
# to be loaded here.
 | 
			
		||||
#
 | 
			
		||||
# Example:
 | 
			
		||||
# LoadModule foo_module modules/mod_foo.so
 | 
			
		||||
#
 | 
			
		||||
LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 | 
			
		||||
#LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
 | 
			
		||||
#LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
 | 
			
		||||
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
 | 
			
		||||
#LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
 | 
			
		||||
#LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
 | 
			
		||||
#LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
 | 
			
		||||
#LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
 | 
			
		||||
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
 | 
			
		||||
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
 | 
			
		||||
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
 | 
			
		||||
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
 | 
			
		||||
#LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
 | 
			
		||||
#LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
 | 
			
		||||
#LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
 | 
			
		||||
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
 | 
			
		||||
#LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
 | 
			
		||||
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
 | 
			
		||||
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
 | 
			
		||||
#LoadModule auth_form_module libexec/apache24/mod_auth_form.so
 | 
			
		||||
#LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
 | 
			
		||||
#LoadModule allowmethods_module libexec/apache24/mod_allowmethods.so
 | 
			
		||||
#LoadModule file_cache_module libexec/apache24/mod_file_cache.so
 | 
			
		||||
#LoadModule cache_module libexec/apache24/mod_cache.so
 | 
			
		||||
#LoadModule cache_disk_module libexec/apache24/mod_cache_disk.so
 | 
			
		||||
#LoadModule cache_socache_module libexec/apache24/mod_cache_socache.so
 | 
			
		||||
LoadModule authnz_ldap_module libexec/apache24/mod_authnz_ldap.so
 | 
			
		||||
LoadModule ldap_module libexec/apache24/mod_ldap.so
 | 
			
		||||
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
 | 
			
		||||
#LoadModule socache_dbm_module libexec/apache24/mod_socache_dbm.so
 | 
			
		||||
#LoadModule socache_memcache_module libexec/apache24/mod_socache_memcache.so
 | 
			
		||||
#LoadModule watchdog_module libexec/apache24/mod_watchdog.so
 | 
			
		||||
#LoadModule macro_module libexec/apache24/mod_macro.so
 | 
			
		||||
#LoadModule dbd_module libexec/apache24/mod_dbd.so
 | 
			
		||||
#LoadModule dumpio_module libexec/apache24/mod_dumpio.so
 | 
			
		||||
#LoadModule buffer_module libexec/apache24/mod_buffer.so
 | 
			
		||||
#LoadModule data_module libexec/apache24/mod_data.so
 | 
			
		||||
#LoadModule ratelimit_module libexec/apache24/mod_ratelimit.so
 | 
			
		||||
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
 | 
			
		||||
#LoadModule ext_filter_module libexec/apache24/mod_ext_filter.so
 | 
			
		||||
#LoadModule request_module libexec/apache24/mod_request.so
 | 
			
		||||
#LoadModule include_module libexec/apache24/mod_include.so
 | 
			
		||||
LoadModule filter_module libexec/apache24/mod_filter.so
 | 
			
		||||
#LoadModule reflector_module libexec/apache24/mod_reflector.so
 | 
			
		||||
#LoadModule substitute_module libexec/apache24/mod_substitute.so
 | 
			
		||||
#LoadModule sed_module libexec/apache24/mod_sed.so
 | 
			
		||||
#LoadModule charset_lite_module libexec/apache24/mod_charset_lite.so
 | 
			
		||||
#LoadModule deflate_module libexec/apache24/mod_deflate.so
 | 
			
		||||
#LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so
 | 
			
		||||
#LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
 | 
			
		||||
LoadModule mime_module libexec/apache24/mod_mime.so
 | 
			
		||||
LoadModule log_config_module libexec/apache24/mod_log_config.so
 | 
			
		||||
#LoadModule log_debug_module libexec/apache24/mod_log_debug.so
 | 
			
		||||
#LoadModule log_forensic_module libexec/apache24/mod_log_forensic.so
 | 
			
		||||
#LoadModule logio_module libexec/apache24/mod_logio.so
 | 
			
		||||
LoadModule env_module libexec/apache24/mod_env.so
 | 
			
		||||
#LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
 | 
			
		||||
#LoadModule cern_meta_module libexec/apache24/mod_cern_meta.so
 | 
			
		||||
#LoadModule expires_module libexec/apache24/mod_expires.so
 | 
			
		||||
LoadModule headers_module libexec/apache24/mod_headers.so
 | 
			
		||||
#LoadModule usertrack_module libexec/apache24/mod_usertrack.so
 | 
			
		||||
#LoadModule unique_id_module libexec/apache24/mod_unique_id.so
 | 
			
		||||
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
 | 
			
		||||
LoadModule version_module libexec/apache24/mod_version.so
 | 
			
		||||
#LoadModule remoteip_module libexec/apache24/mod_remoteip.so
 | 
			
		||||
LoadModule proxy_module libexec/apache24/mod_proxy.so
 | 
			
		||||
#LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
 | 
			
		||||
#LoadModule proxy_ftp_module libexec/apache24/mod_proxy_ftp.so
 | 
			
		||||
#LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
 | 
			
		||||
LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
 | 
			
		||||
#LoadModule proxy_scgi_module libexec/apache24/mod_proxy_scgi.so
 | 
			
		||||
#LoadModule proxy_uwsgi_module libexec/apache24/mod_proxy_uwsgi.so
 | 
			
		||||
#LoadModule proxy_fdpass_module libexec/apache24/mod_proxy_fdpass.so
 | 
			
		||||
#LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
 | 
			
		||||
#LoadModule proxy_ajp_module libexec/apache24/mod_proxy_ajp.so
 | 
			
		||||
#LoadModule proxy_balancer_module libexec/apache24/mod_proxy_balancer.so
 | 
			
		||||
#LoadModule proxy_express_module libexec/apache24/mod_proxy_express.so
 | 
			
		||||
#LoadModule proxy_hcheck_module libexec/apache24/mod_proxy_hcheck.so
 | 
			
		||||
#LoadModule session_module libexec/apache24/mod_session.so
 | 
			
		||||
#LoadModule session_cookie_module libexec/apache24/mod_session_cookie.so
 | 
			
		||||
#LoadModule session_crypto_module libexec/apache24/mod_session_crypto.so
 | 
			
		||||
#LoadModule session_dbd_module libexec/apache24/mod_session_dbd.so
 | 
			
		||||
#LoadModule slotmem_shm_module libexec/apache24/mod_slotmem_shm.so
 | 
			
		||||
#LoadModule slotmem_plain_module libexec/apache24/mod_slotmem_plain.so
 | 
			
		||||
LoadModule ssl_module libexec/apache24/mod_ssl.so
 | 
			
		||||
#LoadModule dialup_module libexec/apache24/mod_dialup.so
 | 
			
		||||
LoadModule http2_module libexec/apache24/mod_http2.so
 | 
			
		||||
LoadModule proxy_http2_module libexec/apache24/mod_proxy_http2.so
 | 
			
		||||
#LoadModule lbmethod_byrequests_module libexec/apache24/mod_lbmethod_byrequests.so
 | 
			
		||||
#LoadModule lbmethod_bytraffic_module libexec/apache24/mod_lbmethod_bytraffic.so
 | 
			
		||||
#LoadModule lbmethod_bybusyness_module libexec/apache24/mod_lbmethod_bybusyness.so
 | 
			
		||||
#LoadModule lbmethod_heartbeat_module libexec/apache24/mod_lbmethod_heartbeat.so
 | 
			
		||||
LoadModule unixd_module libexec/apache24/mod_unixd.so
 | 
			
		||||
#LoadModule heartbeat_module libexec/apache24/mod_heartbeat.so
 | 
			
		||||
#LoadModule heartmonitor_module libexec/apache24/mod_heartmonitor.so
 | 
			
		||||
#LoadModule dav_module libexec/apache24/mod_dav.so
 | 
			
		||||
LoadModule status_module libexec/apache24/mod_status.so
 | 
			
		||||
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
 | 
			
		||||
#LoadModule asis_module libexec/apache24/mod_asis.so
 | 
			
		||||
#LoadModule info_module libexec/apache24/mod_info.so
 | 
			
		||||
<IfModule !mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgid_module libexec/apache24/mod_cgid.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
<IfModule mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgi_module libexec/apache24/mod_cgi.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
#LoadModule dav_fs_module libexec/apache24/mod_dav_fs.so
 | 
			
		||||
#LoadModule dav_lock_module libexec/apache24/mod_dav_lock.so
 | 
			
		||||
#LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
 | 
			
		||||
#LoadModule negotiation_module libexec/apache24/mod_negotiation.so
 | 
			
		||||
LoadModule dir_module libexec/apache24/mod_dir.so
 | 
			
		||||
#LoadModule imagemap_module libexec/apache24/mod_imagemap.so
 | 
			
		||||
#LoadModule actions_module libexec/apache24/mod_actions.so
 | 
			
		||||
#LoadModule speling_module libexec/apache24/mod_speling.so
 | 
			
		||||
#LoadModule userdir_module libexec/apache24/mod_userdir.so
 | 
			
		||||
LoadModule alias_module libexec/apache24/mod_alias.so
 | 
			
		||||
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
 | 
			
		||||
#LoadModule php7_module        libexec/apache24/libphp7.so
 | 
			
		||||
 | 
			
		||||
# Third party modules
 | 
			
		||||
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
 | 
			
		||||
 
 | 
			
		||||
<IfModule unixd_module>
 | 
			
		||||
#
 | 
			
		||||
# If you wish httpd to run as a different user or group, you must run
 | 
			
		||||
# httpd as root initially and it will switch.  
 | 
			
		||||
#
 | 
			
		||||
# User/Group: The name (or #number) of the user/group to run httpd as.
 | 
			
		||||
# It is usually good practice to create a dedicated user and group for
 | 
			
		||||
# running httpd, as with most system services.
 | 
			
		||||
#
 | 
			
		||||
User www
 | 
			
		||||
Group www
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# 'Main' server configuration
 | 
			
		||||
#
 | 
			
		||||
# The directives in this section set up the values used by the 'main'
 | 
			
		||||
# server, which responds to any requests that aren't handled by a
 | 
			
		||||
# <VirtualHost> definition.  These values also provide defaults for
 | 
			
		||||
# any <VirtualHost> containers you may define later in the file.
 | 
			
		||||
#
 | 
			
		||||
# All of these directives may appear inside <VirtualHost> containers,
 | 
			
		||||
# in which case these default settings will be overridden for the
 | 
			
		||||
# virtual host being defined.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerAdmin: Your address, where problems with the server should be
 | 
			
		||||
# e-mailed.  This address appears on some server-generated pages, such
 | 
			
		||||
# as error documents.  e.g. admin@your-domain.com
 | 
			
		||||
#
 | 
			
		||||
ServerAdmin sharad@ahlawat.com
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerName gives the name and port that the server uses to identify itself.
 | 
			
		||||
# This can often be determined automatically, but we recommend you specify
 | 
			
		||||
# it explicitly to prevent problems during startup.
 | 
			
		||||
#
 | 
			
		||||
# If your host doesn't have a registered DNS name, enter its IP address here.
 | 
			
		||||
#
 | 
			
		||||
#ServerName www.example.com:80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Deny access to the entirety of your server's filesystem. You must
 | 
			
		||||
# explicitly permit access to web content directories in other 
 | 
			
		||||
# <Directory> blocks below.
 | 
			
		||||
#
 | 
			
		||||
<Directory />
 | 
			
		||||
    AllowOverride none
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Note that from this point forward you must specifically allow
 | 
			
		||||
# particular features to be enabled - so if something's not working as
 | 
			
		||||
# you might expect, make sure that you have specifically enabled it
 | 
			
		||||
# below.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DocumentRoot: The directory out of which you will serve your
 | 
			
		||||
# documents. By default, all requests are taken from this directory, but
 | 
			
		||||
# symbolic links and aliases may be used to point to other locations.
 | 
			
		||||
#
 | 
			
		||||
DocumentRoot "/usr/local/www/apache24/data"
 | 
			
		||||
<Directory "/usr/local/www/apache24/data">
 | 
			
		||||
 | 
			
		||||
# can't set this if traffic is passing through haproxy and being redirected to ssl already
 | 
			
		||||
#  RewriteEngine on
 | 
			
		||||
#  RewriteRule ^/\.well-known/ - [L]
 | 
			
		||||
#  RewriteRule (.*) https://hub.ahlawat.com [R,L]
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Possible values for the Options directive are "None", "All",
 | 
			
		||||
    # or any combination of:
 | 
			
		||||
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
 | 
			
		||||
    #
 | 
			
		||||
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
 | 
			
		||||
    # doesn't give it to you.
 | 
			
		||||
    #
 | 
			
		||||
    # The Options directive is both complicated and important.  Please see
 | 
			
		||||
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
 | 
			
		||||
    # for more information.
 | 
			
		||||
    #
 | 
			
		||||
    Options Indexes FollowSymLinks
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    # It can be "All", "None", or any combination of the keywords:
 | 
			
		||||
    #   AllowOverride FileInfo AuthConfig Limit
 | 
			
		||||
    #
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Controls who can get stuff from this server.
 | 
			
		||||
    #
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DirectoryIndex: sets the file that Apache will serve if a directory
 | 
			
		||||
# is requested.
 | 
			
		||||
#
 | 
			
		||||
<IfModule dir_module>
 | 
			
		||||
    DirectoryIndex index.php index.html
 | 
			
		||||
    <FilesMatch "\.php$">
 | 
			
		||||
        SetHandler application/x-httpd-php
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
    <FilesMatch "\.phps$">
 | 
			
		||||
        SetHandler application/x-httpd-php-source
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The following lines prevent .htaccess and .htpasswd files from being 
 | 
			
		||||
# viewed by Web clients. 
 | 
			
		||||
#
 | 
			
		||||
<Files ".ht*">
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Files>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ErrorLog: The location of the error log file.
 | 
			
		||||
# If you do not specify an ErrorLog directive within a <VirtualHost>
 | 
			
		||||
# container, error messages relating to that virtual host will be
 | 
			
		||||
# logged here.  If you *do* define an error logfile for a <VirtualHost>
 | 
			
		||||
# container, that host's errors will be logged there and not here.
 | 
			
		||||
#
 | 
			
		||||
ErrorLog "/var/log/httpd-error.log"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# LogLevel: Control the number of messages logged to the error_log.
 | 
			
		||||
# Possible values include: debug, info, notice, warn, error, crit,
 | 
			
		||||
# alert, emerg.
 | 
			
		||||
#
 | 
			
		||||
LogLevel warn
 | 
			
		||||
 | 
			
		||||
<IfModule log_config_module>
 | 
			
		||||
    #
 | 
			
		||||
    # The following directives define some format nicknames for use with
 | 
			
		||||
    # a CustomLog directive (see below).
 | 
			
		||||
    #
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
 | 
			
		||||
 | 
			
		||||
    <IfModule logio_module>
 | 
			
		||||
      # You need to enable mod_logio.c to use %I and %O
 | 
			
		||||
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
 | 
			
		||||
    </IfModule>
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # The location and format of the access logfile (Common Logfile Format).
 | 
			
		||||
    # If you do not define any access logfiles within a <VirtualHost>
 | 
			
		||||
    # container, they will be logged here.  Contrariwise, if you *do*
 | 
			
		||||
    # define per-<VirtualHost> access logfiles, transactions will be
 | 
			
		||||
    # logged therein and *not* in this file.
 | 
			
		||||
    #
 | 
			
		||||
    CustomLog "/var/log/httpd-access.log" common
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # If you prefer a logfile with access, agent, and referer information
 | 
			
		||||
    # (Combined Logfile Format) you can use the following directive.
 | 
			
		||||
    #
 | 
			
		||||
    #CustomLog "/var/log/httpd-access.log" combined
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule alias_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Redirect: Allows you to tell clients about documents that used to 
 | 
			
		||||
    # exist in your server's namespace, but do not anymore. The client 
 | 
			
		||||
    # will make a new request for the document at its new location.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Redirect permanent /foo http://www.example.com/bar
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Alias: Maps web paths into filesystem paths and is used to
 | 
			
		||||
    # access content that does not live under the DocumentRoot.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Alias /webpath /full/filesystem/path
 | 
			
		||||
    #
 | 
			
		||||
    # If you include a trailing / on /webpath then the server will
 | 
			
		||||
    # require it to be present in the URL.  You will also likely
 | 
			
		||||
    # need to provide a <Directory> section to allow access to
 | 
			
		||||
    # the filesystem path.
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptAlias: This controls which directories contain server scripts. 
 | 
			
		||||
    # ScriptAliases are essentially the same as Aliases, except that
 | 
			
		||||
    # documents in the target directory are treated as applications and
 | 
			
		||||
    # run by the server when requested rather than as documents sent to the
 | 
			
		||||
    # client.  The same rules about trailing "/" apply to ScriptAlias
 | 
			
		||||
    # directives as to Alias.
 | 
			
		||||
    #
 | 
			
		||||
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule cgid_module>
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptSock: On threaded servers, designate the path to the UNIX
 | 
			
		||||
    # socket used to communicate with the CGI daemon of mod_cgid.
 | 
			
		||||
    #
 | 
			
		||||
    #Scriptsock cgisock
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliased
 | 
			
		||||
# CGI directory exists, if you have that configured.
 | 
			
		||||
#
 | 
			
		||||
<Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
    Options None
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
<IfModule headers_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
 | 
			
		||||
    # backend servers which have lingering "httpoxy" defects.
 | 
			
		||||
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
 | 
			
		||||
    #
 | 
			
		||||
    RequestHeader unset Proxy early
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule mime_module>
 | 
			
		||||
    #
 | 
			
		||||
    # TypesConfig points to the file containing the list of mappings from
 | 
			
		||||
    # filename extension to MIME-type.
 | 
			
		||||
    #
 | 
			
		||||
    TypesConfig etc/apache24/mime.types
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddType allows you to add to or override the MIME configuration
 | 
			
		||||
    # file specified in TypesConfig for specific file types.
 | 
			
		||||
    #
 | 
			
		||||
    #AddType application/x-gzip .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # AddEncoding allows you to have certain browsers uncompress
 | 
			
		||||
    # information on the fly. Note: Not all browsers support this.
 | 
			
		||||
    #
 | 
			
		||||
    #AddEncoding x-compress .Z
 | 
			
		||||
    #AddEncoding x-gzip .gz .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # If the AddEncoding directives above are commented-out, then you
 | 
			
		||||
    # probably should define those extensions to indicate media types:
 | 
			
		||||
    #
 | 
			
		||||
    AddType application/x-compress .Z
 | 
			
		||||
    AddType application/x-gzip .gz .tgz
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddHandler allows you to map certain file extensions to "handlers":
 | 
			
		||||
    # actions unrelated to filetype. These can be either built into the server
 | 
			
		||||
    # or added with the Action directive (see below)
 | 
			
		||||
    #
 | 
			
		||||
    # To use CGI scripts outside of ScriptAliased directories:
 | 
			
		||||
    # (You will also need to add "ExecCGI" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddHandler cgi-script .cgi
 | 
			
		||||
 | 
			
		||||
    # For type maps (negotiated resources):
 | 
			
		||||
    #AddHandler type-map var
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Filters allow you to process content before it is sent to the client.
 | 
			
		||||
    #
 | 
			
		||||
    # To parse .shtml files for server-side includes (SSI):
 | 
			
		||||
    # (You will also need to add "Includes" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddType text/html .shtml
 | 
			
		||||
    #AddOutputFilter INCLUDES .shtml
 | 
			
		||||
 | 
			
		||||
    AddType application/x-httpd-php .php
 | 
			
		||||
    AddType application/x-httpd-php-source .phps
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The mod_mime_magic module allows the server to use various hints from the
 | 
			
		||||
# contents of the file itself to determine its type.  The MIMEMagicFile
 | 
			
		||||
# directive tells the module where the hint definitions are located.
 | 
			
		||||
#
 | 
			
		||||
#MIMEMagicFile etc/apache24/magic
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Customizable error responses come in three flavors:
 | 
			
		||||
# 1) plain text 2) local redirects 3) external redirects
 | 
			
		||||
#
 | 
			
		||||
# Some examples:
 | 
			
		||||
#ErrorDocument 500 "The server made a boo boo."
 | 
			
		||||
#ErrorDocument 404 /missing.html
 | 
			
		||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 | 
			
		||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# MaxRanges: Maximum number of Ranges in a request before
 | 
			
		||||
# returning the entire resource, or one of the special
 | 
			
		||||
# values 'default', 'none' or 'unlimited'.
 | 
			
		||||
# Default setting is to accept 200 Ranges.
 | 
			
		||||
#MaxRanges unlimited
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# EnableMMAP and EnableSendfile: On systems that support it, 
 | 
			
		||||
# memory-mapping or the sendfile syscall may be used to deliver
 | 
			
		||||
# files.  This usually improves server performance, but must
 | 
			
		||||
# be turned off when serving from networked-mounted 
 | 
			
		||||
# filesystems or if support for these functions is otherwise
 | 
			
		||||
# broken on your system.
 | 
			
		||||
# Defaults: EnableMMAP On, EnableSendfile Off
 | 
			
		||||
#
 | 
			
		||||
#EnableMMAP off
 | 
			
		||||
#EnableSendfile on
 | 
			
		||||
 | 
			
		||||
# Supplemental configuration
 | 
			
		||||
#
 | 
			
		||||
# The configuration files in the etc/apache24/extra/ directory can be 
 | 
			
		||||
# included to add extra features or to modify the default configuration of 
 | 
			
		||||
# the server, or you may simply copy their contents here and change as 
 | 
			
		||||
# necessary.
 | 
			
		||||
 | 
			
		||||
# Server-pool management (MPM specific)
 | 
			
		||||
#Include etc/apache24/extra/httpd-mpm.conf
 | 
			
		||||
 | 
			
		||||
# Multi-language error messages
 | 
			
		||||
#Include etc/apache24/extra/httpd-multilang-errordoc.conf
 | 
			
		||||
 | 
			
		||||
# Fancy directory listings
 | 
			
		||||
#Include etc/apache24/extra/httpd-autoindex.conf
 | 
			
		||||
 | 
			
		||||
# Language settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-languages.conf
 | 
			
		||||
 | 
			
		||||
# User home directories
 | 
			
		||||
#Include etc/apache24/extra/httpd-userdir.conf
 | 
			
		||||
 | 
			
		||||
# Real-time info on requests and configuration
 | 
			
		||||
#Include etc/apache24/extra/httpd-info.conf
 | 
			
		||||
 | 
			
		||||
# Virtual hosts
 | 
			
		||||
#Include etc/apache24/extra/httpd-vhosts.conf
 | 
			
		||||
 | 
			
		||||
# Local access to the Apache HTTP Server Manual
 | 
			
		||||
#Include etc/apache24/extra/httpd-manual.conf
 | 
			
		||||
 | 
			
		||||
# Distributed authoring and versioning (WebDAV)
 | 
			
		||||
#Include etc/apache24/extra/httpd-dav.conf
 | 
			
		||||
 | 
			
		||||
# Various default settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-default.conf
 | 
			
		||||
 | 
			
		||||
# Configure mod_proxy_html to understand HTML4/XHTML1
 | 
			
		||||
<IfModule proxy_html_module>
 | 
			
		||||
Include etc/apache24/extra/proxy-html.conf
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# Secure (SSL/TLS) connections
 | 
			
		||||
#Include etc/apache24/extra/httpd-ssl.conf
 | 
			
		||||
#
 | 
			
		||||
# Note: The following must must be present to support
 | 
			
		||||
#       starting without SSL on platforms with no /dev/random equivalent
 | 
			
		||||
#       but a statically compiled-in mod_ssl.
 | 
			
		||||
#
 | 
			
		||||
<IfModule ssl_module>
 | 
			
		||||
SSLRandomSeed startup builtin
 | 
			
		||||
SSLRandomSeed connect builtin
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
Include etc/apache24/Includes/*.conf
 | 
			
		||||
 | 
			
		||||
<VirtualHost *:443>
 | 
			
		||||
    ServerName hub.ahlawat.com
 | 
			
		||||
    ServerAlias *.ahlawat.com
 | 
			
		||||
    ServerAlias hub
 | 
			
		||||
 | 
			
		||||
    Protocols h2 h2c http/1.1
 | 
			
		||||
 | 
			
		||||
    DocumentRoot "/usr/local/www/apache24/data/"
 | 
			
		||||
 | 
			
		||||
    SSLEngine on
 | 
			
		||||
    SSLCertificateFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLCertificateKeyFile "/mnt/certs/privkey.pem"
 | 
			
		||||
    #SSLCertificateChainFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
 | 
			
		||||
    SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
 | 
			
		||||
    SSLHonorCipherOrder on
 | 
			
		||||
    SSLCompression off
 | 
			
		||||
    SSLSessionTickets off
 | 
			
		||||
    SSLOptions +StrictRequire
 | 
			
		||||
 | 
			
		||||
  RewriteEngine On
 | 
			
		||||
  RewriteCond %{HTTP:Authorization} ^(.*)
 | 
			
		||||
  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
 | 
			
		||||
 | 
			
		||||
  <FilesMatch "\.(cgi|shtml|phtml|php)$">
 | 
			
		||||
    SetHandler "proxy:fcgi://localhost:9000"
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </FilesMatch>
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
 | 
			
		||||
  CustomLog "/var/log/ssl-request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/data/">
 | 
			
		||||
    Options Indexes FollowSymLinks MultiViews
 | 
			
		||||
    ## IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort SuppressHTMLPreamble NameWidth=96 DescriptionWidth=16
 | 
			
		||||
    IndexOptions FancyIndexing FoldersFirst IgnoreCase NameWidth=96 SuppressDescription
 | 
			
		||||
 | 
			
		||||
    #AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    #AllowOverride All
 | 
			
		||||
    AllowOverride AuthConfig
 | 
			
		||||
    #Controls who can get stuff from this server file
 | 
			
		||||
    Require all granted
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  ErrorLog "/var/log/ssl-error.log"
 | 
			
		||||
  CustomLog "/var/log/ssl-access_log" combined
 | 
			
		||||
 | 
			
		||||
  <IfModule mod_headers.c>
 | 
			
		||||
    Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
 | 
			
		||||
  </IfModule>
 | 
			
		||||
 | 
			
		||||
</VirtualHost>
 | 
			
		||||
							
								
								
									
										586
									
								
								jails/config/hub/httpd.conf.no_http2_fpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										586
									
								
								jails/config/hub/httpd.conf.no_http2_fpm
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,586 @@
 | 
			
		||||
#
 | 
			
		||||
# This is the main Apache HTTP server configuration file.  It contains the
 | 
			
		||||
# configuration directives that give the server its instructions.
 | 
			
		||||
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
 | 
			
		||||
# In particular, see 
 | 
			
		||||
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
 | 
			
		||||
# for a discussion of each configuration directive.
 | 
			
		||||
#
 | 
			
		||||
# Do NOT simply read the instructions in here without understanding
 | 
			
		||||
# what they do.  They're here only as hints or reminders.  If you are unsure
 | 
			
		||||
# consult the online docs. You have been warned.  
 | 
			
		||||
#
 | 
			
		||||
# Configuration and logfile names: If the filenames you specify for many
 | 
			
		||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
 | 
			
		||||
# server will use that explicit path.  If the filenames do *not* begin
 | 
			
		||||
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
 | 
			
		||||
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
 | 
			
		||||
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" 
 | 
			
		||||
# will be interpreted as '/logs/access_log'.
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerRoot: The top of the directory tree under which the server's
 | 
			
		||||
# configuration, error, and log files are kept.
 | 
			
		||||
#
 | 
			
		||||
# Do not add a slash at the end of the directory path.  If you point
 | 
			
		||||
# ServerRoot at a non-local disk, be sure to specify a local disk on the
 | 
			
		||||
# Mutex directive, if file-based mutexes are used.  If you wish to share the
 | 
			
		||||
# same ServerRoot for multiple httpd daemons, you will need to change at
 | 
			
		||||
# least PidFile.
 | 
			
		||||
#
 | 
			
		||||
ServerRoot "/usr/local"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Mutex: Allows you to set the mutex mechanism and mutex file directory
 | 
			
		||||
# for individual mutexes, or change the global defaults
 | 
			
		||||
#
 | 
			
		||||
# Uncomment and change the directory if mutexes are file-based and the default
 | 
			
		||||
# mutex file directory is not on a local disk or is not appropriate for some
 | 
			
		||||
# other reason.
 | 
			
		||||
#
 | 
			
		||||
# Mutex default:/var/run
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
 | 
			
		||||
# ports, instead of the default. See also the <VirtualHost>
 | 
			
		||||
# directive.
 | 
			
		||||
#
 | 
			
		||||
# Change this to Listen on specific IP addresses as shown below to 
 | 
			
		||||
# prevent Apache from glomming onto all bound IP addresses.
 | 
			
		||||
#
 | 
			
		||||
#Listen 12.34.56.78:80
 | 
			
		||||
Listen 80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Dynamic Shared Object (DSO) Support
 | 
			
		||||
#
 | 
			
		||||
# To be able to use the functionality of a module which was built as a DSO you
 | 
			
		||||
# have to place corresponding `LoadModule' lines at this location so the
 | 
			
		||||
# directives contained in it are actually available _before_ they are used.
 | 
			
		||||
# Statically compiled modules (those listed by `httpd -l') do not need
 | 
			
		||||
# to be loaded here.
 | 
			
		||||
#
 | 
			
		||||
# Example:
 | 
			
		||||
# LoadModule foo_module modules/mod_foo.so
 | 
			
		||||
#
 | 
			
		||||
#LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 | 
			
		||||
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
 | 
			
		||||
#LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
 | 
			
		||||
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
 | 
			
		||||
#LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
 | 
			
		||||
#LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
 | 
			
		||||
#LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
 | 
			
		||||
#LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
 | 
			
		||||
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
 | 
			
		||||
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
 | 
			
		||||
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
 | 
			
		||||
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
 | 
			
		||||
#LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
 | 
			
		||||
#LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
 | 
			
		||||
#LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
 | 
			
		||||
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
 | 
			
		||||
#LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
 | 
			
		||||
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
 | 
			
		||||
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
 | 
			
		||||
#LoadModule auth_form_module libexec/apache24/mod_auth_form.so
 | 
			
		||||
#LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
 | 
			
		||||
#LoadModule allowmethods_module libexec/apache24/mod_allowmethods.so
 | 
			
		||||
#LoadModule file_cache_module libexec/apache24/mod_file_cache.so
 | 
			
		||||
#LoadModule cache_module libexec/apache24/mod_cache.so
 | 
			
		||||
#LoadModule cache_disk_module libexec/apache24/mod_cache_disk.so
 | 
			
		||||
#LoadModule cache_socache_module libexec/apache24/mod_cache_socache.so
 | 
			
		||||
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
 | 
			
		||||
#LoadModule socache_dbm_module libexec/apache24/mod_socache_dbm.so
 | 
			
		||||
#LoadModule socache_memcache_module libexec/apache24/mod_socache_memcache.so
 | 
			
		||||
#LoadModule watchdog_module libexec/apache24/mod_watchdog.so
 | 
			
		||||
#LoadModule macro_module libexec/apache24/mod_macro.so
 | 
			
		||||
#LoadModule dbd_module libexec/apache24/mod_dbd.so
 | 
			
		||||
#LoadModule dumpio_module libexec/apache24/mod_dumpio.so
 | 
			
		||||
#LoadModule buffer_module libexec/apache24/mod_buffer.so
 | 
			
		||||
#LoadModule data_module libexec/apache24/mod_data.so
 | 
			
		||||
#LoadModule ratelimit_module libexec/apache24/mod_ratelimit.so
 | 
			
		||||
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
 | 
			
		||||
#LoadModule ext_filter_module libexec/apache24/mod_ext_filter.so
 | 
			
		||||
#LoadModule request_module libexec/apache24/mod_request.so
 | 
			
		||||
#LoadModule include_module libexec/apache24/mod_include.so
 | 
			
		||||
LoadModule filter_module libexec/apache24/mod_filter.so
 | 
			
		||||
#LoadModule reflector_module libexec/apache24/mod_reflector.so
 | 
			
		||||
#LoadModule substitute_module libexec/apache24/mod_substitute.so
 | 
			
		||||
#LoadModule sed_module libexec/apache24/mod_sed.so
 | 
			
		||||
#LoadModule charset_lite_module libexec/apache24/mod_charset_lite.so
 | 
			
		||||
#LoadModule deflate_module libexec/apache24/mod_deflate.so
 | 
			
		||||
#LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so
 | 
			
		||||
#LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
 | 
			
		||||
LoadModule mime_module libexec/apache24/mod_mime.so
 | 
			
		||||
LoadModule log_config_module libexec/apache24/mod_log_config.so
 | 
			
		||||
#LoadModule log_debug_module libexec/apache24/mod_log_debug.so
 | 
			
		||||
#LoadModule log_forensic_module libexec/apache24/mod_log_forensic.so
 | 
			
		||||
#LoadModule logio_module libexec/apache24/mod_logio.so
 | 
			
		||||
LoadModule env_module libexec/apache24/mod_env.so
 | 
			
		||||
#LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
 | 
			
		||||
#LoadModule cern_meta_module libexec/apache24/mod_cern_meta.so
 | 
			
		||||
#LoadModule expires_module libexec/apache24/mod_expires.so
 | 
			
		||||
LoadModule headers_module libexec/apache24/mod_headers.so
 | 
			
		||||
#LoadModule usertrack_module libexec/apache24/mod_usertrack.so
 | 
			
		||||
#LoadModule unique_id_module libexec/apache24/mod_unique_id.so
 | 
			
		||||
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
 | 
			
		||||
LoadModule version_module libexec/apache24/mod_version.so
 | 
			
		||||
#LoadModule remoteip_module libexec/apache24/mod_remoteip.so
 | 
			
		||||
#LoadModule proxy_module libexec/apache24/mod_proxy.so
 | 
			
		||||
#LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
 | 
			
		||||
#LoadModule proxy_ftp_module libexec/apache24/mod_proxy_ftp.so
 | 
			
		||||
#LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
 | 
			
		||||
#LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
 | 
			
		||||
#LoadModule proxy_scgi_module libexec/apache24/mod_proxy_scgi.so
 | 
			
		||||
#LoadModule proxy_uwsgi_module libexec/apache24/mod_proxy_uwsgi.so
 | 
			
		||||
#LoadModule proxy_fdpass_module libexec/apache24/mod_proxy_fdpass.so
 | 
			
		||||
#LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
 | 
			
		||||
#LoadModule proxy_ajp_module libexec/apache24/mod_proxy_ajp.so
 | 
			
		||||
#LoadModule proxy_balancer_module libexec/apache24/mod_proxy_balancer.so
 | 
			
		||||
#LoadModule proxy_express_module libexec/apache24/mod_proxy_express.so
 | 
			
		||||
#LoadModule proxy_hcheck_module libexec/apache24/mod_proxy_hcheck.so
 | 
			
		||||
#LoadModule session_module libexec/apache24/mod_session.so
 | 
			
		||||
#LoadModule session_cookie_module libexec/apache24/mod_session_cookie.so
 | 
			
		||||
#LoadModule session_crypto_module libexec/apache24/mod_session_crypto.so
 | 
			
		||||
#LoadModule session_dbd_module libexec/apache24/mod_session_dbd.so
 | 
			
		||||
#LoadModule slotmem_shm_module libexec/apache24/mod_slotmem_shm.so
 | 
			
		||||
#LoadModule slotmem_plain_module libexec/apache24/mod_slotmem_plain.so
 | 
			
		||||
LoadModule ssl_module libexec/apache24/mod_ssl.so
 | 
			
		||||
#LoadModule dialup_module libexec/apache24/mod_dialup.so
 | 
			
		||||
#LoadModule http2_module libexec/apache24/mod_http2.so
 | 
			
		||||
#LoadModule proxy_http2_module libexec/apache24/mod_proxy_http2.so
 | 
			
		||||
#LoadModule lbmethod_byrequests_module libexec/apache24/mod_lbmethod_byrequests.so
 | 
			
		||||
#LoadModule lbmethod_bytraffic_module libexec/apache24/mod_lbmethod_bytraffic.so
 | 
			
		||||
#LoadModule lbmethod_bybusyness_module libexec/apache24/mod_lbmethod_bybusyness.so
 | 
			
		||||
#LoadModule lbmethod_heartbeat_module libexec/apache24/mod_lbmethod_heartbeat.so
 | 
			
		||||
LoadModule unixd_module libexec/apache24/mod_unixd.so
 | 
			
		||||
#LoadModule heartbeat_module libexec/apache24/mod_heartbeat.so
 | 
			
		||||
#LoadModule heartmonitor_module libexec/apache24/mod_heartmonitor.so
 | 
			
		||||
#LoadModule dav_module libexec/apache24/mod_dav.so
 | 
			
		||||
LoadModule status_module libexec/apache24/mod_status.so
 | 
			
		||||
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
 | 
			
		||||
#LoadModule asis_module libexec/apache24/mod_asis.so
 | 
			
		||||
#LoadModule info_module libexec/apache24/mod_info.so
 | 
			
		||||
<IfModule !mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgid_module libexec/apache24/mod_cgid.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
<IfModule mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgi_module libexec/apache24/mod_cgi.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
#LoadModule dav_fs_module libexec/apache24/mod_dav_fs.so
 | 
			
		||||
#LoadModule dav_lock_module libexec/apache24/mod_dav_lock.so
 | 
			
		||||
#LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
 | 
			
		||||
#LoadModule negotiation_module libexec/apache24/mod_negotiation.so
 | 
			
		||||
LoadModule dir_module libexec/apache24/mod_dir.so
 | 
			
		||||
#LoadModule imagemap_module libexec/apache24/mod_imagemap.so
 | 
			
		||||
#LoadModule actions_module libexec/apache24/mod_actions.so
 | 
			
		||||
#LoadModule speling_module libexec/apache24/mod_speling.so
 | 
			
		||||
#LoadModule userdir_module libexec/apache24/mod_userdir.so
 | 
			
		||||
LoadModule alias_module libexec/apache24/mod_alias.so
 | 
			
		||||
#LoadModule rewrite_module libexec/apache24/mod_rewrite.so
 | 
			
		||||
LoadModule php7_module        libexec/apache24/libphp7.so
 | 
			
		||||
 | 
			
		||||
# Third party modules
 | 
			
		||||
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
 | 
			
		||||
 
 | 
			
		||||
<IfModule unixd_module>
 | 
			
		||||
#
 | 
			
		||||
# If you wish httpd to run as a different user or group, you must run
 | 
			
		||||
# httpd as root initially and it will switch.  
 | 
			
		||||
#
 | 
			
		||||
# User/Group: The name (or #number) of the user/group to run httpd as.
 | 
			
		||||
# It is usually good practice to create a dedicated user and group for
 | 
			
		||||
# running httpd, as with most system services.
 | 
			
		||||
#
 | 
			
		||||
User www
 | 
			
		||||
Group www
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# 'Main' server configuration
 | 
			
		||||
#
 | 
			
		||||
# The directives in this section set up the values used by the 'main'
 | 
			
		||||
# server, which responds to any requests that aren't handled by a
 | 
			
		||||
# <VirtualHost> definition.  These values also provide defaults for
 | 
			
		||||
# any <VirtualHost> containers you may define later in the file.
 | 
			
		||||
#
 | 
			
		||||
# All of these directives may appear inside <VirtualHost> containers,
 | 
			
		||||
# in which case these default settings will be overridden for the
 | 
			
		||||
# virtual host being defined.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerAdmin: Your address, where problems with the server should be
 | 
			
		||||
# e-mailed.  This address appears on some server-generated pages, such
 | 
			
		||||
# as error documents.  e.g. admin@your-domain.com
 | 
			
		||||
#
 | 
			
		||||
ServerAdmin you@example.com
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerName gives the name and port that the server uses to identify itself.
 | 
			
		||||
# This can often be determined automatically, but we recommend you specify
 | 
			
		||||
# it explicitly to prevent problems during startup.
 | 
			
		||||
#
 | 
			
		||||
# If your host doesn't have a registered DNS name, enter its IP address here.
 | 
			
		||||
#
 | 
			
		||||
#ServerName www.example.com:80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Deny access to the entirety of your server's filesystem. You must
 | 
			
		||||
# explicitly permit access to web content directories in other 
 | 
			
		||||
# <Directory> blocks below.
 | 
			
		||||
#
 | 
			
		||||
<Directory />
 | 
			
		||||
    AllowOverride none
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Note that from this point forward you must specifically allow
 | 
			
		||||
# particular features to be enabled - so if something's not working as
 | 
			
		||||
# you might expect, make sure that you have specifically enabled it
 | 
			
		||||
# below.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DocumentRoot: The directory out of which you will serve your
 | 
			
		||||
# documents. By default, all requests are taken from this directory, but
 | 
			
		||||
# symbolic links and aliases may be used to point to other locations.
 | 
			
		||||
#
 | 
			
		||||
DocumentRoot "/usr/local/www/apache24/data"
 | 
			
		||||
<Directory "/usr/local/www/apache24/data">
 | 
			
		||||
    #
 | 
			
		||||
    # Possible values for the Options directive are "None", "All",
 | 
			
		||||
    # or any combination of:
 | 
			
		||||
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
 | 
			
		||||
    #
 | 
			
		||||
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
 | 
			
		||||
    # doesn't give it to you.
 | 
			
		||||
    #
 | 
			
		||||
    # The Options directive is both complicated and important.  Please see
 | 
			
		||||
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
 | 
			
		||||
    # for more information.
 | 
			
		||||
    #
 | 
			
		||||
    Options Indexes FollowSymLinks
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    # It can be "All", "None", or any combination of the keywords:
 | 
			
		||||
    #   AllowOverride FileInfo AuthConfig Limit
 | 
			
		||||
    #
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Controls who can get stuff from this server.
 | 
			
		||||
    #
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DirectoryIndex: sets the file that Apache will serve if a directory
 | 
			
		||||
# is requested.
 | 
			
		||||
#
 | 
			
		||||
<IfModule dir_module>
 | 
			
		||||
    DirectoryIndex index.php index.html
 | 
			
		||||
    <FilesMatch "\.php$">
 | 
			
		||||
        SetHandler application/x-httpd-php
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
    <FilesMatch "\.phps$">
 | 
			
		||||
        SetHandler application/x-httpd-php-source
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The following lines prevent .htaccess and .htpasswd files from being 
 | 
			
		||||
# viewed by Web clients. 
 | 
			
		||||
#
 | 
			
		||||
<Files ".ht*">
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Files>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ErrorLog: The location of the error log file.
 | 
			
		||||
# If you do not specify an ErrorLog directive within a <VirtualHost>
 | 
			
		||||
# container, error messages relating to that virtual host will be
 | 
			
		||||
# logged here.  If you *do* define an error logfile for a <VirtualHost>
 | 
			
		||||
# container, that host's errors will be logged there and not here.
 | 
			
		||||
#
 | 
			
		||||
ErrorLog "/var/log/httpd-error.log"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# LogLevel: Control the number of messages logged to the error_log.
 | 
			
		||||
# Possible values include: debug, info, notice, warn, error, crit,
 | 
			
		||||
# alert, emerg.
 | 
			
		||||
#
 | 
			
		||||
LogLevel warn
 | 
			
		||||
 | 
			
		||||
<IfModule log_config_module>
 | 
			
		||||
    #
 | 
			
		||||
    # The following directives define some format nicknames for use with
 | 
			
		||||
    # a CustomLog directive (see below).
 | 
			
		||||
    #
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
 | 
			
		||||
 | 
			
		||||
    <IfModule logio_module>
 | 
			
		||||
      # You need to enable mod_logio.c to use %I and %O
 | 
			
		||||
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
 | 
			
		||||
    </IfModule>
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # The location and format of the access logfile (Common Logfile Format).
 | 
			
		||||
    # If you do not define any access logfiles within a <VirtualHost>
 | 
			
		||||
    # container, they will be logged here.  Contrariwise, if you *do*
 | 
			
		||||
    # define per-<VirtualHost> access logfiles, transactions will be
 | 
			
		||||
    # logged therein and *not* in this file.
 | 
			
		||||
    #
 | 
			
		||||
    CustomLog "/var/log/httpd-access.log" common
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # If you prefer a logfile with access, agent, and referer information
 | 
			
		||||
    # (Combined Logfile Format) you can use the following directive.
 | 
			
		||||
    #
 | 
			
		||||
    #CustomLog "/var/log/httpd-access.log" combined
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule alias_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Redirect: Allows you to tell clients about documents that used to 
 | 
			
		||||
    # exist in your server's namespace, but do not anymore. The client 
 | 
			
		||||
    # will make a new request for the document at its new location.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Redirect permanent /foo http://www.example.com/bar
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Alias: Maps web paths into filesystem paths and is used to
 | 
			
		||||
    # access content that does not live under the DocumentRoot.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Alias /webpath /full/filesystem/path
 | 
			
		||||
    #
 | 
			
		||||
    # If you include a trailing / on /webpath then the server will
 | 
			
		||||
    # require it to be present in the URL.  You will also likely
 | 
			
		||||
    # need to provide a <Directory> section to allow access to
 | 
			
		||||
    # the filesystem path.
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptAlias: This controls which directories contain server scripts. 
 | 
			
		||||
    # ScriptAliases are essentially the same as Aliases, except that
 | 
			
		||||
    # documents in the target directory are treated as applications and
 | 
			
		||||
    # run by the server when requested rather than as documents sent to the
 | 
			
		||||
    # client.  The same rules about trailing "/" apply to ScriptAlias
 | 
			
		||||
    # directives as to Alias.
 | 
			
		||||
    #
 | 
			
		||||
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule cgid_module>
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptSock: On threaded servers, designate the path to the UNIX
 | 
			
		||||
    # socket used to communicate with the CGI daemon of mod_cgid.
 | 
			
		||||
    #
 | 
			
		||||
    #Scriptsock cgisock
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliased
 | 
			
		||||
# CGI directory exists, if you have that configured.
 | 
			
		||||
#
 | 
			
		||||
<Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
    Options None
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
<IfModule headers_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
 | 
			
		||||
    # backend servers which have lingering "httpoxy" defects.
 | 
			
		||||
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
 | 
			
		||||
    #
 | 
			
		||||
    RequestHeader unset Proxy early
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule mime_module>
 | 
			
		||||
    #
 | 
			
		||||
    # TypesConfig points to the file containing the list of mappings from
 | 
			
		||||
    # filename extension to MIME-type.
 | 
			
		||||
    #
 | 
			
		||||
    TypesConfig etc/apache24/mime.types
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddType allows you to add to or override the MIME configuration
 | 
			
		||||
    # file specified in TypesConfig for specific file types.
 | 
			
		||||
    #
 | 
			
		||||
    #AddType application/x-gzip .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # AddEncoding allows you to have certain browsers uncompress
 | 
			
		||||
    # information on the fly. Note: Not all browsers support this.
 | 
			
		||||
    #
 | 
			
		||||
    #AddEncoding x-compress .Z
 | 
			
		||||
    #AddEncoding x-gzip .gz .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # If the AddEncoding directives above are commented-out, then you
 | 
			
		||||
    # probably should define those extensions to indicate media types:
 | 
			
		||||
    #
 | 
			
		||||
    AddType application/x-compress .Z
 | 
			
		||||
    AddType application/x-gzip .gz .tgz
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddHandler allows you to map certain file extensions to "handlers":
 | 
			
		||||
    # actions unrelated to filetype. These can be either built into the server
 | 
			
		||||
    # or added with the Action directive (see below)
 | 
			
		||||
    #
 | 
			
		||||
    # To use CGI scripts outside of ScriptAliased directories:
 | 
			
		||||
    # (You will also need to add "ExecCGI" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddHandler cgi-script .cgi
 | 
			
		||||
 | 
			
		||||
    # For type maps (negotiated resources):
 | 
			
		||||
    #AddHandler type-map var
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Filters allow you to process content before it is sent to the client.
 | 
			
		||||
    #
 | 
			
		||||
    # To parse .shtml files for server-side includes (SSI):
 | 
			
		||||
    # (You will also need to add "Includes" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddType text/html .shtml
 | 
			
		||||
    #AddOutputFilter INCLUDES .shtml
 | 
			
		||||
 | 
			
		||||
    AddType application/x-httpd-php .php
 | 
			
		||||
    AddType application/x-httpd-php-source .phps
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The mod_mime_magic module allows the server to use various hints from the
 | 
			
		||||
# contents of the file itself to determine its type.  The MIMEMagicFile
 | 
			
		||||
# directive tells the module where the hint definitions are located.
 | 
			
		||||
#
 | 
			
		||||
#MIMEMagicFile etc/apache24/magic
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Customizable error responses come in three flavors:
 | 
			
		||||
# 1) plain text 2) local redirects 3) external redirects
 | 
			
		||||
#
 | 
			
		||||
# Some examples:
 | 
			
		||||
#ErrorDocument 500 "The server made a boo boo."
 | 
			
		||||
#ErrorDocument 404 /missing.html
 | 
			
		||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 | 
			
		||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# MaxRanges: Maximum number of Ranges in a request before
 | 
			
		||||
# returning the entire resource, or one of the special
 | 
			
		||||
# values 'default', 'none' or 'unlimited'.
 | 
			
		||||
# Default setting is to accept 200 Ranges.
 | 
			
		||||
#MaxRanges unlimited
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# EnableMMAP and EnableSendfile: On systems that support it, 
 | 
			
		||||
# memory-mapping or the sendfile syscall may be used to deliver
 | 
			
		||||
# files.  This usually improves server performance, but must
 | 
			
		||||
# be turned off when serving from networked-mounted 
 | 
			
		||||
# filesystems or if support for these functions is otherwise
 | 
			
		||||
# broken on your system.
 | 
			
		||||
# Defaults: EnableMMAP On, EnableSendfile Off
 | 
			
		||||
#
 | 
			
		||||
#EnableMMAP off
 | 
			
		||||
#EnableSendfile on
 | 
			
		||||
 | 
			
		||||
# Supplemental configuration
 | 
			
		||||
#
 | 
			
		||||
# The configuration files in the etc/apache24/extra/ directory can be 
 | 
			
		||||
# included to add extra features or to modify the default configuration of 
 | 
			
		||||
# the server, or you may simply copy their contents here and change as 
 | 
			
		||||
# necessary.
 | 
			
		||||
 | 
			
		||||
# Server-pool management (MPM specific)
 | 
			
		||||
#Include etc/apache24/extra/httpd-mpm.conf
 | 
			
		||||
 | 
			
		||||
# Multi-language error messages
 | 
			
		||||
#Include etc/apache24/extra/httpd-multilang-errordoc.conf
 | 
			
		||||
 | 
			
		||||
# Fancy directory listings
 | 
			
		||||
#Include etc/apache24/extra/httpd-autoindex.conf
 | 
			
		||||
 | 
			
		||||
# Language settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-languages.conf
 | 
			
		||||
 | 
			
		||||
# User home directories
 | 
			
		||||
#Include etc/apache24/extra/httpd-userdir.conf
 | 
			
		||||
 | 
			
		||||
# Real-time info on requests and configuration
 | 
			
		||||
#Include etc/apache24/extra/httpd-info.conf
 | 
			
		||||
 | 
			
		||||
# Virtual hosts
 | 
			
		||||
#Include etc/apache24/extra/httpd-vhosts.conf
 | 
			
		||||
 | 
			
		||||
# Local access to the Apache HTTP Server Manual
 | 
			
		||||
#Include etc/apache24/extra/httpd-manual.conf
 | 
			
		||||
 | 
			
		||||
# Distributed authoring and versioning (WebDAV)
 | 
			
		||||
#Include etc/apache24/extra/httpd-dav.conf
 | 
			
		||||
 | 
			
		||||
# Various default settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-default.conf
 | 
			
		||||
 | 
			
		||||
# Configure mod_proxy_html to understand HTML4/XHTML1
 | 
			
		||||
<IfModule proxy_html_module>
 | 
			
		||||
Include etc/apache24/extra/proxy-html.conf
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# Secure (SSL/TLS) connections
 | 
			
		||||
#Include etc/apache24/extra/httpd-ssl.conf
 | 
			
		||||
#
 | 
			
		||||
# Note: The following must must be present to support
 | 
			
		||||
#       starting without SSL on platforms with no /dev/random equivalent
 | 
			
		||||
#       but a statically compiled-in mod_ssl.
 | 
			
		||||
#
 | 
			
		||||
<IfModule ssl_module>
 | 
			
		||||
SSLRandomSeed startup builtin
 | 
			
		||||
SSLRandomSeed connect builtin
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
Include etc/apache24/Includes/*.conf
 | 
			
		||||
 | 
			
		||||
<VirtualHost *:443>
 | 
			
		||||
    ServerName hub.ahlawat.com
 | 
			
		||||
    ServerAlias *.ahlawat.com
 | 
			
		||||
    ServerAlias hub
 | 
			
		||||
 | 
			
		||||
    DocumentRoot "/usr/local/www/apache24/data/"
 | 
			
		||||
 | 
			
		||||
    SSLEngine on
 | 
			
		||||
    SSLCertificateFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLCertificateKeyFile "/mnt/certs/privkey.pem"
 | 
			
		||||
    #SSLCertificateChainFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
 | 
			
		||||
  <FilesMatch "\.(cgi|shtml|phtml|php)$">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </FilesMatch>
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
 | 
			
		||||
  CustomLog "/var/log/ssl-request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/data/">
 | 
			
		||||
    Options Indexes FollowSymLinks MultiViews
 | 
			
		||||
    ## IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort SuppressHTMLPreamble NameWidth=96 DescriptionWidth=16
 | 
			
		||||
    IndexOptions FancyIndexing FoldersFirst IgnoreCase NameWidth=96
 | 
			
		||||
 | 
			
		||||
    #AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    #AllowOverride All
 | 
			
		||||
    AllowOverride AuthConfig
 | 
			
		||||
    #Controls who can get stuff from this server file
 | 
			
		||||
    Require all granted
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  ErrorLog "/var/log/ssl-error.log"
 | 
			
		||||
  CustomLog "/var/log/ssl-access_log" combined
 | 
			
		||||
</VirtualHost>
 | 
			
		||||
							
								
								
									
										419
									
								
								jails/config/hub/menu
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										419
									
								
								jails/config/hub/menu
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,419 @@
 | 
			
		||||
shell_patterns=0
 | 
			
		||||
 | 
			
		||||
##############################################################################
 | 
			
		||||
#   %%  The % character
 | 
			
		||||
#   %f  The current file (if non-local vfs, file will be copied locally and
 | 
			
		||||
#                         %f will be full path to it)
 | 
			
		||||
#   %p  The current file
 | 
			
		||||
#   %d  The current working directory
 | 
			
		||||
#   %s  "Selected files"; the tagged files if any, otherwise the current file
 | 
			
		||||
#   %t  Tagged files
 | 
			
		||||
#   %u  Tagged files (and they are untagged on return from expand_format)
 | 
			
		||||
#   %view Runs the commands and pipes standard output to the view command
 | 
			
		||||
#   If %view is immediately followed by '{', recognize keywords
 | 
			
		||||
#   ascii, hex, nroff and unform
 | 
			
		||||
#
 | 
			
		||||
#   If the format letter is in uppercase, it refers to the other panel
 | 
			
		||||
#
 | 
			
		||||
#   With a number followed the % character you can turn quoting on (default)
 | 
			
		||||
#   and off. For example:
 | 
			
		||||
#   %f    quote expanded macro
 | 
			
		||||
#   %1f   ditto
 | 
			
		||||
#   %0f   don't quote expanded macro
 | 
			
		||||
##############################################################################
 | 
			
		||||
 | 
			
		||||
+ ! t t
 | 
			
		||||
@       Do something on the current file
 | 
			
		||||
        CMD=%{Enter command}
 | 
			
		||||
        $CMD %f
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
@       Do something on the tagged files
 | 
			
		||||
        CMD=%{Enter command}
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            $CMD "$i"
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
0       Edit a bug report and send it to root
 | 
			
		||||
        I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1
 | 
			
		||||
        ${EDITOR-vi} "$I"
 | 
			
		||||
        test -r "$I" && mail root < "$I"
 | 
			
		||||
        rm -f "$I"
 | 
			
		||||
 | 
			
		||||
=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
 | 
			
		||||
1       Display the file with roff -man
 | 
			
		||||
        %view{ascii,nroff} roff -c -Tlatin1 -mandoc %f
 | 
			
		||||
 | 
			
		||||
2       Call the info hypertext browser
 | 
			
		||||
        info
 | 
			
		||||
 | 
			
		||||
= t d
 | 
			
		||||
3       Compress the current subdirectory (tar.gz)
 | 
			
		||||
        Pwd=`basename %d /`
 | 
			
		||||
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
 | 
			
		||||
        read tar
 | 
			
		||||
        [ "$tar"x = x ] && tar="$Pwd"
 | 
			
		||||
        cd .. && \
 | 
			
		||||
        tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \
 | 
			
		||||
        echo "../$tar.tar.gz created."
 | 
			
		||||
 | 
			
		||||
4       Compress the current subdirectory (tar.bz2)
 | 
			
		||||
        Pwd=`basename %d /`
 | 
			
		||||
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
 | 
			
		||||
        read tar
 | 
			
		||||
        [ "$tar"x = x ] && tar="$Pwd"
 | 
			
		||||
        cd .. && \
 | 
			
		||||
        tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
 | 
			
		||||
        echo "../$tar.tar.bz2 created."
 | 
			
		||||
 | 
			
		||||
5       Compress the current subdirectory (tar.7z)
 | 
			
		||||
        Pwd=`basename %d /`
 | 
			
		||||
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
 | 
			
		||||
        read tar
 | 
			
		||||
        [ "$tar"x = x ] && tar="$Pwd"
 | 
			
		||||
        cd .. && \
 | 
			
		||||
        tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \
 | 
			
		||||
        echo "../$tar.tar.7z created."
 | 
			
		||||
 | 
			
		||||
6       Compress the current subdirectory (tar.xz)
 | 
			
		||||
        Pwd=`basename %d /`
 | 
			
		||||
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
 | 
			
		||||
        read tar
 | 
			
		||||
        [ "$tar"x = x ] && tar="$Pwd"
 | 
			
		||||
        cd .. && \
 | 
			
		||||
        tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \
 | 
			
		||||
        echo "../$tar.tar.xz created."
 | 
			
		||||
 | 
			
		||||
= f \.c$ & t r
 | 
			
		||||
+ f \.c$ & t r & ! t t
 | 
			
		||||
c       Compile and link current .c file
 | 
			
		||||
        make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f
 | 
			
		||||
 | 
			
		||||
+ t r & ! t t
 | 
			
		||||
a       Append file to opposite
 | 
			
		||||
        cat %f >> %D/%f
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
A       Append files to opposite files
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            cat "$i" >> %D/"$i"
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
+ t r & ! t t
 | 
			
		||||
d       Delete file if a copy exists in the other directory.
 | 
			
		||||
        if [ %d = %D ]; then
 | 
			
		||||
            echo "The two directories must be different."
 | 
			
		||||
            exit 1
 | 
			
		||||
        fi
 | 
			
		||||
        if [ -f %D/%f ]; then        # if two of them, then
 | 
			
		||||
            if cmp -s %D/%f %f; then
 | 
			
		||||
                rm %f && echo %f": DELETED."
 | 
			
		||||
            else
 | 
			
		||||
                echo %f" and "%D/%f" differ: NOT deleted."
 | 
			
		||||
                echo -n "Press RETURN "
 | 
			
		||||
                read key
 | 
			
		||||
            fi
 | 
			
		||||
        else
 | 
			
		||||
            echo %f": No copy in "%D/%f": NOT deleted."
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
D       Delete tagged files if a copy exists in the other directory.
 | 
			
		||||
        if [ %d = %D ]; then
 | 
			
		||||
            echo "The two directores must be different."
 | 
			
		||||
            exit 1
 | 
			
		||||
        fi
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            if [ -f %D/"$i" ]; then
 | 
			
		||||
                SUM1=`sum "$i"`
 | 
			
		||||
                SUM2=`sum %D/"$i"`
 | 
			
		||||
                if [ "$SUM1" = "$SUM2" ]; then
 | 
			
		||||
                    rm "$i" && echo "${i}: DELETED."
 | 
			
		||||
                else
 | 
			
		||||
                    echo "$i and "%D"/$i differ: NOT deleted."
 | 
			
		||||
                fi
 | 
			
		||||
            else
 | 
			
		||||
                echo "$i has no copy in "%D": NOT deleted."
 | 
			
		||||
            fi
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
m       View manual page
 | 
			
		||||
        MAN=%{Enter manual name}
 | 
			
		||||
        %view{ascii,nroff} MANROFFOPT='-c -Tlatin1' MAN_KEEP_FORMATTING=1 man -P cat "$MAN"
 | 
			
		||||
 | 
			
		||||
= f \.gz$ & t r
 | 
			
		||||
+ ! t t
 | 
			
		||||
n       Inspect gzip'ed newsbatch file
 | 
			
		||||
        dd if=%f bs=1 skip=12 | zcat | ${PAGER-more}
 | 
			
		||||
        # assuming the cunbatch header is 12 bytes long.
 | 
			
		||||
 | 
			
		||||
= t r &
 | 
			
		||||
+ ! t t
 | 
			
		||||
h       Strip headers from current newsarticle
 | 
			
		||||
        CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null
 | 
			
		||||
        case "$CHECK" in
 | 
			
		||||
            Newsgroups:|Path:)
 | 
			
		||||
                I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
 | 
			
		||||
                cp %f "$I" && sed '/^'"$CHECK"' /,/^$/d' "$I" > %f
 | 
			
		||||
                [ "$?" = "0" ] && rm "$I"
 | 
			
		||||
                echo %f": header removed."
 | 
			
		||||
                ;;
 | 
			
		||||
            *)
 | 
			
		||||
                echo %f" is not a news article."
 | 
			
		||||
                ;;
 | 
			
		||||
        esac
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
H       Strip headers from the marked newsarticles
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null
 | 
			
		||||
            WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
 | 
			
		||||
            case "$CHECK" in
 | 
			
		||||
                Newsgroups:|Path:)
 | 
			
		||||
                    cp "$i" "$WFILE" && sed '/^'"$CHECK"' /,/^$/d' "$WFILE" > "$i"
 | 
			
		||||
                    if [ "$?" = "0" ]; then
 | 
			
		||||
                        rm "$WFILE"; echo "$i header removed. OK."
 | 
			
		||||
                    else
 | 
			
		||||
                        echo "Oops! Please check $i against $WFILE."
 | 
			
		||||
                    fi
 | 
			
		||||
                    ;;
 | 
			
		||||
                *)
 | 
			
		||||
                    echo "$i skipped: Not a news article."
 | 
			
		||||
                    ;;
 | 
			
		||||
            esac
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
= t r
 | 
			
		||||
+ ! t t
 | 
			
		||||
r       Copy file to remote host
 | 
			
		||||
        echo -n "To which host?: "
 | 
			
		||||
        read Host
 | 
			
		||||
        echo -n "To which directory on $Host?: "
 | 
			
		||||
        read Dir
 | 
			
		||||
        rcp -p %f "${Host}:${Dir}"
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
R       Copy files to remote host (no error checking)
 | 
			
		||||
        echo -n "Copy files to which host?: "
 | 
			
		||||
        read Host
 | 
			
		||||
        echo -n "To which directory on $Host? :"
 | 
			
		||||
        read Dir
 | 
			
		||||
        rcp -pr %u "${Host}:${Dir}"
 | 
			
		||||
 | 
			
		||||
= f \.tex$ & t r
 | 
			
		||||
+ f \.tex$ & t r & ! t t
 | 
			
		||||
t       Run latex on file and show it with xdvi
 | 
			
		||||
        latex %f && xdvi "`basename %f .tex`".dvi
 | 
			
		||||
 | 
			
		||||
=+ f ^part | f ^Part | f uue & t r
 | 
			
		||||
+ t t
 | 
			
		||||
U       Uudecode marked news articles (needs work)
 | 
			
		||||
        (
 | 
			
		||||
            for i in %t ; do # strip headers
 | 
			
		||||
                FIRST=`awk '{print $1 ; exit}' "$i"`
 | 
			
		||||
                cat "$i" | sed '/^'"$FIRST"' /,/^$/d'
 | 
			
		||||
            done
 | 
			
		||||
        ) | sed '/^$/d' | sed -n '/^begin 6/,/^end$/p' | uudecode
 | 
			
		||||
        if [ "$?" != "0" ]; then
 | 
			
		||||
            echo "Cannot decode "%t"."
 | 
			
		||||
        fi
 | 
			
		||||
        echo "Please test the output file before deleting anything."
 | 
			
		||||
 | 
			
		||||
=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.Z$ | f \.tar\.bz2$ & t r
 | 
			
		||||
x       Extract the contents of a compressed tar file
 | 
			
		||||
        unset PRG
 | 
			
		||||
        case %f in
 | 
			
		||||
            *.tar.7z)   PRG="7za e -so";;
 | 
			
		||||
            *.tar.bz2)  PRG="bunzip2 -c";;
 | 
			
		||||
            *.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z) PRG="gzip -dc";;
 | 
			
		||||
            *.tar.lz)   PRG="lzip -dc";;
 | 
			
		||||
            *.tar.lz4)  PRG="lz4 -dc";;
 | 
			
		||||
            *.tar.lzma) PRG="lzma -dc";;
 | 
			
		||||
            *.tar.xz)   PRG="xz -dc";;
 | 
			
		||||
            *)          exit 1;;
 | 
			
		||||
        esac
 | 
			
		||||
        $PRG %f | tar xvf -
 | 
			
		||||
 | 
			
		||||
= t r
 | 
			
		||||
+ ! t t
 | 
			
		||||
y       Gzip or gunzip current file
 | 
			
		||||
        unset DECOMP
 | 
			
		||||
        case %f in
 | 
			
		||||
            *.gz|*.[zZ]) DECOMP=-d;;
 | 
			
		||||
        esac
 | 
			
		||||
        # Do *not* add quotes around $DECOMP!
 | 
			
		||||
        gzip $DECOMP -v %f
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
Y       Gzip or gunzip tagged files
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            unset DECOMP
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.gz|*.[zZ]) DECOMP=-d;;
 | 
			
		||||
            esac
 | 
			
		||||
            gzip $DECOMP -v "$i"
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
+ ! t t
 | 
			
		||||
b       Bzip2 or bunzip2 current file
 | 
			
		||||
        unset DECOMP
 | 
			
		||||
        case %f in
 | 
			
		||||
            *.bz2) DECOMP=-d;;
 | 
			
		||||
        esac
 | 
			
		||||
        bzip2 $DECOMP -v %f
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
B       Bzip2 or bunzip2 tagged files
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            unset DECOMP
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.bz2) DECOMP=-d;;
 | 
			
		||||
            esac
 | 
			
		||||
            bzip2 $DECOMP -v "$i"
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
 | 
			
		||||
z       Extract compressed tar file to subdirectory
 | 
			
		||||
        unset D
 | 
			
		||||
        set gzip -cd
 | 
			
		||||
        case %f in
 | 
			
		||||
            *.tar.F)   D=`basename %f .tar.F`; set freeze -dc;;
 | 
			
		||||
            *.tar.Z)   D=`basename %f .tar.Z`;;
 | 
			
		||||
            *.tar.bz2) D=`basename %f .tar.bz2`; set bunzip2 -c;;
 | 
			
		||||
            *.tar.gz)  D=`basename %f .tar.gz`;;
 | 
			
		||||
            *.tar.z)   D=`basename %f .tar.z`;;
 | 
			
		||||
            *.tgz)     D=`basename %f .tgz`;;
 | 
			
		||||
            *.tpz)     D=`basename %f .tpz`;;
 | 
			
		||||
        esac
 | 
			
		||||
        mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -)
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
Z       Extract compressed tar files to subdirectories
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            set gzip -dc
 | 
			
		||||
            unset D
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.tar.F)   D=`basename "$i" .tar.F`; set freeze -dc;;
 | 
			
		||||
                *.tar.Z)   D=`basename "$i" .tar.Z`;;
 | 
			
		||||
                *.tar.bz2) D=`basename "$i" .tar.bz2`; set bunzip2 -c;;
 | 
			
		||||
                *.tar.gz)  D=`basename "$i" .tar.gz`;;
 | 
			
		||||
                *.tar.z)   D=`basename "$i" .tar.z`;;
 | 
			
		||||
                *.tgz)     D=`basename "$i" .tgz`;;
 | 
			
		||||
                *.tpz)     D=`basename "$i" .tpz`;;
 | 
			
		||||
          esac
 | 
			
		||||
          mkdir "$D"; (cd "$D" && "$1" "$2" "../$i" | tar xvf -)
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t
 | 
			
		||||
c       Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
 | 
			
		||||
        unset D
 | 
			
		||||
        unset EXT
 | 
			
		||||
        case %f in
 | 
			
		||||
            *.Z)   EXT=Z;;
 | 
			
		||||
            *.bz2) EXT=bz2;;
 | 
			
		||||
            *.gz)  EXT=gz;;
 | 
			
		||||
            *.tgz) EXT=tgz;;
 | 
			
		||||
            *.tpz) EXT=tpz;;
 | 
			
		||||
            *.z)   EXT=z;;
 | 
			
		||||
        esac
 | 
			
		||||
        case "$EXT" in
 | 
			
		||||
            bz2|Z|gz|z) D=`basename %f ."$EXT"`;;
 | 
			
		||||
            tgz|tpz)    D=`basename %f ."$EXT"`.tar;;
 | 
			
		||||
        esac
 | 
			
		||||
        if [ "$EXT" = "bz2" ]; then
 | 
			
		||||
            bunzip2 -v %f
 | 
			
		||||
            gzip -f9 -v "$D"
 | 
			
		||||
        else
 | 
			
		||||
            gunzip -v %f
 | 
			
		||||
            bzip2 -v "$D"
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
+ t t
 | 
			
		||||
C       Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2
 | 
			
		||||
        for i in %t ; do
 | 
			
		||||
            unset D
 | 
			
		||||
            unset EXT
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.Z)   EXT=Z;;
 | 
			
		||||
                *.bz2) EXT=bz2;;
 | 
			
		||||
                *.gz)  EXT=gz;;
 | 
			
		||||
                *.tgz) EXT=tgz;;
 | 
			
		||||
                *.tpz) EXT=tpz;;
 | 
			
		||||
                *.z)   EXT=z;;
 | 
			
		||||
            esac
 | 
			
		||||
            case "$EXT" in
 | 
			
		||||
                bz2|Z|gz|z) D=`basename "$i" ."$EXT"`;;
 | 
			
		||||
                tgz|tpz)    D=`basename "$i" ."$EXT"`.tar;;
 | 
			
		||||
            esac
 | 
			
		||||
            if [ "$EXT" = "bz2" ]; then
 | 
			
		||||
                bunzip2 -v "$i"
 | 
			
		||||
                gzip -f9 -v "$D"
 | 
			
		||||
            else
 | 
			
		||||
                gunzip -v "$i"
 | 
			
		||||
                bzip2 -v "$D"
 | 
			
		||||
            fi
 | 
			
		||||
        done
 | 
			
		||||
 | 
			
		||||
+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
 | 
			
		||||
o       Open next a free console
 | 
			
		||||
        open -s -- sh
 | 
			
		||||
 | 
			
		||||
= t t
 | 
			
		||||
+ t n
 | 
			
		||||
7       7unzip/unrar the (un)tagged file(s) in panel dir
 | 
			
		||||
	for i in %s ; do
 | 
			
		||||
            unset EXT
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.rar)   EXT=rar;;
 | 
			
		||||
                *.7z)   EXT=sevz;;
 | 
			
		||||
                *.zip)   EXT=sevz;;
 | 
			
		||||
                *.gzip)   EXT=sevz;;
 | 
			
		||||
                *.bzip2)   EXT=sevz;;
 | 
			
		||||
            esac
 | 
			
		||||
            case "$EXT" in
 | 
			
		||||
                rar) /usr/local/bin/unrar x -y $i %D ;;
 | 
			
		||||
                sevz) /usr/local/bin/7z x -y -o%D $i ;;
 | 
			
		||||
            esac
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
= t t
 | 
			
		||||
+ t d
 | 
			
		||||
7       7unzip the (un)tagged dir(s) in panel dir
 | 
			
		||||
	for i in %s ; do
 | 
			
		||||
        	/usr/local/bin/7z x -y -o%D $i
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
= t t
 | 
			
		||||
+ t n
 | 
			
		||||
8       7unzip/unrar the (un)tagged file(s) in panel SUB dir
 | 
			
		||||
	for i in %s ; do
 | 
			
		||||
            unset EXT
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.rar)   EXT=rar;;
 | 
			
		||||
                *.7z)   EXT=sevz;;
 | 
			
		||||
                *.zip)   EXT=sevz;;
 | 
			
		||||
                *.gzip)   EXT=sevz;;
 | 
			
		||||
                *.bzip2)   EXT=sevz;;
 | 
			
		||||
            esac
 | 
			
		||||
    	    Pwd=`basename %d /`
 | 
			
		||||
            case "$EXT" in
 | 
			
		||||
                rar) mkdir %D/$Pwd ; /usr/local/bin/unrar x -y $i %D/$Pwd ;;
 | 
			
		||||
                sevz) mkdir %D/$Pwd ; /usr/local/bin/7z x -y -o%D/$Pwd $i ;;
 | 
			
		||||
            esac
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
= t t
 | 
			
		||||
+ t n
 | 
			
		||||
9       xorriso the current file in current dir
 | 
			
		||||
        /usr/local/bin/osirrox -indev %f -extract / .
 | 
			
		||||
#        /usr/local/bin/xorriso -osirrox on -indev %f -extract / .
 | 
			
		||||
 | 
			
		||||
= t t
 | 
			
		||||
+ t n
 | 
			
		||||
n       xorriso the (un)tagged file(s) in panel SUB dir
 | 
			
		||||
	for i in %s ; do
 | 
			
		||||
	    Pwd=`basename $i .iso`
 | 
			
		||||
            case "$i" in
 | 
			
		||||
                *.iso)   mkdir %D/$Pwd ; /usr/local/bin/osirrox -indev $i -extract / %D/$Pwd ;;
 | 
			
		||||
            esac
 | 
			
		||||
	done
 | 
			
		||||
							
								
								
									
										4
									
								
								jails/config/hub/periodic.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								jails/config/hub/periodic.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
daily_rkhunter_update_enable="YES"
 | 
			
		||||
daily_rkhunter_update_flags="--update --nocolors"
 | 
			
		||||
daily_rkhunter_check_enable="YES"
 | 
			
		||||
daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"
 | 
			
		||||
							
								
								
									
										1918
									
								
								jails/config/hub/php.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1918
									
								
								jails/config/hub/php.ini
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								jails/config/hub/phptest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								jails/config/hub/phptest.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
<?php phpinfo(); ?>
 | 
			
		||||
							
								
								
									
										20
									
								
								jails/config/hub/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/hub/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FreeBSD: {
 | 
			
		||||
    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
 | 
			
		||||
    enabled: no
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp-freebsd-pkg: {
 | 
			
		||||
    url: "http://pkgp-freebsd-pkg.ahlawat.com/${ABI}/latest",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 10
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp121: {
 | 
			
		||||
    url: "http://pkgp.ahlawat.com/packages/pj121-default/",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    signature_type: "pubkey",
 | 
			
		||||
    pubkey: "/mnt/certs/poudriere.cert",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 100
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										6
									
								
								jails/config/hub/setup_jail.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								jails/config/hub/setup_jail.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
# requrired to run other configured scripts
 | 
			
		||||
/bin/sh /etc/rc
 | 
			
		||||
# setup mozilla tmp cache
 | 
			
		||||
mkdir /tmp/mozilla
 | 
			
		||||
ln -sf /tmp/mozilla /usr/home/p/.cache
 | 
			
		||||
chown p:p /usr/home/p/.cache/mozilla
 | 
			
		||||
							
								
								
									
										88
									
								
								jails/config/hub/smb4.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										88
									
								
								jails/config/hub/smb4.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,88 @@
 | 
			
		||||
[global]
 | 
			
		||||
    aio max threads = 2
 | 
			
		||||
    create mask = 0664
 | 
			
		||||
    deadtime = 15
 | 
			
		||||
    directory mask = 0775
 | 
			
		||||
    directory name cache size = 0
 | 
			
		||||
    disable spoolss = yes
 | 
			
		||||
    dns proxy = no
 | 
			
		||||
    dos charset = CP437
 | 
			
		||||
    guest account = nobody
 | 
			
		||||
    idmap config *: backend = tdb
 | 
			
		||||
    idmap config *: range = 90000001-100000000
 | 
			
		||||
    get quota command=/mnt/config/smb_quota_void.sh
 | 
			
		||||
    kernel change notify = no
 | 
			
		||||
    lm announce = no
 | 
			
		||||
    load printers = no
 | 
			
		||||
    local master = yes
 | 
			
		||||
    log level = 1
 | 
			
		||||
    logging = file
 | 
			
		||||
    max log size = 51200
 | 
			
		||||
    max open files = 468857
 | 
			
		||||
    multicast dns register = yes
 | 
			
		||||
    netbios name = hubx
 | 
			
		||||
    obey pam restrictions = yes
 | 
			
		||||
    printcap name = /dev/null
 | 
			
		||||
    printing = bsd
 | 
			
		||||
    private dir = /var/db/samba4/private
 | 
			
		||||
    security = user
 | 
			
		||||
    server max protocol = SMB3
 | 
			
		||||
    server min protocol = SMB2_02
 | 
			
		||||
    server role = standalone
 | 
			
		||||
    server string = hubx SMB Server
 | 
			
		||||
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
 | 
			
		||||
    strict locking = no
 | 
			
		||||
    strict sync = no
 | 
			
		||||
    sync always = no
 | 
			
		||||
    workgroup = HUBX_Group
 | 
			
		||||
 | 
			
		||||
[stmp]
 | 
			
		||||
        path = /tmp
 | 
			
		||||
        directory mask = 0700
 | 
			
		||||
        create mask = 0400
 | 
			
		||||
        writeable = yes
 | 
			
		||||
        valid users = p
 | 
			
		||||
 | 
			
		||||
[usb]
 | 
			
		||||
    path = /mnt/usb
 | 
			
		||||
    read only = yes
 | 
			
		||||
#    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
    dos filemode = yes
 | 
			
		||||
    guest ok = yes
 | 
			
		||||
 | 
			
		||||
[sw]
 | 
			
		||||
    path = /mnt/sw
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
 | 
			
		||||
[movies-4k]
 | 
			
		||||
    path = /mnt/movies-4k
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
 | 
			
		||||
[movies-hd]
 | 
			
		||||
    path = /mnt/movies-hd
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
 | 
			
		||||
[movies]
 | 
			
		||||
    path = /mnt/movies
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
 | 
			
		||||
[tuts]
 | 
			
		||||
    path = /mnt/tuts
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
 | 
			
		||||
[trgs]
 | 
			
		||||
    path = /mnt/trgs
 | 
			
		||||
    read only = yes
 | 
			
		||||
    valid users = p
 | 
			
		||||
    browseable = yes
 | 
			
		||||
							
								
								
									
										2
									
								
								jails/config/hub/smb_quota_void.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								jails/config/hub/smb_quota_void.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#! /bin/sh
 | 
			
		||||
echo "0 0 0 0 0 0 0"
 | 
			
		||||
							
								
								
									
										121
									
								
								jails/config/hub/sshd_config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								jails/config/hub/sshd_config
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,121 @@
 | 
			
		||||
#	$OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
 | 
			
		||||
#	$FreeBSD: releng/12.1/crypto/openssh/sshd_config 338561 2018-09-10 16:20:12Z des $
 | 
			
		||||
 | 
			
		||||
# This is the sshd server system-wide configuration file.  See
 | 
			
		||||
# sshd_config(5) for more information.
 | 
			
		||||
 | 
			
		||||
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
 | 
			
		||||
 | 
			
		||||
# The strategy used for options in the default sshd_config shipped with
 | 
			
		||||
# OpenSSH is to specify options with their default value where
 | 
			
		||||
# possible, but leave them commented.  Uncommented options override the
 | 
			
		||||
# default value.
 | 
			
		||||
 | 
			
		||||
# Note that some of FreeBSD's defaults differ from OpenBSD's, and
 | 
			
		||||
# FreeBSD has a few additional options.
 | 
			
		||||
 | 
			
		||||
#Port 22
 | 
			
		||||
#AddressFamily any
 | 
			
		||||
#ListenAddress 0.0.0.0
 | 
			
		||||
#ListenAddress ::
 | 
			
		||||
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_rsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ed25519_key
 | 
			
		||||
 | 
			
		||||
# Ciphers and keying
 | 
			
		||||
#RekeyLimit default none
 | 
			
		||||
 | 
			
		||||
# Logging
 | 
			
		||||
#SyslogFacility AUTH
 | 
			
		||||
#LogLevel INFO
 | 
			
		||||
 | 
			
		||||
# Authentication:
 | 
			
		||||
 | 
			
		||||
#LoginGraceTime 2m
 | 
			
		||||
PermitRootLogin no
 | 
			
		||||
#StrictModes yes
 | 
			
		||||
MaxAuthTries 2
 | 
			
		||||
MaxSessions 2
 | 
			
		||||
 | 
			
		||||
#PubkeyAuthentication yes
 | 
			
		||||
 | 
			
		||||
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
 | 
			
		||||
# but this is overridden so installations will only check .ssh/authorized_keys
 | 
			
		||||
AuthorizedKeysFile	.ssh/authorized_keys
 | 
			
		||||
 | 
			
		||||
#AuthorizedPrincipalsFile none
 | 
			
		||||
 | 
			
		||||
#AuthorizedKeysCommand none
 | 
			
		||||
#AuthorizedKeysCommandUser nobody
 | 
			
		||||
 | 
			
		||||
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
 | 
			
		||||
#HostbasedAuthentication no
 | 
			
		||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
 | 
			
		||||
# HostbasedAuthentication
 | 
			
		||||
#IgnoreUserKnownHosts no
 | 
			
		||||
# Don't read the user's ~/.rhosts and ~/.shosts files
 | 
			
		||||
#IgnoreRhosts yes
 | 
			
		||||
 | 
			
		||||
# Change to yes to enable built-in password authentication.
 | 
			
		||||
PasswordAuthentication no
 | 
			
		||||
#PermitEmptyPasswords no
 | 
			
		||||
 | 
			
		||||
# Change to no to disable PAM authentication
 | 
			
		||||
#ChallengeResponseAuthentication yes
 | 
			
		||||
 | 
			
		||||
# Kerberos options
 | 
			
		||||
#KerberosAuthentication no
 | 
			
		||||
#KerberosOrLocalPasswd yes
 | 
			
		||||
#KerberosTicketCleanup yes
 | 
			
		||||
#KerberosGetAFSToken no
 | 
			
		||||
 | 
			
		||||
# GSSAPI options
 | 
			
		||||
#GSSAPIAuthentication no
 | 
			
		||||
#GSSAPICleanupCredentials yes
 | 
			
		||||
 | 
			
		||||
# Set this to 'no' to disable PAM authentication, account processing,
 | 
			
		||||
# and session processing. If this is enabled, PAM authentication will
 | 
			
		||||
# be allowed through the ChallengeResponseAuthentication and
 | 
			
		||||
# PasswordAuthentication.  Depending on your PAM configuration,
 | 
			
		||||
# PAM authentication via ChallengeResponseAuthentication may bypass
 | 
			
		||||
# the setting of "PermitRootLogin without-password".
 | 
			
		||||
# If you just want the PAM account and session checks to run without
 | 
			
		||||
# PAM authentication, then enable this but set PasswordAuthentication
 | 
			
		||||
# and ChallengeResponseAuthentication to 'no'.
 | 
			
		||||
#UsePAM yes
 | 
			
		||||
 | 
			
		||||
#AllowAgentForwarding yes
 | 
			
		||||
#AllowTcpForwarding yes
 | 
			
		||||
#GatewayPorts no
 | 
			
		||||
#X11Forwarding yes
 | 
			
		||||
#X11DisplayOffset 10
 | 
			
		||||
#X11UseLocalhost yes
 | 
			
		||||
#PermitTTY yes
 | 
			
		||||
#PrintMotd yes
 | 
			
		||||
#PrintLastLog yes
 | 
			
		||||
#TCPKeepAlive yes
 | 
			
		||||
#PermitUserEnvironment no
 | 
			
		||||
#Compression delayed
 | 
			
		||||
#ClientAliveInterval 0
 | 
			
		||||
#ClientAliveCountMax 3
 | 
			
		||||
#UseDNS yes
 | 
			
		||||
#PidFile /var/run/sshd.pid
 | 
			
		||||
#MaxStartups 10:30:100
 | 
			
		||||
#PermitTunnel no
 | 
			
		||||
#ChrootDirectory none
 | 
			
		||||
#UseBlacklist no
 | 
			
		||||
#VersionAddendum FreeBSD-20180909
 | 
			
		||||
 | 
			
		||||
# no default banner path
 | 
			
		||||
#Banner none
 | 
			
		||||
 | 
			
		||||
# override default of no subsystems
 | 
			
		||||
Subsystem	sftp	/usr/libexec/sftp-server
 | 
			
		||||
 | 
			
		||||
# Example of overriding settings on a per-user basis
 | 
			
		||||
#Match User anoncvs
 | 
			
		||||
#	X11Forwarding no
 | 
			
		||||
#	AllowTcpForwarding no
 | 
			
		||||
#	PermitTTY no
 | 
			
		||||
#	ForceCommand cvs server
 | 
			
		||||
							
								
								
									
										423
									
								
								jails/config/hub/www.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										423
									
								
								jails/config/hub/www.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,423 @@
 | 
			
		||||
; Start a new pool named 'www'.
 | 
			
		||||
; the variable $pool can be used in any directive and will be replaced by the
 | 
			
		||||
; pool name ('www' here)
 | 
			
		||||
[www]
 | 
			
		||||
 | 
			
		||||
; Per pool prefix
 | 
			
		||||
; It only applies on the following directives:
 | 
			
		||||
; - 'access.log'
 | 
			
		||||
; - 'slowlog'
 | 
			
		||||
; - 'listen' (unixsocket)
 | 
			
		||||
; - 'chroot'
 | 
			
		||||
; - 'chdir'
 | 
			
		||||
; - 'php_values'
 | 
			
		||||
; - 'php_admin_values'
 | 
			
		||||
; When not set, the global prefix (or /usr/local) applies instead.
 | 
			
		||||
; Note: This directive can also be relative to the global prefix.
 | 
			
		||||
; Default Value: none
 | 
			
		||||
;prefix = /path/to/pools/$pool
 | 
			
		||||
 | 
			
		||||
; Unix user/group of processes
 | 
			
		||||
; Note: The user is mandatory. If the group is not set, the default user's group
 | 
			
		||||
;       will be used.
 | 
			
		||||
user = www
 | 
			
		||||
group = www
 | 
			
		||||
 | 
			
		||||
; The address on which to accept FastCGI requests.
 | 
			
		||||
; Valid syntaxes are:
 | 
			
		||||
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
 | 
			
		||||
;                            a specific port;
 | 
			
		||||
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
 | 
			
		||||
;                            a specific port;
 | 
			
		||||
;   'port'                 - to listen on a TCP socket to all addresses
 | 
			
		||||
;                            (IPv6 and IPv4-mapped) on a specific port;
 | 
			
		||||
;   '/path/to/unix/socket' - to listen on a unix socket.
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
listen = 127.0.0.1:9000
 | 
			
		||||
 | 
			
		||||
; Set listen(2) backlog.
 | 
			
		||||
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
 | 
			
		||||
;listen.backlog = 511
 | 
			
		||||
 | 
			
		||||
; Set permissions for unix socket, if one is used. In Linux, read/write
 | 
			
		||||
; permissions must be set in order to allow connections from a web server. Many
 | 
			
		||||
; BSD-derived systems allow connections regardless of permissions.
 | 
			
		||||
; Default Values: user and group are set as the running user
 | 
			
		||||
;                 mode is set to 0660
 | 
			
		||||
;listen.owner = www
 | 
			
		||||
;listen.group = www
 | 
			
		||||
;listen.mode = 0660
 | 
			
		||||
; When POSIX Access Control Lists are supported you can set them using
 | 
			
		||||
; these options, value is a comma separated list of user/group names.
 | 
			
		||||
; When set, listen.owner and listen.group are ignored
 | 
			
		||||
;listen.acl_users =
 | 
			
		||||
;listen.acl_groups =
 | 
			
		||||
 | 
			
		||||
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
 | 
			
		||||
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
 | 
			
		||||
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
 | 
			
		||||
; must be separated by a comma. If this value is left blank, connections will be
 | 
			
		||||
; accepted from any ip address.
 | 
			
		||||
; Default Value: any
 | 
			
		||||
;listen.allowed_clients = 127.0.0.1
 | 
			
		||||
 | 
			
		||||
; Specify the nice(2) priority to apply to the pool processes (only if set)
 | 
			
		||||
; The value can vary from -19 (highest priority) to 20 (lower priority)
 | 
			
		||||
; Note: - It will only work if the FPM master process is launched as root
 | 
			
		||||
;       - The pool processes will inherit the master process priority
 | 
			
		||||
;         unless it specified otherwise
 | 
			
		||||
; Default Value: no set
 | 
			
		||||
; process.priority = -19
 | 
			
		||||
 | 
			
		||||
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
 | 
			
		||||
; or group is differrent than the master process user. It allows to create process
 | 
			
		||||
; core dump and ptrace the process for the pool user.
 | 
			
		||||
; Default Value: no
 | 
			
		||||
; process.dumpable = yes
 | 
			
		||||
 | 
			
		||||
; Choose how the process manager will control the number of child processes.
 | 
			
		||||
; Possible Values:
 | 
			
		||||
;   static  - a fixed number (pm.max_children) of child processes;
 | 
			
		||||
;   dynamic - the number of child processes are set dynamically based on the
 | 
			
		||||
;             following directives. With this process management, there will be
 | 
			
		||||
;             always at least 1 children.
 | 
			
		||||
;             pm.max_children      - the maximum number of children that can
 | 
			
		||||
;                                    be alive at the same time.
 | 
			
		||||
;             pm.start_servers     - the number of children created on startup.
 | 
			
		||||
;             pm.min_spare_servers - the minimum number of children in 'idle'
 | 
			
		||||
;                                    state (waiting to process). If the number
 | 
			
		||||
;                                    of 'idle' processes is less than this
 | 
			
		||||
;                                    number then some children will be created.
 | 
			
		||||
;             pm.max_spare_servers - the maximum number of children in 'idle'
 | 
			
		||||
;                                    state (waiting to process). If the number
 | 
			
		||||
;                                    of 'idle' processes is greater than this
 | 
			
		||||
;                                    number then some children will be killed.
 | 
			
		||||
;  ondemand - no children are created at startup. Children will be forked when
 | 
			
		||||
;             new requests will connect. The following parameter are used:
 | 
			
		||||
;             pm.max_children           - the maximum number of children that
 | 
			
		||||
;                                         can be alive at the same time.
 | 
			
		||||
;             pm.process_idle_timeout   - The number of seconds after which
 | 
			
		||||
;                                         an idle process will be killed.
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
pm = dynamic
 | 
			
		||||
 | 
			
		||||
; The number of child processes to be created when pm is set to 'static' and the
 | 
			
		||||
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
 | 
			
		||||
; This value sets the limit on the number of simultaneous requests that will be
 | 
			
		||||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
 | 
			
		||||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
 | 
			
		||||
; CGI. The below defaults are based on a server without much resources. Don't
 | 
			
		||||
; forget to tweak pm.* to fit your needs.
 | 
			
		||||
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 | 
			
		||||
; Note: This value is mandatory.
 | 
			
		||||
pm.max_children = 10
 | 
			
		||||
 | 
			
		||||
; The number of child processes created on startup.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
 | 
			
		||||
pm.start_servers = 2
 | 
			
		||||
 | 
			
		||||
; The desired minimum number of idle server processes.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Note: Mandatory when pm is set to 'dynamic'
 | 
			
		||||
pm.min_spare_servers = 1
 | 
			
		||||
 | 
			
		||||
; The desired maximum number of idle server processes.
 | 
			
		||||
; Note: Used only when pm is set to 'dynamic'
 | 
			
		||||
; Note: Mandatory when pm is set to 'dynamic'
 | 
			
		||||
pm.max_spare_servers = 3
 | 
			
		||||
 | 
			
		||||
; The number of seconds after which an idle process will be killed.
 | 
			
		||||
; Note: Used only when pm is set to 'ondemand'
 | 
			
		||||
; Default Value: 10s
 | 
			
		||||
;pm.process_idle_timeout = 10s;
 | 
			
		||||
 | 
			
		||||
; The number of requests each child process should execute before respawning.
 | 
			
		||||
; This can be useful to work around memory leaks in 3rd party libraries. For
 | 
			
		||||
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;pm.max_requests = 500
 | 
			
		||||
 | 
			
		||||
; The URI to view the FPM status page. If this value is not set, no URI will be
 | 
			
		||||
; recognized as a status page. It shows the following informations:
 | 
			
		||||
;   pool                 - the name of the pool;
 | 
			
		||||
;   process manager      - static, dynamic or ondemand;
 | 
			
		||||
;   start time           - the date and time FPM has started;
 | 
			
		||||
;   start since          - number of seconds since FPM has started;
 | 
			
		||||
;   accepted conn        - the number of request accepted by the pool;
 | 
			
		||||
;   listen queue         - the number of request in the queue of pending
 | 
			
		||||
;                          connections (see backlog in listen(2));
 | 
			
		||||
;   max listen queue     - the maximum number of requests in the queue
 | 
			
		||||
;                          of pending connections since FPM has started;
 | 
			
		||||
;   listen queue len     - the size of the socket queue of pending connections;
 | 
			
		||||
;   idle processes       - the number of idle processes;
 | 
			
		||||
;   active processes     - the number of active processes;
 | 
			
		||||
;   total processes      - the number of idle + active processes;
 | 
			
		||||
;   max active processes - the maximum number of active processes since FPM
 | 
			
		||||
;                          has started;
 | 
			
		||||
;   max children reached - number of times, the process limit has been reached,
 | 
			
		||||
;                          when pm tries to start more children (works only for
 | 
			
		||||
;                          pm 'dynamic' and 'ondemand');
 | 
			
		||||
; Value are updated in real time.
 | 
			
		||||
; Example output:
 | 
			
		||||
;   pool:                 www
 | 
			
		||||
;   process manager:      static
 | 
			
		||||
;   start time:           01/Jul/2011:17:53:49 +0200
 | 
			
		||||
;   start since:          62636
 | 
			
		||||
;   accepted conn:        190460
 | 
			
		||||
;   listen queue:         0
 | 
			
		||||
;   max listen queue:     1
 | 
			
		||||
;   listen queue len:     42
 | 
			
		||||
;   idle processes:       4
 | 
			
		||||
;   active processes:     11
 | 
			
		||||
;   total processes:      15
 | 
			
		||||
;   max active processes: 12
 | 
			
		||||
;   max children reached: 0
 | 
			
		||||
;
 | 
			
		||||
; By default the status page output is formatted as text/plain. Passing either
 | 
			
		||||
; 'html', 'xml' or 'json' in the query string will return the corresponding
 | 
			
		||||
; output syntax. Example:
 | 
			
		||||
;   http://www.foo.bar/status
 | 
			
		||||
;   http://www.foo.bar/status?json
 | 
			
		||||
;   http://www.foo.bar/status?html
 | 
			
		||||
;   http://www.foo.bar/status?xml
 | 
			
		||||
;
 | 
			
		||||
; By default the status page only outputs short status. Passing 'full' in the
 | 
			
		||||
; query string will also return status for each pool process.
 | 
			
		||||
; Example:
 | 
			
		||||
;   http://www.foo.bar/status?full
 | 
			
		||||
;   http://www.foo.bar/status?json&full
 | 
			
		||||
;   http://www.foo.bar/status?html&full
 | 
			
		||||
;   http://www.foo.bar/status?xml&full
 | 
			
		||||
; The Full status returns for each process:
 | 
			
		||||
;   pid                  - the PID of the process;
 | 
			
		||||
;   state                - the state of the process (Idle, Running, ...);
 | 
			
		||||
;   start time           - the date and time the process has started;
 | 
			
		||||
;   start since          - the number of seconds since the process has started;
 | 
			
		||||
;   requests             - the number of requests the process has served;
 | 
			
		||||
;   request duration     - the duration in µs of the requests;
 | 
			
		||||
;   request method       - the request method (GET, POST, ...);
 | 
			
		||||
;   request URI          - the request URI with the query string;
 | 
			
		||||
;   content length       - the content length of the request (only with POST);
 | 
			
		||||
;   user                 - the user (PHP_AUTH_USER) (or '-' if not set);
 | 
			
		||||
;   script               - the main script called (or '-' if not set);
 | 
			
		||||
;   last request cpu     - the %cpu the last request consumed
 | 
			
		||||
;                          it's always 0 if the process is not in Idle state
 | 
			
		||||
;                          because CPU calculation is done when the request
 | 
			
		||||
;                          processing has terminated;
 | 
			
		||||
;   last request memory  - the max amount of memory the last request consumed
 | 
			
		||||
;                          it's always 0 if the process is not in Idle state
 | 
			
		||||
;                          because memory calculation is done when the request
 | 
			
		||||
;                          processing has terminated;
 | 
			
		||||
; If the process is in Idle state, then informations are related to the
 | 
			
		||||
; last request the process has served. Otherwise informations are related to
 | 
			
		||||
; the current request being served.
 | 
			
		||||
; Example output:
 | 
			
		||||
;   ************************
 | 
			
		||||
;   pid:                  31330
 | 
			
		||||
;   state:                Running
 | 
			
		||||
;   start time:           01/Jul/2011:17:53:49 +0200
 | 
			
		||||
;   start since:          63087
 | 
			
		||||
;   requests:             12808
 | 
			
		||||
;   request duration:     1250261
 | 
			
		||||
;   request method:       GET
 | 
			
		||||
;   request URI:          /test_mem.php?N=10000
 | 
			
		||||
;   content length:       0
 | 
			
		||||
;   user:                 -
 | 
			
		||||
;   script:               /home/fat/web/docs/php/test_mem.php
 | 
			
		||||
;   last request cpu:     0.00
 | 
			
		||||
;   last request memory:  0
 | 
			
		||||
;
 | 
			
		||||
; Note: There is a real-time FPM status monitoring sample web page available
 | 
			
		||||
;       It's available in: /usr/local/share/php/fpm/status.html
 | 
			
		||||
;
 | 
			
		||||
; Note: The value must start with a leading slash (/). The value can be
 | 
			
		||||
;       anything, but it may not be a good idea to use the .php extension or it
 | 
			
		||||
;       may conflict with a real PHP file.
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;pm.status_path = /status
 | 
			
		||||
 | 
			
		||||
; The ping URI to call the monitoring page of FPM. If this value is not set, no
 | 
			
		||||
; URI will be recognized as a ping page. This could be used to test from outside
 | 
			
		||||
; that FPM is alive and responding, or to
 | 
			
		||||
; - create a graph of FPM availability (rrd or such);
 | 
			
		||||
; - remove a server from a group if it is not responding (load balancing);
 | 
			
		||||
; - trigger alerts for the operating team (24/7).
 | 
			
		||||
; Note: The value must start with a leading slash (/). The value can be
 | 
			
		||||
;       anything, but it may not be a good idea to use the .php extension or it
 | 
			
		||||
;       may conflict with a real PHP file.
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;ping.path = /ping
 | 
			
		||||
 | 
			
		||||
; This directive may be used to customize the response of a ping request. The
 | 
			
		||||
; response is formatted as text/plain with a 200 response code.
 | 
			
		||||
; Default Value: pong
 | 
			
		||||
;ping.response = pong
 | 
			
		||||
 | 
			
		||||
; The access log file
 | 
			
		||||
; Default: not set
 | 
			
		||||
;access.log = log/$pool.access.log
 | 
			
		||||
 | 
			
		||||
; The access log format.
 | 
			
		||||
; The following syntax is allowed
 | 
			
		||||
;  %%: the '%' character
 | 
			
		||||
;  %C: %CPU used by the request
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{user}C for user CPU only
 | 
			
		||||
;      - %{system}C for system CPU only
 | 
			
		||||
;      - %{total}C  for user + system CPU (default)
 | 
			
		||||
;  %d: time taken to serve the request
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{seconds}d (default)
 | 
			
		||||
;      - %{miliseconds}d
 | 
			
		||||
;      - %{mili}d
 | 
			
		||||
;      - %{microseconds}d
 | 
			
		||||
;      - %{micro}d
 | 
			
		||||
;  %e: an environment variable (same as $_ENV or $_SERVER)
 | 
			
		||||
;      it must be associated with embraces to specify the name of the env
 | 
			
		||||
;      variable. Some exemples:
 | 
			
		||||
;      - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
 | 
			
		||||
;      - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
 | 
			
		||||
;  %f: script filename
 | 
			
		||||
;  %l: content-length of the request (for POST request only)
 | 
			
		||||
;  %m: request method
 | 
			
		||||
;  %M: peak of memory allocated by PHP
 | 
			
		||||
;      it can accept the following format:
 | 
			
		||||
;      - %{bytes}M (default)
 | 
			
		||||
;      - %{kilobytes}M
 | 
			
		||||
;      - %{kilo}M
 | 
			
		||||
;      - %{megabytes}M
 | 
			
		||||
;      - %{mega}M
 | 
			
		||||
;  %n: pool name
 | 
			
		||||
;  %o: output header
 | 
			
		||||
;      it must be associated with embraces to specify the name of the header:
 | 
			
		||||
;      - %{Content-Type}o
 | 
			
		||||
;      - %{X-Powered-By}o
 | 
			
		||||
;      - %{Transfert-Encoding}o
 | 
			
		||||
;      - ....
 | 
			
		||||
;  %p: PID of the child that serviced the request
 | 
			
		||||
;  %P: PID of the parent of the child that serviced the request
 | 
			
		||||
;  %q: the query string
 | 
			
		||||
;  %Q: the '?' character if query string exists
 | 
			
		||||
;  %r: the request URI (without the query string, see %q and %Q)
 | 
			
		||||
;  %R: remote IP address
 | 
			
		||||
;  %s: status (response code)
 | 
			
		||||
;  %t: server time the request was received
 | 
			
		||||
;      it can accept a strftime(3) format:
 | 
			
		||||
;      %d/%b/%Y:%H:%M:%S %z (default)
 | 
			
		||||
;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
 | 
			
		||||
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
 | 
			
		||||
;  %T: time the log has been written (the request has finished)
 | 
			
		||||
;      it can accept a strftime(3) format:
 | 
			
		||||
;      %d/%b/%Y:%H:%M:%S %z (default)
 | 
			
		||||
;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
 | 
			
		||||
;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
 | 
			
		||||
;  %u: remote user
 | 
			
		||||
;
 | 
			
		||||
; Default: "%R - %u %t \"%m %r\" %s"
 | 
			
		||||
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
 | 
			
		||||
 | 
			
		||||
; The log file for slow requests
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
; Note: slowlog is mandatory if request_slowlog_timeout is set
 | 
			
		||||
;slowlog = log/$pool.log.slow
 | 
			
		||||
 | 
			
		||||
; The timeout for serving a single request after which a PHP backtrace will be
 | 
			
		||||
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
 | 
			
		||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;request_slowlog_timeout = 0
 | 
			
		||||
 | 
			
		||||
; Depth of slow log stack trace.
 | 
			
		||||
; Default Value: 20
 | 
			
		||||
;request_slowlog_trace_depth = 20
 | 
			
		||||
 | 
			
		||||
; The timeout for serving a single request after which the worker process will
 | 
			
		||||
; be killed. This option should be used when the 'max_execution_time' ini option
 | 
			
		||||
; does not stop script execution for some reason. A value of '0' means 'off'.
 | 
			
		||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
 | 
			
		||||
; Default Value: 0
 | 
			
		||||
;request_terminate_timeout = 0
 | 
			
		||||
 | 
			
		||||
; Set open file descriptor rlimit.
 | 
			
		||||
; Default Value: system defined value
 | 
			
		||||
;rlimit_files = 1024
 | 
			
		||||
 | 
			
		||||
; Set max core size rlimit.
 | 
			
		||||
; Possible Values: 'unlimited' or an integer greater or equal to 0
 | 
			
		||||
; Default Value: system defined value
 | 
			
		||||
;rlimit_core = 0
 | 
			
		||||
 | 
			
		||||
; Chroot to this directory at the start. This value must be defined as an
 | 
			
		||||
; absolute path. When this value is not set, chroot is not used.
 | 
			
		||||
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
 | 
			
		||||
; of its subdirectories. If the pool prefix is not set, the global prefix
 | 
			
		||||
; will be used instead.
 | 
			
		||||
; Note: chrooting is a great security feature and should be used whenever
 | 
			
		||||
;       possible. However, all PHP paths will be relative to the chroot
 | 
			
		||||
;       (error_log, sessions.save_path, ...).
 | 
			
		||||
; Default Value: not set
 | 
			
		||||
;chroot =
 | 
			
		||||
 | 
			
		||||
; Chdir to this directory at the start.
 | 
			
		||||
; Note: relative path can be used.
 | 
			
		||||
; Default Value: current directory or / when chroot
 | 
			
		||||
;chdir = /var/www
 | 
			
		||||
 | 
			
		||||
; Redirect worker stdout and stderr into main error log. If not set, stdout and
 | 
			
		||||
; stderr will be redirected to /dev/null according to FastCGI specs.
 | 
			
		||||
; Note: on highloaded environement, this can cause some delay in the page
 | 
			
		||||
; process time (several ms).
 | 
			
		||||
; Default Value: no
 | 
			
		||||
;catch_workers_output = yes
 | 
			
		||||
 | 
			
		||||
; Clear environment in FPM workers
 | 
			
		||||
; Prevents arbitrary environment variables from reaching FPM worker processes
 | 
			
		||||
; by clearing the environment in workers before env vars specified in this
 | 
			
		||||
; pool configuration are added.
 | 
			
		||||
; Setting to "no" will make all environment variables available to PHP code
 | 
			
		||||
; via getenv(), $_ENV and $_SERVER.
 | 
			
		||||
; Default Value: yes
 | 
			
		||||
;clear_env = no
 | 
			
		||||
 | 
			
		||||
; Limits the extensions of the main script FPM will allow to parse. This can
 | 
			
		||||
; prevent configuration mistakes on the web server side. You should only limit
 | 
			
		||||
; FPM to .php extensions to prevent malicious users to use other extensions to
 | 
			
		||||
; execute php code.
 | 
			
		||||
; Note: set an empty value to allow all extensions.
 | 
			
		||||
; Default Value: .php
 | 
			
		||||
;security.limit_extensions = .php .php3 .php4 .php5 .php7
 | 
			
		||||
 | 
			
		||||
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
 | 
			
		||||
; the current environment.
 | 
			
		||||
; Default Value: clean env
 | 
			
		||||
env[HOSTNAME] = $HOSTNAME
 | 
			
		||||
env[PATH] = /usr/local/bin:/usr/bin:/bin
 | 
			
		||||
env[TMP] = /tmp
 | 
			
		||||
env[TMPDIR] = /tmp
 | 
			
		||||
env[TEMP] = /tmp
 | 
			
		||||
 | 
			
		||||
; Additional php.ini defines, specific to this pool of workers. These settings
 | 
			
		||||
; overwrite the values previously defined in the php.ini. The directives are the
 | 
			
		||||
; same as the PHP SAPI:
 | 
			
		||||
;   php_value/php_flag             - you can set classic ini defines which can
 | 
			
		||||
;                                    be overwritten from PHP call 'ini_set'.
 | 
			
		||||
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
 | 
			
		||||
;                                     PHP call 'ini_set'
 | 
			
		||||
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
 | 
			
		||||
 | 
			
		||||
; Defining 'extension' will load the corresponding shared extension from
 | 
			
		||||
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
 | 
			
		||||
; overwrite previously defined php.ini values, but will append the new value
 | 
			
		||||
; instead.
 | 
			
		||||
 | 
			
		||||
; Note: path INI options can be relative and will be expanded with the prefix
 | 
			
		||||
; (pool, global or /usr/local)
 | 
			
		||||
 | 
			
		||||
; Default Value: nothing is defined by default except the values in php.ini and
 | 
			
		||||
;                specified at startup with the -d argument
 | 
			
		||||
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
 | 
			
		||||
;php_flag[display_errors] = off
 | 
			
		||||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
 | 
			
		||||
;php_admin_flag[log_errors] = on
 | 
			
		||||
;php_admin_value[memory_limit] = 32M
 | 
			
		||||
							
								
								
									
										11
									
								
								jails/config/ldap-mgr/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								jails/config/ldap-mgr/020_mod_ssl.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
Listen 443
 | 
			
		||||
SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
 | 
			
		||||
SSLCipherSuite          ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
 | 
			
		||||
SSLHonorCipherOrder	on
 | 
			
		||||
SSLCompression		off
 | 
			
		||||
# SSLUseStapling	on
 | 
			
		||||
SSLSessionTickets	off
 | 
			
		||||
SSLOptions		+StrictRequire
 | 
			
		||||
SSLPassPhraseDialog	builtin
 | 
			
		||||
SSLSessionCacheTimeout	300
 | 
			
		||||
SSLSessionCache         shmcb:/usr/local/etc/apache24/ssl_scache(512000)
 | 
			
		||||
							
								
								
									
										576
									
								
								jails/config/ldap-mgr/config.php.phpldapadmin.github
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										576
									
								
								jails/config/ldap-mgr/config.php.phpldapadmin.github
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,576 @@
 | 
			
		||||
<?php
 | 
			
		||||
/** NOTE **
 | 
			
		||||
 ** Make sure that <?php is the FIRST line of this file!
 | 
			
		||||
 ** IE: There should NOT be any blank lines or spaces BEFORE <?php
 | 
			
		||||
 **/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * The phpLDAPadmin config file
 | 
			
		||||
 * See: http://phpldapadmin.sourceforge.net/wiki/index.php/Config.php
 | 
			
		||||
 *
 | 
			
		||||
 * This is where you can customise some of the phpLDAPadmin defaults
 | 
			
		||||
 * that are defined in config_default.php.
 | 
			
		||||
 *
 | 
			
		||||
 * To override a default, use the $config->custom variable to do so.
 | 
			
		||||
 * For example, the default for defining the language in config_default.php
 | 
			
		||||
 *
 | 
			
		||||
 * $this->default->appearance['language'] = array(
 | 
			
		||||
 *  'desc'=>'Language',
 | 
			
		||||
 *  'default'=>'auto');
 | 
			
		||||
 *
 | 
			
		||||
 * to override this, use $config->custom->appearance['language'] = 'en_EN';
 | 
			
		||||
 *
 | 
			
		||||
 * This file is also used to configure your LDAP server connections.
 | 
			
		||||
 *
 | 
			
		||||
 * You must specify at least one LDAP server there. You may add
 | 
			
		||||
 * as many as you like. You can also specify your language, and
 | 
			
		||||
 * many other options.
 | 
			
		||||
 *
 | 
			
		||||
 * NOTE: Commented out values in this file prefixed by //, represent the
 | 
			
		||||
 * defaults that have been defined in config_default.php.
 | 
			
		||||
 * Commented out values prefixed by #, dont reflect their default value, you can
 | 
			
		||||
 * check config_default.php if you want to see what the default is.
 | 
			
		||||
 *
 | 
			
		||||
 * DONT change config_default.php, you changes will be lost by the next release
 | 
			
		||||
 * of PLA. Instead change this file - as it will NOT be replaced by a new
 | 
			
		||||
 * version of phpLDAPadmin.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Useful important configuration overrides  *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* If you are asked to put PLA in debug mode, this is how you do it: */
 | 
			
		||||
#  $config->custom->debug['level'] = 255;
 | 
			
		||||
#  $config->custom->debug['syslog'] = true;
 | 
			
		||||
#  $config->custom->debug['file'] = '/tmp/pla_debug.log';
 | 
			
		||||
 | 
			
		||||
/* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
 | 
			
		||||
   to a big random string. */
 | 
			
		||||
// $config->custom->session['blowfish'] = null;
 | 
			
		||||
 | 
			
		||||
/* If your auth_type is http, you can override your HTTP Authentication Realm. */
 | 
			
		||||
// $config->custom->session['http_realm'] = sprintf('%s %s',app_name(),'login');
 | 
			
		||||
 | 
			
		||||
/* The language setting. If you set this to 'auto', phpLDAPadmin will attempt
 | 
			
		||||
   to determine your language automatically.
 | 
			
		||||
   If PLA doesnt show (all) strings in your language, then you can do some
 | 
			
		||||
   translation at http://translations.launchpad.net/phpldapadmin and download
 | 
			
		||||
   the translation files, replacing those provided with PLA.
 | 
			
		||||
   (We'll pick up the translations before making the next release too!) */
 | 
			
		||||
// $config->custom->appearance['language'] = 'auto';
 | 
			
		||||
 | 
			
		||||
/* The temporary storage directory where we will put jpegPhoto data
 | 
			
		||||
   This directory must be readable and writable by your web server. */
 | 
			
		||||
// $config->custom->jpeg['tmpdir'] = '/tmp';     // Example for Unix systems
 | 
			
		||||
#  $config->custom->jpeg['tmpdir'] = 'c:\\temp'; // Example for Windows systems
 | 
			
		||||
 | 
			
		||||
/* Set this to (bool)true if you do NOT want a random salt used when
 | 
			
		||||
   calling crypt().  Instead, use the first two letters of the user's
 | 
			
		||||
   password.  This is insecure but unfortunately needed for some older
 | 
			
		||||
   environments. */
 | 
			
		||||
#  $config->custom->password['no_random_crypt_salt'] = true;
 | 
			
		||||
 | 
			
		||||
/* PHP script timeout control. If php runs longer than this many seconds then
 | 
			
		||||
   PHP will stop with an Maximum Execution time error. Increase this value from
 | 
			
		||||
   the default if queries to your LDAP server are slow. The default is either
 | 
			
		||||
   30 seconds or the setting of max_exection_time if this is null. */
 | 
			
		||||
// $config->custom->session['timelimit'] = 30;
 | 
			
		||||
 | 
			
		||||
/* Our local timezone
 | 
			
		||||
   This is to make sure that when we ask the system for the current time, we
 | 
			
		||||
   get the right local time. If this is not set, all time() calculations will
 | 
			
		||||
   assume UTC if you have not set PHP date.timezone. */
 | 
			
		||||
// $config->custom->appearance['timezone'] = null;
 | 
			
		||||
#  $config->custom->appearance['timezone'] = 'Australia/Melbourne';
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Commands                                  *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* Command availability ; if you don't authorize a command the command
 | 
			
		||||
   links will not be shown and the command action will not be permitted.
 | 
			
		||||
   For better security, set also ACL in your ldap directory. */
 | 
			
		||||
/*
 | 
			
		||||
$config->custom->commands['cmd'] = array(
 | 
			
		||||
	'entry_internal_attributes_show' => true,
 | 
			
		||||
	'entry_refresh' => true,
 | 
			
		||||
	'oslinks' => true,
 | 
			
		||||
	'switch_template' => true
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
$config->custom->commands['script'] = array(
 | 
			
		||||
	'add_attr_form' => true,
 | 
			
		||||
	'add_oclass_form' => true,
 | 
			
		||||
	'add_value_form' => true,
 | 
			
		||||
	'collapse' => true,
 | 
			
		||||
	'compare' => true,
 | 
			
		||||
	'compare_form' => true,
 | 
			
		||||
	'copy' => true,
 | 
			
		||||
	'copy_form' => true,
 | 
			
		||||
	'create' => true,
 | 
			
		||||
	'create_confirm' => true,
 | 
			
		||||
	'delete' => true,
 | 
			
		||||
	'delete_attr' => true,
 | 
			
		||||
	'delete_form' => true,
 | 
			
		||||
	'draw_tree_node' => true,
 | 
			
		||||
	'expand' => true,
 | 
			
		||||
	'export' => true,
 | 
			
		||||
	'export_form' => true,
 | 
			
		||||
	'import' => true,
 | 
			
		||||
	'import_form' => true,
 | 
			
		||||
	'login' => true,
 | 
			
		||||
	'logout' => true,
 | 
			
		||||
	'login_form' => true,
 | 
			
		||||
	'mass_delete' => true,
 | 
			
		||||
	'mass_edit' => true,
 | 
			
		||||
	'mass_update' => true,
 | 
			
		||||
	'modify_member_form' => true,
 | 
			
		||||
	'monitor' => true,
 | 
			
		||||
	'purge_cache' => true,
 | 
			
		||||
	'query_engine' => true,
 | 
			
		||||
	'rename' => true,
 | 
			
		||||
	'rename_form' => true,
 | 
			
		||||
	'rdelete' => true,
 | 
			
		||||
	'refresh' => true,
 | 
			
		||||
	'schema' => true,
 | 
			
		||||
	'server_info' => true,
 | 
			
		||||
	'show_cache' => true,
 | 
			
		||||
	'template_engine' => true,
 | 
			
		||||
	'update_confirm' => true,
 | 
			
		||||
	'update' => true
 | 
			
		||||
);
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Appearance                                *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* If you want to choose the appearance of the tree, specify a class name which
 | 
			
		||||
   inherits from the Tree class. */
 | 
			
		||||
// $config->custom->appearance['tree'] = 'AJAXTree';
 | 
			
		||||
#  $config->custom->appearance['tree'] = 'HTMLTree';
 | 
			
		||||
 | 
			
		||||
/* Just show your custom templates. */
 | 
			
		||||
// $config->custom->appearance['custom_templates_only'] = false;
 | 
			
		||||
 | 
			
		||||
/* Disable the default template. */
 | 
			
		||||
// $config->custom->appearance['disable_default_template'] = false;
 | 
			
		||||
 | 
			
		||||
/* Hide the warnings for invalid objectClasses/attributes in templates. */
 | 
			
		||||
// $config->custom->appearance['hide_template_warning'] = false;
 | 
			
		||||
 | 
			
		||||
/* Set to true if you would like to hide header and footer parts. */
 | 
			
		||||
// $config->custom->appearance['minimalMode'] = false;
 | 
			
		||||
 | 
			
		||||
/* Configure what objects are shown in left hand tree */
 | 
			
		||||
// $config->custom->appearance['tree_filter'] = '(objectclass=*)';
 | 
			
		||||
 | 
			
		||||
/* The height and width of the tree. If these values are not set, then
 | 
			
		||||
   no tree scroll bars are provided. */
 | 
			
		||||
// $config->custom->appearance['tree_height'] = null;
 | 
			
		||||
#  $config->custom->appearance['tree_height'] = 600;
 | 
			
		||||
// $config->custom->appearance['tree_width'] = null;
 | 
			
		||||
#  $config->custom->appearance['tree_width'] = 250;
 | 
			
		||||
 | 
			
		||||
/* Confirm create and update operations, allowing you to review the changes
 | 
			
		||||
   and optionally skip attributes during the create/update operation. */
 | 
			
		||||
// $config->custom->confirm['create'] = true;
 | 
			
		||||
// $config->custom->confirm['update'] = true;
 | 
			
		||||
 | 
			
		||||
/* Confirm copy operations, and treat them like create operations. This allows
 | 
			
		||||
   you to edit the attributes (thus changing any that might conflict with
 | 
			
		||||
   uniqueness) before creating the new entry. */
 | 
			
		||||
// $config->custom->confirm['copy'] = true;
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * User-friendly attribute translation       *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* Use this array to map attribute names to user friendly names. For example, if
 | 
			
		||||
   you don't want to see "facsimileTelephoneNumber" but rather "Fax". */
 | 
			
		||||
// $config->custom->appearance['friendly_attrs'] = array();
 | 
			
		||||
$config->custom->appearance['friendly_attrs'] = array(
 | 
			
		||||
	'facsimileTelephoneNumber' => 'Fax',
 | 
			
		||||
	'gid'                      => 'Group',
 | 
			
		||||
	'mail'                     => 'Email',
 | 
			
		||||
	'telephoneNumber'          => 'Telephone',
 | 
			
		||||
	'uid'                      => 'User Name',
 | 
			
		||||
	'userPassword'             => 'Password'
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Hidden attributes                         *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* You may want to hide certain attributes from being edited. If you want to
 | 
			
		||||
   hide attributes from the user, you should use your LDAP servers ACLs.
 | 
			
		||||
   NOTE: The user must be able to read the hide_attrs_exempt entry to be
 | 
			
		||||
   excluded. */
 | 
			
		||||
// $config->custom->appearance['hide_attrs'] = array();
 | 
			
		||||
#  $config->custom->appearance['hide_attrs'] = array('objectClass');
 | 
			
		||||
 | 
			
		||||
/* Members of this list will be exempt from the hidden attributes. */
 | 
			
		||||
// $config->custom->appearance['hide_attrs_exempt'] = null;
 | 
			
		||||
#  $config->custom->appearance['hide_attrs_exempt'] = 'cn=PLA UnHide,ou=Groups,c=AU';
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Read-only attributes                      *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* You may want to phpLDAPadmin to display certain attributes as read only,
 | 
			
		||||
   meaning that users will not be presented a form for modifying those
 | 
			
		||||
   attributes, and they will not be allowed to be modified on the "back-end"
 | 
			
		||||
   either. You may configure this list here:
 | 
			
		||||
   NOTE: The user must be able to read the readonly_attrs_exempt entry to be
 | 
			
		||||
   excluded. */
 | 
			
		||||
// $config->custom->appearance['readonly_attrs'] = array();
 | 
			
		||||
 | 
			
		||||
/* Members of this list will be exempt from the readonly attributes. */
 | 
			
		||||
// $config->custom->appearance['readonly_attrs_exempt'] = null;
 | 
			
		||||
#  $config->custom->appearance['readonly_attrs_exempt'] = 'cn=PLA ReadWrite,ou=Groups,c=AU';
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Group attributes                          *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* Add "modify group members" link to the attribute. */
 | 
			
		||||
// $config->custom->modify_member['groupattr'] = array('member','uniqueMember','memberUid');
 | 
			
		||||
 | 
			
		||||
/* Configure filter for member search. This only applies to "modify group members" feature */
 | 
			
		||||
// $config->custom->modify_member['filter'] = '(objectclass=Person)';
 | 
			
		||||
 | 
			
		||||
/* Attribute that is added to the group member attribute. */
 | 
			
		||||
// $config->custom->modify_member['attr'] = 'dn';
 | 
			
		||||
 | 
			
		||||
/* For Posix attributes */
 | 
			
		||||
// $config->custom->modify_member['posixattr'] = 'uid';
 | 
			
		||||
// $config->custom->modify_member['posixfilter'] = '(uid=*)';
 | 
			
		||||
// $config->custom->modify_member['posixgroupattr'] = 'memberUid';
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Support for attrs display order           *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* Use this array if you want to have your attributes displayed in a specific
 | 
			
		||||
   order. You can use default attribute names or their fridenly names.
 | 
			
		||||
   For example, "sn" will be displayed right after "givenName". All the other
 | 
			
		||||
   attributes that are not specified in this array will be displayed after in
 | 
			
		||||
   alphabetical order. */
 | 
			
		||||
// $config->custom->appearance['attr_display_order'] = array();
 | 
			
		||||
#  $config->custom->appearance['attr_display_order'] = array(
 | 
			
		||||
#   'givenName',
 | 
			
		||||
#   'sn',
 | 
			
		||||
#   'cn',
 | 
			
		||||
#   'displayName',
 | 
			
		||||
#   'uid',
 | 
			
		||||
#   'uidNumber',
 | 
			
		||||
#   'gidNumber',
 | 
			
		||||
#   'homeDirectory',
 | 
			
		||||
#   'mail',
 | 
			
		||||
#   'userPassword'
 | 
			
		||||
#  );
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Define your LDAP servers in this section  *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
$servers = new Datastore();
 | 
			
		||||
 | 
			
		||||
/* $servers->NewServer('ldap_pla') must be called before each new LDAP server
 | 
			
		||||
   declaration. */
 | 
			
		||||
$servers->newServer('ldap_pla');
 | 
			
		||||
 | 
			
		||||
/* A convenient name that will appear in the tree viewer and throughout
 | 
			
		||||
   phpLDAPadmin to identify this LDAP server to users. */
 | 
			
		||||
$servers->setValue('server','name','infra LDAP Server');
 | 
			
		||||
 | 
			
		||||
/* Examples:
 | 
			
		||||
   'ldap.example.com',
 | 
			
		||||
   'ldaps://ldap.example.com/',
 | 
			
		||||
   'ldapi://%2fusr%local%2fvar%2frun%2fldapi'
 | 
			
		||||
           (Unix socket at /usr/local/var/run/ldap) */
 | 
			
		||||
$servers->setValue('server','host','ldaps://ldap.ahlawat.com');
 | 
			
		||||
 | 
			
		||||
/* The port your LDAP server listens on (no quotes). 389 is standard. */
 | 
			
		||||
$servers->setValue('server','port',636);
 | 
			
		||||
 | 
			
		||||
/* Array of base DNs of your LDAP server. Leave this blank to have phpLDAPadmin
 | 
			
		||||
   auto-detect it for you. */
 | 
			
		||||
$servers->setValue('server','base',array('dc=infra'));
 | 
			
		||||
 | 
			
		||||
/* Five options for auth_type:
 | 
			
		||||
   1. 'cookie': you will login via a web form, and a client-side cookie will
 | 
			
		||||
      store your login dn and password.
 | 
			
		||||
   2. 'session': same as cookie but your login dn and password are stored on the
 | 
			
		||||
      web server in a persistent session variable.
 | 
			
		||||
   3. 'http': same as session but your login dn and password are retrieved via
 | 
			
		||||
      HTTP authentication.
 | 
			
		||||
   4. 'config': specify your login dn and password here in this config file. No
 | 
			
		||||
      login will be required to use phpLDAPadmin for this server.
 | 
			
		||||
   5. 'sasl': login will be taken from the webserver's kerberos authentication.
 | 
			
		||||
      Currently only GSSAPI has been tested (using mod_auth_kerb).
 | 
			
		||||
 | 
			
		||||
   Choose wisely to protect your authentication information appropriately for
 | 
			
		||||
   your situation. If you choose 'cookie', your cookie contents will be
 | 
			
		||||
   encrypted using blowfish and the secret your specify above as
 | 
			
		||||
   session['blowfish']. */
 | 
			
		||||
$servers->setValue('login','auth_type','cookie');
 | 
			
		||||
 | 
			
		||||
/* The DN of the user for phpLDAPadmin to bind with. For anonymous binds or
 | 
			
		||||
   'cookie','session' or 'sasl' auth_types, LEAVE THE LOGIN_DN AND LOGIN_PASS
 | 
			
		||||
   BLANK. If you specify a login_attr in conjunction with a cookie or session
 | 
			
		||||
   auth_type, then you can also specify the bind_id/bind_pass here for searching
 | 
			
		||||
   the directory for users (ie, if your LDAP server does not allow anonymous
 | 
			
		||||
   binds. */
 | 
			
		||||
$servers->setValue('login','bind_id','cn=admin,dc=infra');
 | 
			
		||||
#  $servers->setValue('login','bind_id','cn=Manager,dc=example,dc=com');
 | 
			
		||||
 | 
			
		||||
/* Your LDAP password. If you specified an empty bind_id above, this MUST also
 | 
			
		||||
   be blank. */
 | 
			
		||||
$servers->setValue('login','bind_pass','');
 | 
			
		||||
#  $servers->setValue('login','bind_pass','secret');
 | 
			
		||||
 | 
			
		||||
/* Use TLS (Transport Layer Security) to connect to the LDAP server. */
 | 
			
		||||
$servers->setValue('server','tls',false);
 | 
			
		||||
 | 
			
		||||
/************************************
 | 
			
		||||
 *      SASL Authentication         *
 | 
			
		||||
 ************************************/
 | 
			
		||||
 | 
			
		||||
/* Enable SASL authentication LDAP SASL authentication requires PHP 5.x
 | 
			
		||||
   configured with --with-ldap-sasl=DIR. If this option is disabled (ie, set to
 | 
			
		||||
   false), then all other sasl options are ignored. */
 | 
			
		||||
// $servers->setValue('login','auth_type','sasl');
 | 
			
		||||
 | 
			
		||||
/* SASL auth mechanism */
 | 
			
		||||
// $servers->setValue('sasl','mech','GSSAPI');
 | 
			
		||||
 | 
			
		||||
/* SASL authentication realm name */
 | 
			
		||||
// $servers->setValue('sasl','realm','');
 | 
			
		||||
#  $servers->setValue('sasl','realm','EXAMPLE.COM');
 | 
			
		||||
 | 
			
		||||
/* SASL authorization ID name
 | 
			
		||||
   If this option is undefined, authorization id will be computed from bind DN,
 | 
			
		||||
   using authz_id_regex and authz_id_replacement. */
 | 
			
		||||
// $servers->setValue('sasl','authz_id', null);
 | 
			
		||||
 | 
			
		||||
/* SASL authorization id regex and replacement
 | 
			
		||||
   When authz_id property is not set (default), phpLDAPAdmin will try to
 | 
			
		||||
   figure out authorization id by itself from bind distinguished name (DN).
 | 
			
		||||
 | 
			
		||||
   This procedure is done by calling preg_replace() php function in the
 | 
			
		||||
   following way:
 | 
			
		||||
 | 
			
		||||
   $authz_id = preg_replace($sasl_authz_id_regex,$sasl_authz_id_replacement,
 | 
			
		||||
    $bind_dn);
 | 
			
		||||
 | 
			
		||||
   For info about pcre regexes, see:
 | 
			
		||||
   - pcre(3), perlre(3)
 | 
			
		||||
   - http://www.php.net/preg_replace */
 | 
			
		||||
// $servers->setValue('sasl','authz_id_regex',null);
 | 
			
		||||
// $servers->setValue('sasl','authz_id_replacement',null);
 | 
			
		||||
#  $servers->setValue('sasl','authz_id_regex','/^uid=([^,]+)(.+)/i');
 | 
			
		||||
#  $servers->setValue('sasl','authz_id_replacement','$1');
 | 
			
		||||
 | 
			
		||||
/* SASL auth security props.
 | 
			
		||||
   See http://beepcore-tcl.sourceforge.net/tclsasl.html#anchor5 for explanation. */
 | 
			
		||||
// $servers->setValue('sasl','props',null);
 | 
			
		||||
 | 
			
		||||
/* Default password hashing algorithm. One of md5, ssha, sha, md5crpyt, smd5,
 | 
			
		||||
   blowfish, crypt or leave blank for now default algorithm. */
 | 
			
		||||
// $servers->setValue('appearance','pla_password_hash','md5');
 | 
			
		||||
 | 
			
		||||
/* If you specified 'cookie' or 'session' as the auth_type above, you can
 | 
			
		||||
   optionally specify here an attribute to use when logging in. If you enter
 | 
			
		||||
   'uid' and login as 'dsmith', phpLDAPadmin will search for (uid=dsmith)
 | 
			
		||||
   and log in as that user.
 | 
			
		||||
   Leave blank or specify 'dn' to use full DN for logging in. Note also that if
 | 
			
		||||
   your LDAP server requires you to login to perform searches, you can enter the
 | 
			
		||||
   DN to use when searching in 'bind_id' and 'bind_pass' above. */
 | 
			
		||||
// $servers->setValue('login','attr','dn');
 | 
			
		||||
 | 
			
		||||
/* Base DNs to used for logins. If this value is not set, then the LDAP server
 | 
			
		||||
   Base DNs are used. */
 | 
			
		||||
// $servers->setValue('login','base',array());
 | 
			
		||||
 | 
			
		||||
/* If 'login,attr' is used above such that phpLDAPadmin will search for your DN
 | 
			
		||||
   at login, you may restrict the search to a specific objectClasses. EG, set this
 | 
			
		||||
   to array('posixAccount') or array('inetOrgPerson',..), depending upon your
 | 
			
		||||
   setup. */
 | 
			
		||||
// $servers->setValue('login','class',array());
 | 
			
		||||
 | 
			
		||||
/* If you specified something different from 'dn', for example 'uid', as the
 | 
			
		||||
   login_attr above, you can optionally specify here to fall back to
 | 
			
		||||
   authentication with dn.
 | 
			
		||||
   This is useful, when users should be able to log in with their uid, but
 | 
			
		||||
   the ldap administrator wants to log in with his root-dn, that does not
 | 
			
		||||
   necessarily have the uid attribute.
 | 
			
		||||
   When using this feature, login_class is ignored. */
 | 
			
		||||
// $servers->setValue('login','fallback_dn',false);
 | 
			
		||||
 | 
			
		||||
/* Specify true If you want phpLDAPadmin to not display or permit any
 | 
			
		||||
   modification to the LDAP server. */
 | 
			
		||||
// $servers->setValue('server','read_only',false);
 | 
			
		||||
 | 
			
		||||
/* Specify false if you do not want phpLDAPadmin to draw the 'Create new' links
 | 
			
		||||
   in the tree viewer. */
 | 
			
		||||
// $servers->setValue('appearance','show_create',true);
 | 
			
		||||
 | 
			
		||||
/* Set to true if you would like to initially open the first level of each tree. */
 | 
			
		||||
// $servers->setValue('appearance','open_tree',false);
 | 
			
		||||
 | 
			
		||||
/* This feature allows phpLDAPadmin to automatically determine the next
 | 
			
		||||
   available uidNumber for a new entry. */
 | 
			
		||||
// $servers->setValue('auto_number','enable',true);
 | 
			
		||||
 | 
			
		||||
/* The mechanism to use when finding the next available uidNumber. Two possible
 | 
			
		||||
   values: 'uidpool' or 'search'.
 | 
			
		||||
   The 'uidpool' mechanism uses an existing uidPool entry in your LDAP server to
 | 
			
		||||
   blindly lookup the next available uidNumber. The 'search' mechanism searches
 | 
			
		||||
   for entries with a uidNumber value and finds the first available uidNumber
 | 
			
		||||
   (slower). */
 | 
			
		||||
// $servers->setValue('auto_number','mechanism','search');
 | 
			
		||||
 | 
			
		||||
/* The DN of the search base when the 'search' mechanism is used above. */
 | 
			
		||||
#  $servers->setValue('auto_number','search_base','ou=People,dc=example,dc=com');
 | 
			
		||||
 | 
			
		||||
/* The minimum number to use when searching for the next available number
 | 
			
		||||
   (only when 'search' is used for auto_number. */
 | 
			
		||||
// $servers->setValue('auto_number','min',array('uidNumber'=>1000,'gidNumber'=>500));
 | 
			
		||||
 | 
			
		||||
/* If you set this, then phpldapadmin will bind to LDAP with this user ID when
 | 
			
		||||
   searching for the uidnumber. The idea is, this user id would have full
 | 
			
		||||
   (readonly) access to uidnumber in your ldap directory (the logged in user
 | 
			
		||||
   may not), so that you can be guaranteed to get a unique uidnumber for your
 | 
			
		||||
   directory. */
 | 
			
		||||
// $servers->setValue('auto_number','dn',null);
 | 
			
		||||
 | 
			
		||||
/* The password for the dn above. */
 | 
			
		||||
// $servers->setValue('auto_number','pass',null);
 | 
			
		||||
 | 
			
		||||
/* Enable anonymous bind login. */
 | 
			
		||||
// $servers->setValue('login','anon_bind',true);
 | 
			
		||||
 | 
			
		||||
/* Use customized page with prefix when available. */
 | 
			
		||||
#  $servers->setValue('custom','pages_prefix','custom_');
 | 
			
		||||
 | 
			
		||||
/* If you set this, then only these DNs are allowed to log in. This array can
 | 
			
		||||
   contain individual users, groups or ldap search filter(s). Keep in mind that
 | 
			
		||||
   the user has not authenticated yet, so this will be an anonymous search to
 | 
			
		||||
   the LDAP server, so make your ACLs allow these searches to return results! */
 | 
			
		||||
#  $servers->setValue('login','allowed_dns',array(
 | 
			
		||||
#   'uid=stran,ou=People,dc=example,dc=com',
 | 
			
		||||
#   '(&(gidNumber=811)(objectClass=groupOfNames))',
 | 
			
		||||
#   '(|(uidNumber=200)(uidNumber=201))',
 | 
			
		||||
#   'cn=callcenter,ou=Group,dc=example,dc=com'));
 | 
			
		||||
 | 
			
		||||
/* Set this if you dont want this LDAP server to show in the tree */
 | 
			
		||||
// $servers->setValue('server','visible',true);
 | 
			
		||||
 | 
			
		||||
/* Set this if you want to hide the base DNs that dont exist instead of
 | 
			
		||||
   displaying the message "The base entry doesnt exist, create it?"
 | 
			
		||||
// $servers->setValue('server','hide_noaccess_base',false);
 | 
			
		||||
#  $servers->setValue('server','hide_noaccess_base',true);
 | 
			
		||||
 | 
			
		||||
/* This is the time out value in minutes for the server. After as many minutes
 | 
			
		||||
   of inactivity you will be automatically logged out. If not set, the default
 | 
			
		||||
   value will be ( session_cache_expire()-1 ) */
 | 
			
		||||
#  $servers->setValue('login','timeout',30);
 | 
			
		||||
 | 
			
		||||
/* Set this if you want phpldapadmin to perform rename operation on entry which
 | 
			
		||||
   has children. Certain servers are known to allow it, certain are not. */
 | 
			
		||||
// $servers->setValue('server','branch_rename',false);
 | 
			
		||||
 | 
			
		||||
/* If you set this, then phpldapadmin will show these attributes as
 | 
			
		||||
   internal attributes, even if they are not defined in your schema. */
 | 
			
		||||
// $servers->setValue('server','custom_sys_attrs',array(''));
 | 
			
		||||
#  $servers->setValue('server','custom_sys_attrs',array('passwordExpirationTime','passwordAllowChangeTime'));
 | 
			
		||||
 | 
			
		||||
/* If you set this, then phpldapadmin will show these attributes on
 | 
			
		||||
   objects, even if they are not defined in your schema. */
 | 
			
		||||
// $servers->setValue('server','custom_attrs',array(''));
 | 
			
		||||
#  $servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
 | 
			
		||||
 | 
			
		||||
/* These attributes will be forced to MAY attributes and become option in the
 | 
			
		||||
   templates. If they are not defined in the templates, then they wont appear
 | 
			
		||||
   as per normal template processing. You may want to do this because your LDAP
 | 
			
		||||
   server may automatically calculate a default value.
 | 
			
		||||
   In Fedora Directory Server using the DNA Plugin one could ignore uidNumber,
 | 
			
		||||
   gidNumber and sambaSID. */
 | 
			
		||||
// $servers->setValue('server','force_may',array(''));
 | 
			
		||||
#  $servers->setValue('server','force_may',array('uidNumber','gidNumber','sambaSID'));
 | 
			
		||||
 | 
			
		||||
/*********************************************
 | 
			
		||||
 * Unique attributes                         *
 | 
			
		||||
 *********************************************/
 | 
			
		||||
 | 
			
		||||
/* You may want phpLDAPadmin to enforce some attributes to have unique values
 | 
			
		||||
   (ie: not belong to other entries in your tree. This (together with
 | 
			
		||||
   'unique','dn' and 'unique','pass' option will not let updates to
 | 
			
		||||
   occur with other attributes have the same value. */
 | 
			
		||||
#  $servers->setValue('unique','attrs',array('mail','uid','uidNumber'));
 | 
			
		||||
 | 
			
		||||
/* If you set this, then phpldapadmin will bind to LDAP with this user ID when
 | 
			
		||||
   searching for attribute uniqueness. The idea is, this user id would have full
 | 
			
		||||
   (readonly) access to your ldap directory (the logged in user may not), so
 | 
			
		||||
   that you can be guaranteed to get a unique uidnumber for your directory. */
 | 
			
		||||
// $servers->setValue('unique','dn',null);
 | 
			
		||||
 | 
			
		||||
/* The password for the dn above. */
 | 
			
		||||
// $servers->setValue('unique','pass',null);
 | 
			
		||||
 | 
			
		||||
/**************************************************************************
 | 
			
		||||
 * If you want to configure additional LDAP servers, do so below.         *
 | 
			
		||||
 * Remove the commented lines and use this section as a template for all  *
 | 
			
		||||
 * your other LDAP servers.                                               *
 | 
			
		||||
 **************************************************************************/
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
$servers->newServer('ldap_pla');
 | 
			
		||||
$servers->setValue('server','name','LDAP Server');
 | 
			
		||||
$servers->setValue('server','host','127.0.0.1');
 | 
			
		||||
$servers->setValue('server','port',389);
 | 
			
		||||
$servers->setValue('server','base',array(''));
 | 
			
		||||
$servers->setValue('login','auth_type','cookie');
 | 
			
		||||
$servers->setValue('login','bind_id','');
 | 
			
		||||
$servers->setValue('login','bind_pass','');
 | 
			
		||||
$servers->setValue('server','tls',false);
 | 
			
		||||
 | 
			
		||||
# SASL auth
 | 
			
		||||
$servers->setValue('login','auth_type','sasl');
 | 
			
		||||
$servers->setValue('sasl','mech','GSSAPI');
 | 
			
		||||
$servers->setValue('sasl','realm','EXAMPLE.COM');
 | 
			
		||||
$servers->setValue('sasl','authz_id',null);
 | 
			
		||||
$servers->setValue('sasl','authz_id_regex','/^uid=([^,]+)(.+)/i');
 | 
			
		||||
$servers->setValue('sasl','authz_id_replacement','$1');
 | 
			
		||||
$servers->setValue('sasl','props',null);
 | 
			
		||||
 | 
			
		||||
$servers->setValue('appearance','pla_password_hash','md5');
 | 
			
		||||
$servers->setValue('login','attr','dn');
 | 
			
		||||
$servers->setValue('login','fallback_dn',false);
 | 
			
		||||
$servers->setValue('login','class',null);
 | 
			
		||||
$servers->setValue('server','read_only',false);
 | 
			
		||||
$servers->setValue('appearance','show_create',true);
 | 
			
		||||
 | 
			
		||||
$servers->setValue('auto_number','enable',true);
 | 
			
		||||
$servers->setValue('auto_number','mechanism','search');
 | 
			
		||||
$servers->setValue('auto_number','search_base',null);
 | 
			
		||||
$servers->setValue('auto_number','min',array('uidNumber'=>10000,'gidNumber'=>5000));
 | 
			
		||||
$servers->setValue('auto_number','dn',null);
 | 
			
		||||
$servers->setValue('auto_number','pass',null);
 | 
			
		||||
 | 
			
		||||
$servers->setValue('login','anon_bind',true);
 | 
			
		||||
$servers->setValue('custom','pages_prefix','custom_');
 | 
			
		||||
$servers->setValue('unique','attrs',array('mail','uid','uidNumber'));
 | 
			
		||||
$servers->setValue('unique','dn',null);
 | 
			
		||||
$servers->setValue('unique','pass',null);
 | 
			
		||||
 | 
			
		||||
$servers->setValue('server','visible',true);
 | 
			
		||||
$servers->setValue('login','timeout',30);
 | 
			
		||||
$servers->setValue('server','branch_rename',false);
 | 
			
		||||
$servers->setValue('server','custom_sys_attrs',array('passwordExpirationTime','passwordAllowChangeTime'));
 | 
			
		||||
$servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
 | 
			
		||||
$servers->setValue('server','force_may',array('uidNumber','gidNumber','sambaSID'));
 | 
			
		||||
*/
 | 
			
		||||
?>
 | 
			
		||||
							
								
								
									
										583
									
								
								jails/config/ldap-mgr/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										583
									
								
								jails/config/ldap-mgr/httpd.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,583 @@
 | 
			
		||||
#
 | 
			
		||||
# This is the main Apache HTTP server configuration file.  It contains the
 | 
			
		||||
# configuration directives that give the server its instructions.
 | 
			
		||||
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
 | 
			
		||||
# In particular, see 
 | 
			
		||||
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
 | 
			
		||||
# for a discussion of each configuration directive.
 | 
			
		||||
#
 | 
			
		||||
# Do NOT simply read the instructions in here without understanding
 | 
			
		||||
# what they do.  They're here only as hints or reminders.  If you are unsure
 | 
			
		||||
# consult the online docs. You have been warned.  
 | 
			
		||||
#
 | 
			
		||||
# Configuration and logfile names: If the filenames you specify for many
 | 
			
		||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
 | 
			
		||||
# server will use that explicit path.  If the filenames do *not* begin
 | 
			
		||||
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
 | 
			
		||||
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
 | 
			
		||||
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" 
 | 
			
		||||
# will be interpreted as '/logs/access_log'.
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerRoot: The top of the directory tree under which the server's
 | 
			
		||||
# configuration, error, and log files are kept.
 | 
			
		||||
#
 | 
			
		||||
# Do not add a slash at the end of the directory path.  If you point
 | 
			
		||||
# ServerRoot at a non-local disk, be sure to specify a local disk on the
 | 
			
		||||
# Mutex directive, if file-based mutexes are used.  If you wish to share the
 | 
			
		||||
# same ServerRoot for multiple httpd daemons, you will need to change at
 | 
			
		||||
# least PidFile.
 | 
			
		||||
#
 | 
			
		||||
ServerRoot "/usr/local"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Mutex: Allows you to set the mutex mechanism and mutex file directory
 | 
			
		||||
# for individual mutexes, or change the global defaults
 | 
			
		||||
#
 | 
			
		||||
# Uncomment and change the directory if mutexes are file-based and the default
 | 
			
		||||
# mutex file directory is not on a local disk or is not appropriate for some
 | 
			
		||||
# other reason.
 | 
			
		||||
#
 | 
			
		||||
# Mutex default:/var/run
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
 | 
			
		||||
# ports, instead of the default. See also the <VirtualHost>
 | 
			
		||||
# directive.
 | 
			
		||||
#
 | 
			
		||||
# Change this to Listen on specific IP addresses as shown below to 
 | 
			
		||||
# prevent Apache from glomming onto all bound IP addresses.
 | 
			
		||||
#
 | 
			
		||||
#Listen 12.34.56.78:80
 | 
			
		||||
Listen 80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Dynamic Shared Object (DSO) Support
 | 
			
		||||
#
 | 
			
		||||
# To be able to use the functionality of a module which was built as a DSO you
 | 
			
		||||
# have to place corresponding `LoadModule' lines at this location so the
 | 
			
		||||
# directives contained in it are actually available _before_ they are used.
 | 
			
		||||
# Statically compiled modules (those listed by `httpd -l') do not need
 | 
			
		||||
# to be loaded here.
 | 
			
		||||
#
 | 
			
		||||
# Example:
 | 
			
		||||
# LoadModule foo_module modules/mod_foo.so
 | 
			
		||||
#
 | 
			
		||||
#LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
 | 
			
		||||
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
 | 
			
		||||
#LoadModule mpm_worker_module libexec/apache24/mod_mpm_worker.so
 | 
			
		||||
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
 | 
			
		||||
#LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
 | 
			
		||||
#LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
 | 
			
		||||
#LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
 | 
			
		||||
#LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
 | 
			
		||||
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
 | 
			
		||||
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
 | 
			
		||||
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
 | 
			
		||||
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
 | 
			
		||||
#LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
 | 
			
		||||
#LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
 | 
			
		||||
#LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
 | 
			
		||||
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
 | 
			
		||||
#LoadModule authnz_fcgi_module libexec/apache24/mod_authnz_fcgi.so
 | 
			
		||||
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
 | 
			
		||||
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
 | 
			
		||||
#LoadModule auth_form_module libexec/apache24/mod_auth_form.so
 | 
			
		||||
#LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
 | 
			
		||||
#LoadModule allowmethods_module libexec/apache24/mod_allowmethods.so
 | 
			
		||||
#LoadModule file_cache_module libexec/apache24/mod_file_cache.so
 | 
			
		||||
#LoadModule cache_module libexec/apache24/mod_cache.so
 | 
			
		||||
#LoadModule cache_disk_module libexec/apache24/mod_cache_disk.so
 | 
			
		||||
#LoadModule cache_socache_module libexec/apache24/mod_cache_socache.so
 | 
			
		||||
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
 | 
			
		||||
#LoadModule socache_dbm_module libexec/apache24/mod_socache_dbm.so
 | 
			
		||||
#LoadModule socache_memcache_module libexec/apache24/mod_socache_memcache.so
 | 
			
		||||
#LoadModule watchdog_module libexec/apache24/mod_watchdog.so
 | 
			
		||||
#LoadModule macro_module libexec/apache24/mod_macro.so
 | 
			
		||||
#LoadModule dbd_module libexec/apache24/mod_dbd.so
 | 
			
		||||
#LoadModule dumpio_module libexec/apache24/mod_dumpio.so
 | 
			
		||||
#LoadModule buffer_module libexec/apache24/mod_buffer.so
 | 
			
		||||
#LoadModule data_module libexec/apache24/mod_data.so
 | 
			
		||||
#LoadModule ratelimit_module libexec/apache24/mod_ratelimit.so
 | 
			
		||||
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
 | 
			
		||||
#LoadModule ext_filter_module libexec/apache24/mod_ext_filter.so
 | 
			
		||||
#LoadModule request_module libexec/apache24/mod_request.so
 | 
			
		||||
#LoadModule include_module libexec/apache24/mod_include.so
 | 
			
		||||
LoadModule filter_module libexec/apache24/mod_filter.so
 | 
			
		||||
#LoadModule reflector_module libexec/apache24/mod_reflector.so
 | 
			
		||||
#LoadModule substitute_module libexec/apache24/mod_substitute.so
 | 
			
		||||
#LoadModule sed_module libexec/apache24/mod_sed.so
 | 
			
		||||
#LoadModule charset_lite_module libexec/apache24/mod_charset_lite.so
 | 
			
		||||
#LoadModule deflate_module libexec/apache24/mod_deflate.so
 | 
			
		||||
#LoadModule xml2enc_module libexec/apache24/mod_xml2enc.so
 | 
			
		||||
#LoadModule proxy_html_module libexec/apache24/mod_proxy_html.so
 | 
			
		||||
LoadModule mime_module libexec/apache24/mod_mime.so
 | 
			
		||||
LoadModule log_config_module libexec/apache24/mod_log_config.so
 | 
			
		||||
#LoadModule log_debug_module libexec/apache24/mod_log_debug.so
 | 
			
		||||
#LoadModule log_forensic_module libexec/apache24/mod_log_forensic.so
 | 
			
		||||
#LoadModule logio_module libexec/apache24/mod_logio.so
 | 
			
		||||
LoadModule env_module libexec/apache24/mod_env.so
 | 
			
		||||
#LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
 | 
			
		||||
#LoadModule cern_meta_module libexec/apache24/mod_cern_meta.so
 | 
			
		||||
#LoadModule expires_module libexec/apache24/mod_expires.so
 | 
			
		||||
LoadModule headers_module libexec/apache24/mod_headers.so
 | 
			
		||||
#LoadModule usertrack_module libexec/apache24/mod_usertrack.so
 | 
			
		||||
#LoadModule unique_id_module libexec/apache24/mod_unique_id.so
 | 
			
		||||
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
 | 
			
		||||
LoadModule version_module libexec/apache24/mod_version.so
 | 
			
		||||
#LoadModule remoteip_module libexec/apache24/mod_remoteip.so
 | 
			
		||||
#LoadModule proxy_module libexec/apache24/mod_proxy.so
 | 
			
		||||
#LoadModule proxy_connect_module libexec/apache24/mod_proxy_connect.so
 | 
			
		||||
#LoadModule proxy_ftp_module libexec/apache24/mod_proxy_ftp.so
 | 
			
		||||
#LoadModule proxy_http_module libexec/apache24/mod_proxy_http.so
 | 
			
		||||
#LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
 | 
			
		||||
#LoadModule proxy_scgi_module libexec/apache24/mod_proxy_scgi.so
 | 
			
		||||
#LoadModule proxy_uwsgi_module libexec/apache24/mod_proxy_uwsgi.so
 | 
			
		||||
#LoadModule proxy_fdpass_module libexec/apache24/mod_proxy_fdpass.so
 | 
			
		||||
#LoadModule proxy_wstunnel_module libexec/apache24/mod_proxy_wstunnel.so
 | 
			
		||||
#LoadModule proxy_ajp_module libexec/apache24/mod_proxy_ajp.so
 | 
			
		||||
#LoadModule proxy_balancer_module libexec/apache24/mod_proxy_balancer.so
 | 
			
		||||
#LoadModule proxy_express_module libexec/apache24/mod_proxy_express.so
 | 
			
		||||
#LoadModule proxy_hcheck_module libexec/apache24/mod_proxy_hcheck.so
 | 
			
		||||
#LoadModule session_module libexec/apache24/mod_session.so
 | 
			
		||||
#LoadModule session_cookie_module libexec/apache24/mod_session_cookie.so
 | 
			
		||||
#LoadModule session_crypto_module libexec/apache24/mod_session_crypto.so
 | 
			
		||||
#LoadModule session_dbd_module libexec/apache24/mod_session_dbd.so
 | 
			
		||||
#LoadModule slotmem_shm_module libexec/apache24/mod_slotmem_shm.so
 | 
			
		||||
#LoadModule slotmem_plain_module libexec/apache24/mod_slotmem_plain.so
 | 
			
		||||
LoadModule ssl_module libexec/apache24/mod_ssl.so
 | 
			
		||||
#LoadModule dialup_module libexec/apache24/mod_dialup.so
 | 
			
		||||
#LoadModule http2_module libexec/apache24/mod_http2.so
 | 
			
		||||
#LoadModule proxy_http2_module libexec/apache24/mod_proxy_http2.so
 | 
			
		||||
#LoadModule lbmethod_byrequests_module libexec/apache24/mod_lbmethod_byrequests.so
 | 
			
		||||
#LoadModule lbmethod_bytraffic_module libexec/apache24/mod_lbmethod_bytraffic.so
 | 
			
		||||
#LoadModule lbmethod_bybusyness_module libexec/apache24/mod_lbmethod_bybusyness.so
 | 
			
		||||
#LoadModule lbmethod_heartbeat_module libexec/apache24/mod_lbmethod_heartbeat.so
 | 
			
		||||
LoadModule unixd_module libexec/apache24/mod_unixd.so
 | 
			
		||||
#LoadModule heartbeat_module libexec/apache24/mod_heartbeat.so
 | 
			
		||||
#LoadModule heartmonitor_module libexec/apache24/mod_heartmonitor.so
 | 
			
		||||
#LoadModule dav_module libexec/apache24/mod_dav.so
 | 
			
		||||
LoadModule status_module libexec/apache24/mod_status.so
 | 
			
		||||
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
 | 
			
		||||
#LoadModule asis_module libexec/apache24/mod_asis.so
 | 
			
		||||
#LoadModule info_module libexec/apache24/mod_info.so
 | 
			
		||||
<IfModule !mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgid_module libexec/apache24/mod_cgid.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
<IfModule mpm_prefork_module>
 | 
			
		||||
	#LoadModule cgi_module libexec/apache24/mod_cgi.so
 | 
			
		||||
</IfModule>
 | 
			
		||||
#LoadModule dav_fs_module libexec/apache24/mod_dav_fs.so
 | 
			
		||||
#LoadModule dav_lock_module libexec/apache24/mod_dav_lock.so
 | 
			
		||||
#LoadModule vhost_alias_module libexec/apache24/mod_vhost_alias.so
 | 
			
		||||
#LoadModule negotiation_module libexec/apache24/mod_negotiation.so
 | 
			
		||||
LoadModule dir_module libexec/apache24/mod_dir.so
 | 
			
		||||
#LoadModule imagemap_module libexec/apache24/mod_imagemap.so
 | 
			
		||||
#LoadModule actions_module libexec/apache24/mod_actions.so
 | 
			
		||||
#LoadModule speling_module libexec/apache24/mod_speling.so
 | 
			
		||||
#LoadModule userdir_module libexec/apache24/mod_userdir.so
 | 
			
		||||
LoadModule alias_module libexec/apache24/mod_alias.so
 | 
			
		||||
#LoadModule rewrite_module libexec/apache24/mod_rewrite.so
 | 
			
		||||
LoadModule php7_module        libexec/apache24/libphp7.so
 | 
			
		||||
 | 
			
		||||
# Third party modules
 | 
			
		||||
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
 | 
			
		||||
 
 | 
			
		||||
<IfModule unixd_module>
 | 
			
		||||
#
 | 
			
		||||
# If you wish httpd to run as a different user or group, you must run
 | 
			
		||||
# httpd as root initially and it will switch.  
 | 
			
		||||
#
 | 
			
		||||
# User/Group: The name (or #number) of the user/group to run httpd as.
 | 
			
		||||
# It is usually good practice to create a dedicated user and group for
 | 
			
		||||
# running httpd, as with most system services.
 | 
			
		||||
#
 | 
			
		||||
User www
 | 
			
		||||
Group www
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# 'Main' server configuration
 | 
			
		||||
#
 | 
			
		||||
# The directives in this section set up the values used by the 'main'
 | 
			
		||||
# server, which responds to any requests that aren't handled by a
 | 
			
		||||
# <VirtualHost> definition.  These values also provide defaults for
 | 
			
		||||
# any <VirtualHost> containers you may define later in the file.
 | 
			
		||||
#
 | 
			
		||||
# All of these directives may appear inside <VirtualHost> containers,
 | 
			
		||||
# in which case these default settings will be overridden for the
 | 
			
		||||
# virtual host being defined.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerAdmin: Your address, where problems with the server should be
 | 
			
		||||
# e-mailed.  This address appears on some server-generated pages, such
 | 
			
		||||
# as error documents.  e.g. admin@your-domain.com
 | 
			
		||||
#
 | 
			
		||||
ServerAdmin you@example.com
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ServerName gives the name and port that the server uses to identify itself.
 | 
			
		||||
# This can often be determined automatically, but we recommend you specify
 | 
			
		||||
# it explicitly to prevent problems during startup.
 | 
			
		||||
#
 | 
			
		||||
# If your host doesn't have a registered DNS name, enter its IP address here.
 | 
			
		||||
#
 | 
			
		||||
#ServerName www.example.com:80
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Deny access to the entirety of your server's filesystem. You must
 | 
			
		||||
# explicitly permit access to web content directories in other 
 | 
			
		||||
# <Directory> blocks below.
 | 
			
		||||
#
 | 
			
		||||
<Directory />
 | 
			
		||||
    AllowOverride All
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Note that from this point forward you must specifically allow
 | 
			
		||||
# particular features to be enabled - so if something's not working as
 | 
			
		||||
# you might expect, make sure that you have specifically enabled it
 | 
			
		||||
# below.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DocumentRoot: The directory out of which you will serve your
 | 
			
		||||
# documents. By default, all requests are taken from this directory, but
 | 
			
		||||
# symbolic links and aliases may be used to point to other locations.
 | 
			
		||||
#
 | 
			
		||||
DocumentRoot "/usr/local/www/apache24/data"
 | 
			
		||||
<Directory "/usr/local/www/apache24/data">
 | 
			
		||||
    #
 | 
			
		||||
    # Possible values for the Options directive are "None", "All",
 | 
			
		||||
    # or any combination of:
 | 
			
		||||
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
 | 
			
		||||
    #
 | 
			
		||||
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
 | 
			
		||||
    # doesn't give it to you.
 | 
			
		||||
    #
 | 
			
		||||
    # The Options directive is both complicated and important.  Please see
 | 
			
		||||
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
 | 
			
		||||
    # for more information.
 | 
			
		||||
    #
 | 
			
		||||
    Options Indexes FollowSymLinks
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AllowOverride controls what directives may be placed in .htaccess files.
 | 
			
		||||
    # It can be "All", "None", or any combination of the keywords:
 | 
			
		||||
    #   AllowOverride FileInfo AuthConfig Limit
 | 
			
		||||
    #
 | 
			
		||||
    AllowOverride All
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Controls who can get stuff from this server.
 | 
			
		||||
    #
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# DirectoryIndex: sets the file that Apache will serve if a directory
 | 
			
		||||
# is requested.
 | 
			
		||||
#
 | 
			
		||||
<IfModule dir_module>
 | 
			
		||||
    DirectoryIndex index.php index.html
 | 
			
		||||
    <FilesMatch "\.php$">
 | 
			
		||||
        SetHandler application/x-httpd-php
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
    <FilesMatch "\.phps$">
 | 
			
		||||
        SetHandler application/x-httpd-php-source
 | 
			
		||||
    </FilesMatch>
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The following lines prevent .htaccess and .htpasswd files from being 
 | 
			
		||||
# viewed by Web clients. 
 | 
			
		||||
#
 | 
			
		||||
<Files ".ht*">
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Files>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# ErrorLog: The location of the error log file.
 | 
			
		||||
# If you do not specify an ErrorLog directive within a <VirtualHost>
 | 
			
		||||
# container, error messages relating to that virtual host will be
 | 
			
		||||
# logged here.  If you *do* define an error logfile for a <VirtualHost>
 | 
			
		||||
# container, that host's errors will be logged there and not here.
 | 
			
		||||
#
 | 
			
		||||
ErrorLog "/var/log/httpd-error.log"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# LogLevel: Control the number of messages logged to the error_log.
 | 
			
		||||
# Possible values include: debug, info, notice, warn, error, crit,
 | 
			
		||||
# alert, emerg.
 | 
			
		||||
#
 | 
			
		||||
LogLevel warn
 | 
			
		||||
 | 
			
		||||
<IfModule log_config_module>
 | 
			
		||||
    #
 | 
			
		||||
    # The following directives define some format nicknames for use with
 | 
			
		||||
    # a CustomLog directive (see below).
 | 
			
		||||
    #
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
 | 
			
		||||
 | 
			
		||||
    <IfModule logio_module>
 | 
			
		||||
      # You need to enable mod_logio.c to use %I and %O
 | 
			
		||||
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
 | 
			
		||||
    </IfModule>
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # The location and format of the access logfile (Common Logfile Format).
 | 
			
		||||
    # If you do not define any access logfiles within a <VirtualHost>
 | 
			
		||||
    # container, they will be logged here.  Contrariwise, if you *do*
 | 
			
		||||
    # define per-<VirtualHost> access logfiles, transactions will be
 | 
			
		||||
    # logged therein and *not* in this file.
 | 
			
		||||
    #
 | 
			
		||||
    CustomLog "/var/log/httpd-access.log" common
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # If you prefer a logfile with access, agent, and referer information
 | 
			
		||||
    # (Combined Logfile Format) you can use the following directive.
 | 
			
		||||
    #
 | 
			
		||||
    #CustomLog "/var/log/httpd-access.log" combined
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule alias_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Redirect: Allows you to tell clients about documents that used to 
 | 
			
		||||
    # exist in your server's namespace, but do not anymore. The client 
 | 
			
		||||
    # will make a new request for the document at its new location.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Redirect permanent /foo http://www.example.com/bar
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Alias: Maps web paths into filesystem paths and is used to
 | 
			
		||||
    # access content that does not live under the DocumentRoot.
 | 
			
		||||
    # Example:
 | 
			
		||||
    # Alias /webpath /full/filesystem/path
 | 
			
		||||
    #
 | 
			
		||||
    # If you include a trailing / on /webpath then the server will
 | 
			
		||||
    # require it to be present in the URL.  You will also likely
 | 
			
		||||
    # need to provide a <Directory> section to allow access to
 | 
			
		||||
    # the filesystem path.
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptAlias: This controls which directories contain server scripts. 
 | 
			
		||||
    # ScriptAliases are essentially the same as Aliases, except that
 | 
			
		||||
    # documents in the target directory are treated as applications and
 | 
			
		||||
    # run by the server when requested rather than as documents sent to the
 | 
			
		||||
    # client.  The same rules about trailing "/" apply to ScriptAlias
 | 
			
		||||
    # directives as to Alias.
 | 
			
		||||
    #
 | 
			
		||||
    ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule cgid_module>
 | 
			
		||||
    #
 | 
			
		||||
    # ScriptSock: On threaded servers, designate the path to the UNIX
 | 
			
		||||
    # socket used to communicate with the CGI daemon of mod_cgid.
 | 
			
		||||
    #
 | 
			
		||||
    #Scriptsock cgisock
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# "/usr/local/www/apache24/cgi-bin" should be changed to whatever your ScriptAliased
 | 
			
		||||
# CGI directory exists, if you have that configured.
 | 
			
		||||
#
 | 
			
		||||
<Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
    Options None
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
 | 
			
		||||
<IfModule headers_module>
 | 
			
		||||
    #
 | 
			
		||||
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
 | 
			
		||||
    # backend servers which have lingering "httpoxy" defects.
 | 
			
		||||
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
 | 
			
		||||
    #
 | 
			
		||||
    RequestHeader unset Proxy early
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule mime_module>
 | 
			
		||||
    #
 | 
			
		||||
    # TypesConfig points to the file containing the list of mappings from
 | 
			
		||||
    # filename extension to MIME-type.
 | 
			
		||||
    #
 | 
			
		||||
    TypesConfig etc/apache24/mime.types
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddType allows you to add to or override the MIME configuration
 | 
			
		||||
    # file specified in TypesConfig for specific file types.
 | 
			
		||||
    #
 | 
			
		||||
    #AddType application/x-gzip .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # AddEncoding allows you to have certain browsers uncompress
 | 
			
		||||
    # information on the fly. Note: Not all browsers support this.
 | 
			
		||||
    #
 | 
			
		||||
    #AddEncoding x-compress .Z
 | 
			
		||||
    #AddEncoding x-gzip .gz .tgz
 | 
			
		||||
    #
 | 
			
		||||
    # If the AddEncoding directives above are commented-out, then you
 | 
			
		||||
    # probably should define those extensions to indicate media types:
 | 
			
		||||
    #
 | 
			
		||||
    AddType application/x-compress .Z
 | 
			
		||||
    AddType application/x-gzip .gz .tgz
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # AddHandler allows you to map certain file extensions to "handlers":
 | 
			
		||||
    # actions unrelated to filetype. These can be either built into the server
 | 
			
		||||
    # or added with the Action directive (see below)
 | 
			
		||||
    #
 | 
			
		||||
    # To use CGI scripts outside of ScriptAliased directories:
 | 
			
		||||
    # (You will also need to add "ExecCGI" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddHandler cgi-script .cgi
 | 
			
		||||
 | 
			
		||||
    # For type maps (negotiated resources):
 | 
			
		||||
    #AddHandler type-map var
 | 
			
		||||
 | 
			
		||||
    #
 | 
			
		||||
    # Filters allow you to process content before it is sent to the client.
 | 
			
		||||
    #
 | 
			
		||||
    # To parse .shtml files for server-side includes (SSI):
 | 
			
		||||
    # (You will also need to add "Includes" to the "Options" directive.)
 | 
			
		||||
    #
 | 
			
		||||
    #AddType text/html .shtml
 | 
			
		||||
    #AddOutputFilter INCLUDES .shtml
 | 
			
		||||
 | 
			
		||||
    AddType application/x-httpd-php .php
 | 
			
		||||
    AddType application/x-httpd-php-source .phps
 | 
			
		||||
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The mod_mime_magic module allows the server to use various hints from the
 | 
			
		||||
# contents of the file itself to determine its type.  The MIMEMagicFile
 | 
			
		||||
# directive tells the module where the hint definitions are located.
 | 
			
		||||
#
 | 
			
		||||
#MIMEMagicFile etc/apache24/magic
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Customizable error responses come in three flavors:
 | 
			
		||||
# 1) plain text 2) local redirects 3) external redirects
 | 
			
		||||
#
 | 
			
		||||
# Some examples:
 | 
			
		||||
#ErrorDocument 500 "The server made a boo boo."
 | 
			
		||||
#ErrorDocument 404 /missing.html
 | 
			
		||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
 | 
			
		||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# MaxRanges: Maximum number of Ranges in a request before
 | 
			
		||||
# returning the entire resource, or one of the special
 | 
			
		||||
# values 'default', 'none' or 'unlimited'.
 | 
			
		||||
# Default setting is to accept 200 Ranges.
 | 
			
		||||
#MaxRanges unlimited
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# EnableMMAP and EnableSendfile: On systems that support it, 
 | 
			
		||||
# memory-mapping or the sendfile syscall may be used to deliver
 | 
			
		||||
# files.  This usually improves server performance, but must
 | 
			
		||||
# be turned off when serving from networked-mounted 
 | 
			
		||||
# filesystems or if support for these functions is otherwise
 | 
			
		||||
# broken on your system.
 | 
			
		||||
# Defaults: EnableMMAP On, EnableSendfile Off
 | 
			
		||||
#
 | 
			
		||||
#EnableMMAP off
 | 
			
		||||
#EnableSendfile on
 | 
			
		||||
 | 
			
		||||
# Supplemental configuration
 | 
			
		||||
#
 | 
			
		||||
# The configuration files in the etc/apache24/extra/ directory can be 
 | 
			
		||||
# included to add extra features or to modify the default configuration of 
 | 
			
		||||
# the server, or you may simply copy their contents here and change as 
 | 
			
		||||
# necessary.
 | 
			
		||||
 | 
			
		||||
# Server-pool management (MPM specific)
 | 
			
		||||
#Include etc/apache24/extra/httpd-mpm.conf
 | 
			
		||||
 | 
			
		||||
# Multi-language error messages
 | 
			
		||||
#Include etc/apache24/extra/httpd-multilang-errordoc.conf
 | 
			
		||||
 | 
			
		||||
# Fancy directory listings
 | 
			
		||||
#Include etc/apache24/extra/httpd-autoindex.conf
 | 
			
		||||
 | 
			
		||||
# Language settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-languages.conf
 | 
			
		||||
 | 
			
		||||
# User home directories
 | 
			
		||||
#Include etc/apache24/extra/httpd-userdir.conf
 | 
			
		||||
 | 
			
		||||
# Real-time info on requests and configuration
 | 
			
		||||
#Include etc/apache24/extra/httpd-info.conf
 | 
			
		||||
 | 
			
		||||
# Virtual hosts
 | 
			
		||||
#Include etc/apache24/extra/httpd-vhosts.conf
 | 
			
		||||
 | 
			
		||||
# Local access to the Apache HTTP Server Manual
 | 
			
		||||
#Include etc/apache24/extra/httpd-manual.conf
 | 
			
		||||
 | 
			
		||||
# Distributed authoring and versioning (WebDAV)
 | 
			
		||||
#Include etc/apache24/extra/httpd-dav.conf
 | 
			
		||||
 | 
			
		||||
# Various default settings
 | 
			
		||||
#Include etc/apache24/extra/httpd-default.conf
 | 
			
		||||
 | 
			
		||||
# Configure mod_proxy_html to understand HTML4/XHTML1
 | 
			
		||||
<IfModule proxy_html_module>
 | 
			
		||||
Include etc/apache24/extra/proxy-html.conf
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
# Secure (SSL/TLS) connections
 | 
			
		||||
#Include etc/apache24/extra/httpd-ssl.conf
 | 
			
		||||
#
 | 
			
		||||
# Note: The following must must be present to support
 | 
			
		||||
#       starting without SSL on platforms with no /dev/random equivalent
 | 
			
		||||
#       but a statically compiled-in mod_ssl.
 | 
			
		||||
#
 | 
			
		||||
<IfModule ssl_module>
 | 
			
		||||
SSLRandomSeed startup builtin
 | 
			
		||||
SSLRandomSeed connect builtin
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
Include etc/apache24/Includes/*.conf
 | 
			
		||||
 | 
			
		||||
<VirtualHost *:443>
 | 
			
		||||
    ServerName ldap-mgr.ahlawat.com
 | 
			
		||||
    ServerAlias *.ahlawat.com
 | 
			
		||||
    ServerAlias ldap-mgr
 | 
			
		||||
 | 
			
		||||
    DocumentRoot "/usr/local/www/apache24/data/"
 | 
			
		||||
 | 
			
		||||
    SSLEngine on
 | 
			
		||||
    SSLCertificateFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
    SSLCertificateKeyFile "/mnt/certs/privkey.pem"
 | 
			
		||||
    #SSLCertificateChainFile "/mnt/certs/fullchain.pem"
 | 
			
		||||
 | 
			
		||||
  <FilesMatch "\.(cgi|shtml|phtml|php)$">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </FilesMatch>
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/cgi-bin">
 | 
			
		||||
    SSLOptions +StdEnvVars
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
 | 
			
		||||
  CustomLog "/var/log/ssl-request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 | 
			
		||||
 | 
			
		||||
  <Directory "/usr/local/www/apache24/data/">
 | 
			
		||||
    Options Indexes FollowSymLinks MultiViews
 | 
			
		||||
    ## IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort SuppressHTMLPreamble NameWidth=96 DescriptionWidth=16
 | 
			
		||||
    IndexOptions FancyIndexing FoldersFirst IgnoreCase NameWidth=96
 | 
			
		||||
 | 
			
		||||
    AllowOverride All
 | 
			
		||||
    Require all granted
 | 
			
		||||
  </Directory>
 | 
			
		||||
 | 
			
		||||
  ErrorLog "/var/log/ssl-error.log"
 | 
			
		||||
  CustomLog "/var/log/ssl-access_log" combined
 | 
			
		||||
</VirtualHost>
 | 
			
		||||
							
								
								
									
										1937
									
								
								jails/config/ldap-mgr/php.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1937
									
								
								jails/config/ldap-mgr/php.ini
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										20
									
								
								jails/config/ldap/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								jails/config/ldap/pkgp.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FreeBSD: {
 | 
			
		||||
    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
 | 
			
		||||
    enabled: no
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp-freebsd-pkg: {
 | 
			
		||||
    url: "http://pkgp-freebsd-pkg.ahlawat.com/${ABI}/latest",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 10
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pkgp121: {
 | 
			
		||||
    url: "http://pkgp.ahlawat.com/packages/pj121-default/",
 | 
			
		||||
    mirror_type: "http",
 | 
			
		||||
    signature_type: "pubkey",
 | 
			
		||||
    pubkey: "/mnt/certs/poudriere.cert",
 | 
			
		||||
    enabled: yes,
 | 
			
		||||
    priority: 100
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										0
									
								
								jails/config/mage/.keep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								jails/config/mage/.keep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										28
									
								
								jails/config/mail/.secret/dkim/ahlawat.com.dkim.key
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								jails/config/mail/.secret/dkim/ahlawat.com.dkim.key
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
-----BEGIN PRIVATE KEY-----
 | 
			
		||||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDDECIuIzM+f5+s
 | 
			
		||||
PdoTBSLGpARZkcKWboSUfLdiFsBEXkV5KLy12S6T2ja0oH5C6GfhkqpdzAsCPHKs
 | 
			
		||||
SdIyJAmHj7FXnbOnP93N64E3n/wONj5cq9QAz2acKxS167DXpnSE7K+egcqI7ePL
 | 
			
		||||
BBecLnKUUnSQ4JMAeUBatjnl5SsKF7pwDM1DsOYvWFpDH0BfjIlZq1JJIUnfE7pK
 | 
			
		||||
b3ppdBSF0bum+/Y6TZVJdNg4fYj5k68vLeBp8PkJj60pO4B7oexLpXcz/pqkGi9a
 | 
			
		||||
K5P86RzZliKMqGVAs3TmxWMskoX2Hpm1VXIg/Pht75FuaPqwkAW8FVb3Y7yvfmgU
 | 
			
		||||
O7FaP423AgMBAAECggEAP7BG2LWZh7B32+8eAtPMdPsciHo1BJT1KN5HqfkvsaLu
 | 
			
		||||
IA8S/nT45kF7VyKH1yS2tkoC4jk65vIBpws7XC+0BNT/3FGbVOJfc1qPiC/uRl2j
 | 
			
		||||
ovJfeBw/roHKc1OPG/o3VSdKeAB8tpSlqaWeZ9oqgw8hDCSnGqJ8RqH06YEXumVO
 | 
			
		||||
/59N5/kweoN1902nrsnhhY72cx/YY7TFZt+sbCs1D8rimHFX5UQUWGQgwqKeCvG2
 | 
			
		||||
VmBtU+oXCBKdaR+IcJd9Oy/qkmEQZ6dDL7n/HUwOcRzuBuZoeXN9sc9z81mYEI2Q
 | 
			
		||||
bYpowPOyqFArB08HjQpFndQFSyNwiVVSzaOHRUNBwQKBgQDkECi9WkyqGgVvSM6f
 | 
			
		||||
fC9OTKKk5kI12j4I3aQKZSnW/eNTpaHykRhvUsr36zp58vRN4G9YDJyblgOhgr1U
 | 
			
		||||
7SBwqZRLETwG0ktKDipgibWjBm+K5LfK+wWRwn/qzq494Qg2GQ/DniXqCZ6SI1s1
 | 
			
		||||
wMBHS9s/VYPGaYvYrS1TD90JpwKBgQDa9R90rcyNlXTLHwYzxgjJczLKHz+0ANlR
 | 
			
		||||
GORg31/VBxs94IYby+cZ/oGRjCB5syR/SaN5Z+N2w8GT0yFWN8UCJS0G4I6fGtCb
 | 
			
		||||
wYWzhK2UtI4WyOH9jIdl8AYjFGRZMFJEkDPmac54jtNcqhfO/Eei9+yHq7llEnUP
 | 
			
		||||
F4qKf8K9cQKBgQDEwDgVW4DGQxqrLhmrt3wsRasPLeKzCOv5xBTQLwRQiMoEkOFN
 | 
			
		||||
HeYBrGCUT6gsKvCe+t+0C3VUOLA7N0pVqRkSeQoJVP3/OI9hfSUMEeHUminCnpz9
 | 
			
		||||
DWB5pl2q2dGyaqAl46sY7SfyZ4gYtU3r6rU3DPdCBWlg1A+kx4pRnV7pAwKBgCOu
 | 
			
		||||
fonNKOCJ0panX6NgSl5J36UAoqj62m9U1yLSRBO7LL1QsYomGGssBoFpjIFIqFH1
 | 
			
		||||
9iX6wB7Cl/E3Ht+mBvzqggP05EkZXZWEW/19SaxKID2mTu260PXTv6xHznKaZU23
 | 
			
		||||
Ej4iT/tlixw2u9qHUkVEkc8qNPQ7pcfn1jPrzhiBAoGBAN075cp3R9bzzfVzrFRh
 | 
			
		||||
ZFWzSnWieSsOP635nj48HXKyne7gjvG1IG/HHSi3XPmRIdWTAfOYz29rWQEOaY7b
 | 
			
		||||
wbNhvH7jvtq/A7/Uifh6l8cnN9TFAmN/wmKEUCloVxg1/GltXbR6UwzbJWAs40ya
 | 
			
		||||
VtAxvncs1bqtPBAgfE5wwdCd
 | 
			
		||||
-----END PRIVATE KEY-----
 | 
			
		||||
							
								
								
									
										28
									
								
								jails/config/mail/.secret/dkim/beyondbell.com.dkim.key
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								jails/config/mail/.secret/dkim/beyondbell.com.dkim.key
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
-----BEGIN PRIVATE KEY-----
 | 
			
		||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYdTOGw8TvQtkr
 | 
			
		||||
Z139xpQC1iXu/X+2ei7ascX6C2G8WM7NS3XphgMd0LgzEm9POoJyYP7KVjQdPK5m
 | 
			
		||||
mRoZOCATmFhNPGSer96qjASHgm10GISKlUyGKRWv1mNHsLJaLwsd8ef13+qBsTvG
 | 
			
		||||
pT0z2I/0OWwAuqQuZdMPuVskspF8jusycibpQ7WjqaOynPEUuRZHDLQToso02+Vd
 | 
			
		||||
X3l3bU08Rz3vW7+hNjZYuzsfCTBzD91kxTGyetqg2CXyLM/dWbDFgY72zG682X0d
 | 
			
		||||
CtoWoEAKdUJkPDxQeKJtqh84TsAOUvg/z3W6J7uJow9OcWsXWJcAJ/HG8gNPq4ho
 | 
			
		||||
sVbc96SzAgMBAAECggEADXPTPPfjwF7uMkVdUQ1LW5XFi8HTcxrK2KqdvDmC3HrE
 | 
			
		||||
d3vOGzJJ9UtodzwZENp5CvS+QQL0gDCqQhQXzCNx0uXv7vTm5/nUI9NJ4MYZWVLA
 | 
			
		||||
wgAfXmMlRuVTDDyOCQ7NaRIEsYI2B9Nk/KZ+VD+MSshazvzKgVuwr1R8tp4mbpAx
 | 
			
		||||
8f4xe51b5ZVqTLcnkoSR6lTmKMQruIZwQpvaGYZLjBRaBcACwYkbZksQZkx7xZdZ
 | 
			
		||||
enpLcKoCc1xXg+gjlfF9HOD1e2GlYQTOgfDcQVJEIS+jjzMyiJA1BxqL8/LkafeD
 | 
			
		||||
CKfx8mzd1LjyDDaAP8ruZb4Ns/6SazAPozxBSRnP2QKBgQD+uf+evckgN6+3/Bur
 | 
			
		||||
egP6I4dUKw1joCo69p98388mWq+ywhIc2rquEfSoQCqjli4pG3iwBbDVxgjk08GV
 | 
			
		||||
ayFaP3X3LvuqCZBktSjEJR6WUMB0kW77BigLCtbzyd2R9upp0A3CnXsmmLVL+o5n
 | 
			
		||||
TD5w6cd67NPS/NGo2FyA6JQO5QKBgQDZijnfG4Yt6BdX3+WBFXNGkhdJziokmrfG
 | 
			
		||||
no5p/tw+/kJfHFC017Z+EbLbcWMKL9cDzl9uMXGDy1xd8+OfolxZZEnrmt4btbmh
 | 
			
		||||
wVzTPrhREwjqzwu/Y2jQwFBef+zJ+b8a1uZOFYVIWWeGCT7wirq54AslE8y0lNEF
 | 
			
		||||
olBnP44TtwKBgQDyn4k50z16QXBOx4Q3fZ3CKQsigWtcZFc1GGlrEOaHesN1eeK0
 | 
			
		||||
tyYu3Q1zIMM8U7SeFPuMda8sv1cDVitCPetjwaSED61IFZoCQoeU5GJQ/JODtG7I
 | 
			
		||||
DOIhOm7pgHJaMJywsqoYn9WIOtYci4gOHhIvjI0jqeZNReARehwJ8P3tfQKBgEWD
 | 
			
		||||
hAalNvVIat0rsJzVC+cLG+H7vT/BKOSRGhUI2bxPZ0oZNDj1jV0vrqWsz+cbbmvK
 | 
			
		||||
8He32PwyaaukGaKTMUtnXq+o5zyXj1/+9/iQ3DkcCgdubeSUkZPTQFtSKYpJAiZD
 | 
			
		||||
cYiWG+cImqocHj6jNhPbYfRRJWK3Ayv3uBWmG3J1AoGAGjKqKpd8+00IxElXpov9
 | 
			
		||||
At2YzPZlzPQCU0+vcreGVTaO9wNdVKfc6uaeAO4D0DP9SOwEqRC9rv8FNb8DxgTB
 | 
			
		||||
ryWMy8rY/CC3mhK6hnsWNRC0a1myKva2XwQ+jMKuCsznFE0N2xjizNdv2/HM2dcr
 | 
			
		||||
ropb+P1w1KZyTiNbTTTC1eQ=
 | 
			
		||||
-----END PRIVATE KEY-----
 | 
			
		||||
							
								
								
									
										28
									
								
								jails/config/mail/.secret/dkim/diyit.org.dkim.key
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								jails/config/mail/.secret/dkim/diyit.org.dkim.key
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
-----BEGIN PRIVATE KEY-----
 | 
			
		||||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDc2cV9/D/MWdUl
 | 
			
		||||
DBfKzA3zNjFbzDJd4WP1fdRRIdell57kJwyKehYCw/HxWy4+AnWj6c2fhPXI2EQp
 | 
			
		||||
K3I1QjNSxV4kq+Lr2SFJuDiZvDRLzihu24N6go34R9712mbZOWWl0KyihO6E2cH8
 | 
			
		||||
h6cr2iahXmAjqVtm9/mBmdnrQ2Bv0fusdpS24x3NOPs4Q5gJTadJFGBkwXb88D/+
 | 
			
		||||
mBDcEUFwDul4bVQWvqHk+8EJwApGLo7YVL2F0A25FAm43rWexjb+JeTsHRqN/TaV
 | 
			
		||||
ALzQPr/DQIb2wyWsTnQMnd0t8qg9ErDAKgxMDeGDRFbHr5wNMTrewQkW7yd+H0T0
 | 
			
		||||
Wa97aDXbAgMBAAECggEANUp/M0VZB7BtlED0xMS0YQmko2gEh07J1gUE5IbsCFMr
 | 
			
		||||
zhX2GrwW75fkm77Ky7/AL0tNiL6GqG43FFAdgOh2hfSGIQcw/IQqWiWP0tjtLZWT
 | 
			
		||||
gByL/1XdeBmvnVeUFbqZ4ocWASlefMQm4Q7Csfwz8iBZxoEpQxF3LWS4huJ9NL3d
 | 
			
		||||
qiI1jX5otXN0ybA6jDpridvExRwWT6KrAykUrh5f7vRGUp0I7/GltvSHS4mu24C1
 | 
			
		||||
08RUPE5NjynEX/amc1urMwH3ZdOZgCx819DfQXpQts9/TejSLlLL8s4lXTsZDoab
 | 
			
		||||
DiJ1zZKZEpMIheEGAWSyLtqc1QxypauVAMeM6ZgasQKBgQD88Yf1E7X8zS4hYSyu
 | 
			
		||||
WHiUgrin/0febsHWZAVBTwnzpDwfY0jNnq57tiALyaVzk3vCL3a9WckpXPbQk4Yk
 | 
			
		||||
Oypu1eDyGT4Xf7hrXqFTlMtkupa3Os5/MlTXOFMMs5VISsxrbVjNlvSxITXASWwr
 | 
			
		||||
IYVjmhgTx8Rg3ApM5X/Tqd8XxwKBgQDfhPZ2t+4fBwhzgydKnkPWMbJ6k17tWoZu
 | 
			
		||||
8tzCzrxJd/cYUmi/44sOLrFCLwaS28I4sR7iBPCeiFnnbqlv+f6uw2Xmr5jc/BsT
 | 
			
		||||
md6yl2gNmow//iGFwf8lAsA1VyoFbZoAvQUMVElaxvCngifsTNqRHap8KY6xv5r/
 | 
			
		||||
C6MEoGd5TQKBgQDEoPXxnEsCpHXR2Pqk5X2G5T+qyRYTYcIpaUN0i37O+cMLG2FD
 | 
			
		||||
BrHY1bF/uFd3yxSP1dnWRG/OSchMSAIlNCE+W+EsEldkaRLx1HRQxwB941a6RWq1
 | 
			
		||||
EmlFjTFyVEAeHJdgg3ZfC5RYBdsFCY6e0MYisW06IzcTnLodIOMHpawZjQKBgQC+
 | 
			
		||||
1RVbnINXyDhl7rbQFTlTmVCJKGMmgGBAP2dNhxXoH909zbYTBmFFdYXvPJj/L1Kt
 | 
			
		||||
9kKos5D/uOgRGEDfEnBnovnQL2FyYmd3n6orjerPmoBdbkoOmeeNIMEbiVSeF8oh
 | 
			
		||||
EUBLG3cZYro6OXx+WctNlCdnJE/o3+6kC7pdi9lsDQKBgEtkK4RpB1OKJm6sEiWe
 | 
			
		||||
hoTI6yqflpkivWtV3F8/D37LbYT5wiAsRr6AkgetB7jsi0t//thJiAUUxhtb+u4M
 | 
			
		||||
1zR7i9bIRv3lU8TgYpfS/Yq3T9feZoj682LKtBMPoSgm/p5+ogzIlAU3cpjAW+A8
 | 
			
		||||
2CyzbDc7K58vuzaR8RHpnzYi
 | 
			
		||||
-----END PRIVATE KEY-----
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user