-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
ss-constants.txt
99 lines (79 loc) · 6.13 KB
/
ss-constants.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/** ********************************************************************************************* */
/** author: SlickStack ************************************************************************** */
/** link: https://slickstack.io ***************************************************************** */
/** mirror: littlebizzy/slickstack/blob/master/modules/php-fpm/ss-constants.txt ***************** */
/** path: n/a (boilerplate) ********************************************************************* */
/** destination: /var/www/meta/ss-constants.php (after install) ********************************* */
/** purpose: Loads various SlickStack environment variables as PHP defined constants ************ */
/** module version: PHP-FPM 8.3.x *************************************************************** */
/** sourced by: wp-config.php ******************************************************************* */
/** bash aliases: n/a (ss-install-php-config) *************************************************** */
/** ********************************************************************************************* */
/** DO NOT MODIFY SS-CONSTANTS DIRECTLY AS CHANGES WILL BE OVERWRITTEN BY SLICKSTACK */
/** DEVELOPERS CAN USE THESE GENERIC PHP CONSTANTS FOR ANY CUSTOM CODING WORK */
/** ********************************************************************************************* */
/** SS-Constants: General Settings ************************************************************** */
/** ********************************************************************************************* */
/** below are some general PHP constants that reflect SlickStack settings and features */
/** they are set here (not wp-config.php) to prevent clients from changing them */
define( 'WP_CRON_METHOD', '@WP_CRON_METHOD' );
define( 'WP_CRON_INTERVAL', '@WP_CRON_INTERVAL' );
/** ********************************************************************************************* */
/** SS-Constants: System Information ************************************************************ */
/** ********************************************************************************************* */
/** below are several useful system level info about the SlickStack server and modules */
/** much of this is displayed in SlickStack dashboard but might be used elsewhere */
define( 'SYSTEM_VIRTUAL', '@SYSTEM_VIRTUAL' );
define( 'SYSTEM_LINUX_KERNEL', '@SYSTEM_LINUX_KERNEL' );
define( 'SYSTEM_OS_PRETTY_NAME', '@SYSTEM_OS_PRETTY_NAME' );
define( 'SYSTEM_CPU_CORES', '@SYSTEM_CPU_CORES' );
define( 'SYSTEM_DISK_FREE', '@SYSTEM_DISK_FREE' );
define( 'SYSTEM_DISK_FREE_EASY', '@SYSTEM_DISK_FREE_EASY' );
define( 'SYSTEM_DISK_TOTAL', '@SYSTEM_DISK_TOTAL' );
define( 'SYSTEM_DISK_TOTAL_EASY', '@SYSTEM_DISK_TOTAL_EASY' );
define( 'SYSTEM_DISK_USED_PERCENT', '@SYSTEM_DISK_USED_PERCENT' );
define( 'SYSTEM_MYSQL_SIZE', '@SYSTEM_MYSQL_SIZE' ); // delete if using remote database
define( 'SYSTEM_MYSQL_VERSION', '@SYSTEM_MYSQL_VERSION' ); // delete if using remote database
define( 'SYSTEM_IPV4_ADDRESS', '@SYSTEM_IPV4_ADDRESS' );
define( 'SYSTEM_IPV6_ADDRESS', '@SYSTEM_IPV6_ADDRESS' );
define( 'SYSTEM_HOSTNAME', '@SYSTEM_HOSTNAME' );
define( 'SYSTEM_PHP_VERSION', '@SYSTEM_PHP_VERSION' );
define( 'SYSTEM_PHP_EXTENSIONS', '@SYSTEM_PHP_EXTENSIONS' );
define( 'SYSTEM_SERVER_SOFTWARE', '@SYSTEM_SERVER_SOFTWARE' );
/** ********************************************************************************************* */
/** SS-Constants: SFTP Details ****************************************************************** */
/** ********************************************************************************************* */
/** SFTP credentials are saved here so that the SlickStack dashboard can display them */
/** this is useful for less tech-savvy clients who are using SlickStack servers */
define( 'SFTP_USER', '@SFTP_USER' ); // *must be unique*
define( 'SFTP_PASSWORD', '@SFTP_PASSWORD' ); // *must be unique*
define( 'SFTP_PORT', '22' ); // ss = 22
define( 'SFTP_ROOT_DIR', '/var/www' ); // ss = /var/www
define( 'SFTP_PUBLIC_DIR', '/var/www/html' ); // ss = /var/www/html
/** ********************************************************************************************* */
/** SS-Constants: Adminer *********************************************************************** */
/** ********************************************************************************************* */
define( 'ADMINER_PUBLIC', '@ADMINER_PUBLIC' );
/** ********************************************************************************************* */
/** SS-Constants: Whitelabel Branding *********************************************************** */
/** ********************************************************************************************* */
/** these whitelabel options can be used in your custom WordPress plugins or otherwise */
/** by default LittleBizzy branding is used as an example of a web host agency */
define( 'WHITELABEL_BRAND', '@WHITELABEL_BRAND' ); // *must be unique*
define( 'WHITELABEL_HOMEPAGE', '@WHITELABEL_HOMEPAGE' ); // *must be unique*
define( 'WHITELABEL_SUPPORT_URL', '@WHITELABEL_SUPPORT_URL' ); // *must be unique*
define( 'WHITELABEL_SUPPORT_EMAIL', '@WHITELABEL_SUPPORT_EMAIL' ); // *must be unique*
/** ********************************************************************************************* */
/** SS-Constants: Staging + Dev Sites *********************************************************** */
/** ********************************************************************************************* */
define( 'STAGING_SITE_STATUS', '@STAGING_SITE_STATUS' );
define( 'DEV_SITE_STATUS', '@DEV_SITE_STATUS' );
define( 'SYNC_STAGING_SITE_STATUS', '@SYNC_STAGING_SITE_STATUS' );
/** ********************************************************************************************* */
/** SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ************* */
/** ********************************************************************************************* */
// Ref: https://stackoverflow.com/questions/4948663/php-get-bool-to-echo-false-when-false
// Ref: https://pimylifeup.com/php-constants/
// Ref: https://docs.php.earth/security/configuration/
// SS_EOF