2017-10-29 04:31:51 +00:00
|
|
|
<?php
|
|
|
|
|
2022-04-10 18:09:23 +00:00
|
|
|
define('RASPI_BRAND_TEXT', 'RaspAP');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_CONFIG', '/etc/raspap');
|
2020-12-05 09:14:07 +00:00
|
|
|
define('RASPI_CONFIG_NETWORK', RASPI_CONFIG.'/networking/defaults.json');
|
2023-10-12 17:19:15 +00:00
|
|
|
define('RASPI_CONFIG_PROVIDERS', 'config/vpn-providers.json');
|
2024-03-08 09:46:45 +00:00
|
|
|
define('RASPI_CONFIG_API', RASPI_CONFIG.'/api');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
2020-06-09 14:34:19 +00:00
|
|
|
define('RASPI_WIFI_AP_INTERFACE', 'wlan0');
|
2019-08-08 00:10:40 +00:00
|
|
|
define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap');
|
2023-12-27 16:46:30 +00:00
|
|
|
define('RASPI_ERROR_LOG', sys_get_temp_dir() . '/raspap_error.log');
|
2023-10-31 22:18:23 +00:00
|
|
|
define('RASPI_DEBUG_LOG', 'raspap_debug.log');
|
2023-11-28 10:00:07 +00:00
|
|
|
define('RASPI_LOG_SIZE_LIMIT', 64);
|
2017-10-29 04:31:51 +00: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 10:51:09 +00:00
|
|
|
define('RASPI_DNSMASQ_PREFIX', '/etc/dnsmasq.d/090_');
|
2020-03-27 14:32:27 +00:00
|
|
|
define('RASPI_ADBLOCK_LISTPATH', '/etc/raspap/adblock/');
|
2020-12-12 19:29:43 +00:00
|
|
|
define('RASPI_ADBLOCK_CONFIG', RASPI_DNSMASQ_PREFIX.'adblock.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_HOSTAPD_CONFIG', '/etc/hostapd/hostapd.conf');
|
2019-03-11 23:44:18 +00:00
|
|
|
define('RASPI_DHCPCD_CONFIG', '/etc/dhcpcd.conf');
|
2021-11-17 22:00:20 +00:00
|
|
|
define('RASPI_DHCPCD_LOG', '/var/log/dnsmasq.log');
|
2023-11-28 10:00:07 +00:00
|
|
|
define('RASPI_HOSTAPD_LOG', '/tmp/hostapd.log');
|
2017-10-29 04:31:51 +00: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');
|
2021-06-06 19:47:30 +00:00
|
|
|
define('RASPI_OPENVPN_CLIENT_PATH', '/etc/openvpn/client/');
|
2019-11-17 18:45:57 +00:00
|
|
|
define('RASPI_OPENVPN_CLIENT_CONFIG', '/etc/openvpn/client/client.conf');
|
|
|
|
define('RASPI_OPENVPN_CLIENT_LOGIN', '/etc/openvpn/client/login.conf');
|
2021-02-24 08:46:41 +00:00
|
|
|
define('RASPI_WIREGUARD_PATH', '/etc/wireguard/');
|
|
|
|
define('RASPI_WIREGUARD_CONFIG', RASPI_WIREGUARD_PATH.'wg0.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc');
|
2019-11-10 22:50:48 +00:00
|
|
|
define('RASPI_LIGHTTPD_CONFIG', '/etc/lighttpd/lighttpd.conf');
|
2020-06-28 16:02:07 +00:00
|
|
|
define('RASPI_ACCESS_CHECK_IP', '1.1.1.1');
|
|
|
|
define('RASPI_ACCESS_CHECK_DNS', 'one.one.one.one');
|
|
|
|
|
2023-11-20 14:45:55 +00:00
|
|
|
// Constant for the GitHub API latest release endpoint
|
|
|
|
define('RASPI_API_ENDPOINT', 'https://api.github.com/repos/RaspAP/raspap-webgui/releases/latest');
|
|
|
|
|
2023-11-06 07:28:50 +00:00
|
|
|
// Constant for the 5GHz wireless regulatory domain
|
2023-11-07 14:06:57 +00:00
|
|
|
define("RASPI_5GHZ_CHANNEL_MIN", 100);
|
|
|
|
define("RASPI_5GHZ_CHANNEL_MAX", 192);
|
2023-11-06 07:28:50 +00:00
|
|
|
|
2022-12-12 11:44:20 +00:00
|
|
|
// Enable basic authentication for the web admin.
|
|
|
|
define('RASPI_AUTH_ENABLED', true);
|
|
|
|
|
2017-10-29 04:31:51 +00:00
|
|
|
// Optional services, set to true to enable.
|
2019-04-10 08:37:35 +00:00
|
|
|
define('RASPI_WIFICLIENT_ENABLED', true);
|
|
|
|
define('RASPI_HOTSPOT_ENABLED', true);
|
|
|
|
define('RASPI_NETWORK_ENABLED', true);
|
|
|
|
define('RASPI_DHCP_ENABLED', true);
|
2020-03-31 21:54:46 +00:00
|
|
|
define('RASPI_ADBLOCK_ENABLED', false);
|
2022-04-10 18:09:23 +00:00
|
|
|
define('RASPI_OPENVPN_ENABLED', false);
|
2023-10-12 17:19:15 +00:00
|
|
|
define('RASPI_VPN_PROVIDER_ENABLED', false);
|
2020-04-20 10:05:15 +00:00
|
|
|
define('RASPI_WIREGUARD_ENABLED', false);
|
2019-04-10 08:37:35 +00:00
|
|
|
define('RASPI_TORPROXY_ENABLED', false);
|
|
|
|
define('RASPI_CONFAUTH_ENABLED', true);
|
|
|
|
define('RASPI_CHANGETHEME_ENABLED', true);
|
|
|
|
define('RASPI_VNSTAT_ENABLED', true);
|
2019-11-08 08:20:47 +00:00
|
|
|
define('RASPI_SYSTEM_ENABLED', true);
|
2022-04-10 18:09:23 +00:00
|
|
|
define('RASPI_MONITOR_ENABLED', false);
|
2024-02-19 08:12:33 +00:00
|
|
|
define('RASPI_RESTAPI_ENABLED', false);
|
2017-10-29 04:31:51 +00:00
|
|
|
|
2018-05-27 08:45:34 +00:00
|
|
|
// Locale settings
|
|
|
|
define('LOCALE_ROOT', 'locale');
|
2019-04-10 08:37:35 +00:00
|
|
|
define('LOCALE_DOMAIN', 'messages');
|