|
@@ -5,15 +5,18 @@ if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
|
|
// --- Constants definitions ---
|
|
// --- Constants definitions ---
|
|
|
|
|
|
// Public IP adresses (shown on the interface)
|
|
// Public IP adresses (shown on the interface)
|
|
-define("IPV4_ADDRESS", "127.0.0.1");
|
|
|
|
define("IPV6_ADDRESS", "::1");
|
|
define("IPV6_ADDRESS", "::1");
|
|
|
|
+define("IPV4_ADDRESS", "127.0.0.1");
|
|
|
|
+
|
|
|
|
+define("HTTPS_PORT", "42443");
|
|
|
|
+define("INTERNAL_ONION_HTTP_PORT", "9080");
|
|
|
|
|
|
define("ORIGIN", "https://niver.test:42443");
|
|
define("ORIGIN", "https://niver.test:42443");
|
|
define("REGISTRY", "niver.test.");
|
|
define("REGISTRY", "niver.test.");
|
|
|
|
|
|
// Example IP adresses (for placeholders)
|
|
// Example IP adresses (for placeholders)
|
|
-define("IPV4_EXAMPLE", "203.0.113.42"); // See RFC5737: IPv4 Address Blocks Reserved for Documentation
|
|
|
|
define("IPV6_EXAMPLE", "2001:db8::3"); // See RFC3849: IPv6 Address Prefix Reserved for Documentation
|
|
define("IPV6_EXAMPLE", "2001:db8::3"); // See RFC3849: IPv6 Address Prefix Reserved for Documentation
|
|
|
|
+define("IPV4_EXAMPLE", "203.0.113.42"); // See RFC5737: IPv4 Address Blocks Reserved for Documentation
|
|
define("DOMAIN_EXAMPLE", "example"); // From RFC2606: Reserved Top Level DNS Names > 2. TLDs for Testing, & Documentation Examples
|
|
define("DOMAIN_EXAMPLE", "example"); // From RFC2606: Reserved Top Level DNS Names > 2. TLDs for Testing, & Documentation Examples
|
|
|
|
|
|
// Custom Niver paths
|
|
// Custom Niver paths
|
|
@@ -22,7 +25,7 @@ define("ROOT_PATH", "/var/www/niver" . PREFIX); // Niver's directory
|
|
define("SERVICE", substr(dirname($_SERVER['PHP_SELF']), strlen(PREFIX) + 1));
|
|
define("SERVICE", substr(dirname($_SERVER['PHP_SELF']), strlen(PREFIX) + 1));
|
|
define("PAGE", basename($_SERVER['PHP_SELF'], '.php'));
|
|
define("PAGE", basename($_SERVER['PHP_SELF'], '.php'));
|
|
define("DB_PATH", ROOT_PATH . "/db/niver.db"); // Niver's SQLite database
|
|
define("DB_PATH", ROOT_PATH . "/db/niver.db"); // Niver's SQLite database
|
|
-define("NIVER_TEMPLATE_PATH", "/usr/local/share/niver"); // Templates directory (skel, nginx, knot...)
|
|
|
|
|
|
+define("NIVER_TEMPLATE_PATH", "/usr/local/share/niver"); // Templates directory (nginx, knot...)
|
|
define("MANIVER_PATH", "/usr/local/bin/maniver"); // Executable file
|
|
define("MANIVER_PATH", "/usr/local/bin/maniver"); // Executable file
|
|
define("HT_PATH", "/srv/ht"); // The mountpoint of the hypertext storage partition (that will be accessed over SFTP)
|
|
define("HT_PATH", "/srv/ht"); // The mountpoint of the hypertext storage partition (that will be accessed over SFTP)
|
|
// Nginx
|
|
// Nginx
|
|
@@ -31,7 +34,7 @@ define("NGINX_CONFIG_PATH", "/etc/nginx/ht"); // Nginx configuration directory
|
|
define("TOR_CONFIG_PATH", "/etc/tor/instances/niver/torrc"); // Tor configuration file
|
|
define("TOR_CONFIG_PATH", "/etc/tor/instances/niver/torrc"); // Tor configuration file
|
|
define("TOR_KEYS_PATH", "/var/lib/tor-instances/niver/keys"); // Tor keys directory
|
|
define("TOR_KEYS_PATH", "/var/lib/tor-instances/niver/keys"); // Tor keys directory
|
|
// Knot
|
|
// Knot
|
|
-define("KNOT_ZONES_PATH", "/var/lib/knot/zones"); // Knot zones directory
|
|
|
|
|
|
+define("KNOT_ZONES_PATH", "/srv/ns"); // Knot zones directory
|
|
// Executable files (you can get the full path of a command with $ which <command>)
|
|
// Executable files (you can get the full path of a command with $ which <command>)
|
|
define("KNOTC_PATH", "/usr/sbin/knotc");
|
|
define("KNOTC_PATH", "/usr/sbin/knotc");
|
|
define("KEYMGR_PATH", "/usr/sbin/keymgr");
|
|
define("KEYMGR_PATH", "/usr/sbin/keymgr");
|