2017-10-29 05:31:51 +01:00
|
|
|
<?php
|
|
|
|
|
2020-07-01 10:13:38 +02:00
|
|
|
define('RASPI_BRAND_TEXT', 'RaspAP');
|
2017-10-29 05:31:51 +01:00
|
|
|
define('RASPI_CONFIG', '/etc/raspap');
|
2020-12-05 10:14:07 +01:00
|
|
|
define('RASPI_CONFIG_NETWORK', RASPI_CONFIG.'/networking/defaults.json');
|
2017-10-29 05:31:51 +01:00
|
|
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
2020-06-09 16:34:19 +02:00
|
|
|
define('RASPI_WIFI_AP_INTERFACE', 'wlan0');
|
2019-08-08 02:10:40 +02:00
|
|
|
define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap');
|
2017-10-29 05:31:51 +01:00
|
|
|
|
|
|
|
// Constants for configuration file paths.
|
|
|
|
// These are typical for default RPi installs. Modify if needed.
|
|
|
|
define('RASPI_DNSMASQ_LEASES', '/var/lib/misc/dnsmasq.leases');
|
2020-11-15 11:51:09 +01:00
|
|
|
define('RASPI_DNSMASQ_PREFIX', '/etc/dnsmasq.d/090_');
|
2020-03-27 15:32:27 +01:00
|
|
|
define('RASPI_ADBLOCK_LISTPATH', '/etc/raspap/adblock/');
|
2020-12-12 20:29:43 +01:00
|
|
|
define('RASPI_ADBLOCK_CONFIG', RASPI_DNSMASQ_PREFIX.'adblock.conf');
|
2017-10-29 05:31:51 +01:00
|
|
|
define('RASPI_HOSTAPD_CONFIG', '/etc/hostapd/hostapd.conf');
|
2019-03-12 00:44:18 +01:00
|
|
|
define('RASPI_DHCPCD_CONFIG', '/etc/dhcpcd.conf');
|
2017-10-29 05:31:51 +01:00
|
|
|
define('RASPI_WPA_SUPPLICANT_CONFIG', '/etc/wpa_supplicant/wpa_supplicant.conf');
|
|
|
|
define('RASPI_HOSTAPD_CTRL_INTERFACE', '/var/run/hostapd');
|
|
|
|
define('RASPI_WPA_CTRL_INTERFACE', '/var/run/wpa_supplicant');
|
2019-11-17 19:45:57 +01:00
|
|
|
define('RASPI_OPENVPN_CLIENT_CONFIG', '/etc/openvpn/client/client.conf');
|
|
|
|
define('RASPI_OPENVPN_CLIENT_LOGIN', '/etc/openvpn/client/login.conf');
|
|
|
|
define('RASPI_OPENVPN_SERVER_CONFIG', '/etc/openvpn/server/server.conf');
|
2020-08-25 23:11:57 +02:00
|
|
|
define('RASPI_WIREGUARD_CONFIG', '/etc/wireguard/wg0.conf');
|
2017-10-29 05:31:51 +01:00
|
|
|
define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc');
|
2019-11-10 23:50:48 +01:00
|
|
|
define('RASPI_LIGHTTPD_CONFIG', '/etc/lighttpd/lighttpd.conf');
|
2020-06-28 18:02:07 +02:00
|
|
|
define('RASPI_ACCESS_CHECK_IP', '1.1.1.1');
|
|
|
|
define('RASPI_ACCESS_CHECK_DNS', 'one.one.one.one');
|
|
|
|
|
2020-01-01 20:12:04 +01:00
|
|
|
// Constant for the 5GHz wireless regulatory domain
|
2020-07-04 20:12:46 +02:00
|
|
|
define('RASPI_5GHZ_ISO_ALPHA2', array('NL','US'));
|
2020-10-25 08:47:47 +01:00
|
|
|
define('RASPI_5GHZ_MAX_CHANNEL', 165);
|
2019-12-31 20:09:26 +01:00
|
|
|
|
2017-10-29 05:31:51 +01:00
|
|
|
// Optional services, set to true to enable.
|
2019-04-10 10:37:35 +02:00
|
|
|
define('RASPI_WIFICLIENT_ENABLED', true);
|
|
|
|
define('RASPI_HOTSPOT_ENABLED', true);
|
|
|
|
define('RASPI_NETWORK_ENABLED', true);
|
|
|
|
define('RASPI_DHCP_ENABLED', true);
|
2020-03-31 23:54:46 +02:00
|
|
|
define('RASPI_ADBLOCK_ENABLED', false);
|
2019-04-10 10:37:35 +02:00
|
|
|
define('RASPI_OPENVPN_ENABLED', false);
|
2020-04-20 12:05:15 +02:00
|
|
|
define('RASPI_WIREGUARD_ENABLED', false);
|
2019-04-10 10:37:35 +02:00
|
|
|
define('RASPI_TORPROXY_ENABLED', false);
|
|
|
|
define('RASPI_CONFAUTH_ENABLED', true);
|
|
|
|
define('RASPI_CHANGETHEME_ENABLED', true);
|
|
|
|
define('RASPI_VNSTAT_ENABLED', true);
|
2019-11-08 09:20:47 +01:00
|
|
|
define('RASPI_SYSTEM_ENABLED', true);
|
2019-09-07 10:53:37 +02:00
|
|
|
define('RASPI_MONITOR_ENABLED', false);
|
2017-10-29 05:31:51 +01:00
|
|
|
|
2018-05-27 10:45:34 +02:00
|
|
|
// Locale settings
|
|
|
|
define('LOCALE_ROOT', 'locale');
|
2019-04-10 10:37:35 +02:00
|
|
|
define('LOCALE_DOMAIN', 'messages');
|