From 68e9f5900b2a7eb42f60e7818da186e950f285b4 Mon Sep 17 00:00:00 2001 From: fernao <19313288+fvellozo@users.noreply.github.com> Date: Wed, 17 Jun 2020 13:31:05 -0300 Subject: [PATCH] Initial Commit --- nginx/extra/headers-gzip.conf | 20 ++ nginx/extra/php-fpm.conf | 7 + nginx/extra/restrictions.conf | 39 ++++ nginx/nginx.conf | 25 +++ nginx/sites-available/000_static_root.conf | 43 ++++ nginx/ssl/default.conf | 17 ++ nginx/subfolders/phpmyadmin.conf | 16 ++ nginx/subfolders/phppgadmin.conf | 16 ++ nginx/subfolders/phpredisadmin.conf | 16 ++ php-admin/mysql.conf | 155 ++++++++++++++ php-admin/postfix.conf | 22 ++ php-admin/postgres.conf | 175 ++++++++++++++++ php-admin/redis.conf | 85 ++++++++ php-admin/virtualbox.conf | 228 +++++++++++++++++++++ 14 files changed, 864 insertions(+) create mode 100644 nginx/extra/headers-gzip.conf create mode 100644 nginx/extra/php-fpm.conf create mode 100644 nginx/extra/restrictions.conf create mode 100644 nginx/nginx.conf create mode 100644 nginx/sites-available/000_static_root.conf create mode 100644 nginx/ssl/default.conf create mode 100644 nginx/subfolders/phpmyadmin.conf create mode 100644 nginx/subfolders/phppgadmin.conf create mode 100644 nginx/subfolders/phpredisadmin.conf create mode 100644 php-admin/mysql.conf create mode 100644 php-admin/postfix.conf create mode 100644 php-admin/postgres.conf create mode 100644 php-admin/redis.conf create mode 100644 php-admin/virtualbox.conf diff --git a/nginx/extra/headers-gzip.conf b/nginx/extra/headers-gzip.conf new file mode 100644 index 0000000..2a8caa7 --- /dev/null +++ b/nginx/extra/headers-gzip.conf @@ -0,0 +1,20 @@ +### gzip + compression global rules +### to be included a single time throughout this nginx instance +### headers rules are also consolidated here + +gzip on; +gzip_disable "msie6"; +gzip_vary on; +gzip_proxied any; +gzip_comp_level 6; +gzip_min_length 1100; +gzip_buffers 16 8k; +gzip_http_version 1.1; +gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + +# Enable HSTS. This forces SSL on clients that respect it, most modern browsers. The includeSubDomains flag is optional. +add_header Strict-Transport-Security "max-age=31536000;includeSubDomains"; + +## Header hardening +add_header X-Frame-Options "SAMEORIGIN"; +add_header X-XSS-Protection "1; mode=block"; diff --git a/nginx/extra/php-fpm.conf b/nginx/extra/php-fpm.conf new file mode 100644 index 0000000..e32d741 --- /dev/null +++ b/nginx/extra/php-fpm.conf @@ -0,0 +1,7 @@ + +location ~ \.php$ { + include fastcgi_params; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; +} diff --git a/nginx/extra/restrictions.conf b/nginx/extra/restrictions.conf new file mode 100644 index 0000000..9117a40 --- /dev/null +++ b/nginx/extra/restrictions.conf @@ -0,0 +1,39 @@ +# Global restrictions configuration file +# Designed to be included in any server {} block + +## Disable TRACE, DELETE, PUT, OPTIONS modes +if ($request_method !~ ^(GET|HEAD|POST)$ ) { + return 405; +} + +location = /favicon.ico { + log_not_found off; + access_log off; +} + +location = /robots.txt { + allow all; + log_not_found off; + access_log off; +} + +# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). +# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban) +location ~ /\. { + access_log off; + log_not_found off; + deny all; +} + +location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { + access_log off; + log_not_found off; + expires 360d; +} + +# Deny access to any files with a .php extension in the uploads directory +# Works in sub-directory installs and also in multisite network +# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban) +location ~* /(?:uploads|files)/.*\.php$ { + deny all; +} diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..2f4ebf3 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,25 @@ +user http; +worker_processes 4; +#pid /run/nginx.pid; + +events { + worker_connections 2048; +} + +http { + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + types_hash_bucket_size 128; + server_tokens off; + default_type application/octet-stream; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + include /etc/nginx/extra/headers-gzip.conf; + include /etc/nginx/mime.types; + include /etc/nginx/sites-enabled/*; +} diff --git a/nginx/sites-available/000_static_root.conf b/nginx/sites-available/000_static_root.conf new file mode 100644 index 0000000..1106165 --- /dev/null +++ b/nginx/sites-available/000_static_root.conf @@ -0,0 +1,43 @@ +server { + listen 80; + server_name CHANGE-ME; + rewrite ^(.*) https://****CHANGE-ME****$1 permanent; +} + +server { + server_name CHANGE-ME.lan.uw; + access_log /var/log/nginx/CHANGE-ME_access.log; + error_log /var/log/nginx/CHANGE-ME_error.log; + index index.html index.php index.htm; + + include /etc/nginx/ssl/default.conf; + include /etc/nginx/extra/php-fpm.conf; + include /etc/nginx/extra/restrictions.conf; + + root /var/www/CHANGE-ME; + location / { + try_files $uri $uri/ /index.php; + + location ~ \.php$ { + include fastcgi_params; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + } + + } + +# Static site subfolders +# include /etc/nginx/subfolders/hugo.conf; +# include /etc/nginx/subfolders/sphinx.conf; +# PHP applications +# include /etc/nginx/subfolders/wordpress.conf; +# include /etc/nginx/subfolders/nextcloud.conf; +# include /etc/nginx/subfolders/phpmyadmin.conf; +# include /etc/nginx/subfolders/phpredisadmin.conf; +# include /etc/nginx/subfolders/php-vbox.conf; +# include /etc/nginx/subfolders/phppgadmin.conf; +# include /etc/nginx/subfolders/postfixadmin.conf; + +} ## end server block ## + diff --git a/nginx/ssl/default.conf b/nginx/ssl/default.conf new file mode 100644 index 0000000..43c23cf --- /dev/null +++ b/nginx/ssl/default.conf @@ -0,0 +1,17 @@ +# listens both on IPv4 and IPv6 on 443 and enables HTTPS and HTTP/2 support. +# HTTP/2 is available in nginx 1.9.5 and above. +listen *:443 ssl http2; +#listen [::]:443 ssl http2; + +##ssl on; ## deprecated +ssl_session_cache shared:SSL:20m; +ssl_session_timeout 10m; +ssl_protocols TLSv1.2; +ssl_prefer_server_ciphers on; + +ssl_certificate /etc/nginx/ssl/server.crt; +ssl_certificate_key /etc/nginx/ssl/server.key; +ssl_dhparam /etc/nginx/ssl/dhparams.pem; + +ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384: DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:!DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!CBC:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; + diff --git a/nginx/subfolders/phpmyadmin.conf b/nginx/subfolders/phpmyadmin.conf new file mode 100644 index 0000000..f072d86 --- /dev/null +++ b/nginx/subfolders/phpmyadmin.conf @@ -0,0 +1,16 @@ +#### PHP MY ADMIN SUBFOLDER #### + location /phpmyadmin { + alias /usr/share/webapps/phpMyAdmin; + try_files $uri $uri/ @pma; + index index.php; + access_log /var/log/nginx/phpmyadmin_access.log; + error_log /var/log/nginx/phpmyadmin_error.log; + + include /etc/nginx/extra/php-fpm.conf; + + location ~ ^/phpmyadmin/(.*\.(js|css|gif|jpg|png|ico))$ { + alias /usr/share/webapps/phpMyAdmin/$1; + } + } + + location @pma { rewrite /phpmyadmin/(.*)$ /phpmyadmin$request_uri last; } diff --git a/nginx/subfolders/phppgadmin.conf b/nginx/subfolders/phppgadmin.conf new file mode 100644 index 0000000..8e30e23 --- /dev/null +++ b/nginx/subfolders/phppgadmin.conf @@ -0,0 +1,16 @@ +#### PHP POSTGRES ADMIN SUBFOLDER #### + location /phppgadmin { + alias /usr/share/webapps/phppgadmin; + try_files $uri $uri/ @ppg; + index index.php; + access_log /var/log/nginx/phppgadmin_access.log; + error_log /var/log/nginx/phppgadmin_error.log; + + include /etc/nginx/extra/php-fpm.conf; + + location ~ ^/phppgadmin/(.*\.(js|css|gif|jpg|png|ico))$ { + alias /usr/share/webapps/phppgadmin/$1; + } + } + + location @ppg { rewrite /phppgadmin/(.*)$ /phppgadmin$request_uri last; } diff --git a/nginx/subfolders/phpredisadmin.conf b/nginx/subfolders/phpredisadmin.conf new file mode 100644 index 0000000..d2af7a5 --- /dev/null +++ b/nginx/subfolders/phpredisadmin.conf @@ -0,0 +1,16 @@ +#### PHP REDIS ADMIN SUBFOLDER #### + location /phpredisadmin { + alias /usr/share/webapps/phpRedisAdmin; + try_files $uri $uri/ @pra; + index index.php; + access_log /var/log/nginx/phpredisadmin_access.log; + error_log /var/log/nginx/phpredisadmin_error.log; + + include /etc/nginx/extra/php-fpm.conf; + + location ~ ^/phpredisadmin/(.*\.(js|css|gif|jpg|png|ico))$ { + alias /usr/share/webapps/phpRedisAdmin/$1; + } + } + + location @pra { rewrite /phpredisadmin/(.*)$ /phpredisadmin$request_uri last; } diff --git a/php-admin/mysql.conf b/php-admin/mysql.conf new file mode 100644 index 0000000..1f09caa --- /dev/null +++ b/php-admin/mysql.conf @@ -0,0 +1,155 @@ +. + * + * @package PhpMyAdmin + */ +declare(strict_types=1); + +/** + * This is needed for cookie based authentication to encrypt password in + * cookie. Needs to be 32 chars long. + */ +$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ + +/** + * Servers configuration + */ +$i = 0; + +/** + * First server + */ +$i++; +/* Authentication type */ +$cfg['Servers'][$i]['auth_type'] = 'cookie'; +/* Server parameters */ +$cfg['Servers'][$i]['host'] = 'localhost'; +$cfg['Servers'][$i]['compress'] = false; +$cfg['Servers'][$i]['AllowNoPassword'] = false; + +/** + * phpMyAdmin configuration storage settings. + */ + +/* User used to manipulate with storage */ +// $cfg['Servers'][$i]['controlhost'] = ''; +// $cfg['Servers'][$i]['controlport'] = ''; +// $cfg['Servers'][$i]['controluser'] = 'pma'; +// $cfg['Servers'][$i]['controlpass'] = 'pmapass'; + +/* Storage database and tables */ +// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; +// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; +// $cfg['Servers'][$i]['relation'] = 'pma__relation'; +// $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; +// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; +// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; +// $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; +// $cfg['Servers'][$i]['history'] = 'pma__history'; +// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; +// $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; +// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; +// $cfg['Servers'][$i]['recent'] = 'pma__recent'; +// $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; +// $cfg['Servers'][$i]['users'] = 'pma__users'; +// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; +// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; +// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; +// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; +// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; +// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; + +/** + * End of servers configuration + */ + +/** + * Directories for saving/loading files from server + */ +$cfg['UploadDir'] = ''; +$cfg['SaveDir'] = ''; + +/** + * Whether to display icons or text or both icons and text in table row + * action segment. Value can be either of 'icons', 'text' or 'both'. + * default = 'both' + */ +//$cfg['RowActionType'] = 'icons'; + +/** + * Defines whether a user should be displayed a "show all (records)" + * button in browse mode or not. + * default = false + */ +//$cfg['ShowAll'] = true; + +/** + * Number of rows displayed when browsing a result set. If the result + * set contains more rows, "Previous" and "Next". + * Possible values: 25, 50, 100, 250, 500 + * default = 25 + */ +//$cfg['MaxRows'] = 50; + +/** + * Disallow editing of binary fields + * valid values are: + * false allow editing + * 'blob' allow editing except for BLOB fields + * 'noblob' disallow editing except for BLOB fields + * 'all' disallow editing + * default = 'blob' + */ +//$cfg['ProtectBinary'] = false; + +/** + * Default language to use, if not browser-defined or user-defined + * (you find all languages in the locale folder) + * uncomment the desired line: + * default = 'en' + */ +//$cfg['DefaultLang'] = 'en'; +//$cfg['DefaultLang'] = 'de'; + +/** + * How many columns should be used for table display of a database? + * (a value larger than 1 results in some information being hidden) + * default = 1 + */ +//$cfg['PropertiesNumColumns'] = 2; + +/** + * Set to true if you want DB-based query history.If false, this utilizes + * JS-routines to display query history (lost by window close) + * + * This requires configuration storage enabled, see above. + * default = false + */ +//$cfg['QueryHistoryDB'] = true; + +/** + * When using DB-based query history, how many entries should be kept? + * default = 25 + */ +//$cfg['QueryHistoryMax'] = 100; + +/** + * Whether or not to query the user before sending the error report to + * the phpMyAdmin team when a JavaScript error occurs + * + * Available options + * ('ask' | 'always' | 'never') + * default = 'ask' + */ +//$cfg['SendErrorReports'] = 'always'; + +/** + * You can find more configuration options in the documentation + * in the doc/ folder or at . + */ diff --git a/php-admin/postfix.conf b/php-admin/postfix.conf new file mode 100644 index 0000000..81a3a7d --- /dev/null +++ b/php-admin/postfix.conf @@ -0,0 +1,22 @@ + 'CHANGE-ME', + 'hostmaster' => 'CHANGE-ME', + 'postmaster' => 'CHANGE-ME', + 'webmaster' => 'CHANGE-ME' +); diff --git a/php-admin/postgres.conf b/php-admin/postgres.conf new file mode 100644 index 0000000..dadd620 --- /dev/null +++ b/php-admin/postgres.conf @@ -0,0 +1,175 @@ + diff --git a/php-admin/redis.conf b/php-admin/redis.conf new file mode 100644 index 0000000..4ecd8ee --- /dev/null +++ b/php-admin/redis.conf @@ -0,0 +1,85 @@ + array( + array( + 'name' => 'local server', // Optional name. + 'host' => '127.0.0.1', + 'port' => 6379, + 'filter' => '*', + 'scheme' => 'tcp', // Optional. Connection scheme. 'tcp' - for TCP connection, 'unix' - for connection by unix domain socket + 'path' => '', // Optional. Path to unix domain socket. Uses only if 'scheme' => 'unix'. Example: '/var/run/redis/redis.sock' + + // Optional Redis authentication. + //'auth' => 'redispasswordhere' // Warning: The password is sent in plain-text to the Redis server. + ), + + /*array( + 'host' => 'localhost', + 'port' => 6380 + ),*/ + + /*array( + 'name' => 'local db 2', + 'host' => 'localhost', + 'port' => 6379, + 'db' => 1, // Optional database number, see http://redis.io/commands/select + 'databases' => 1, // Optional number of databases (prevents use of CONFIG command). + 'filter' => 'something:*', // Show only parts of database for speed or security reasons. + 'seperator' => '/', // Use a different seperator on this database (default uses config default). + 'flush' => false, // Set to true to enable the flushdb button for this instance. + 'charset' => 'cp1251', // Keys and values are stored in redis using this encoding (default utf-8). + 'keys' => false, // Use the old KEYS command instead of SCAN to fetch all keys for this server (default uses config default). + 'scansize' => 1000 // How many entries to fetch using each SCAN command for this server (default uses config default). + ),*/ + ), + + + 'seperator' => ':', + + + // Uncomment to show less information and make phpRedisAdmin fire less commands to the Redis server. Recommended for a really busy Redis server. + //'faster' => true, + + + // Uncomment to enable HTTP authentication + /*'login' => array( + // Username => Password + // Multiple combinations can be used + 'admin' => array( + 'password' => 'adminpassword', + ), + 'guest' => array( + 'password' => '', + 'servers' => array(1) // Optional list of servers this user can access. + ) + ),*/ + + // Use HTML form/cookie-based auth instead of HTTP Basic/Digest auth + 'cookie_auth' => false, + + + /*'serialization' => array( + 'foo*' => array( // Match like KEYS + // Function called when saving to redis. + 'save' => function($data) { return json_encode(json_decode($data)); }, + // Function called when loading from redis. + 'load' => function($data) { return json_encode(json_decode($data), JSON_PRETTY_PRINT); }, + ), + ),*/ + + + // You can ignore settings below this point. + + 'maxkeylen' => 100, + 'count_elements_page' => 100, + + // Use the old KEYS command instead of SCAN to fetch all keys. + 'keys' => false, + + // How many entries to fetch using each SCAN command. + 'scansize' => 1000 +); + +?> diff --git a/php-admin/virtualbox.conf b/php-admin/virtualbox.conf new file mode 100644 index 0000000..6c8a625 --- /dev/null +++ b/php-admin/virtualbox.conf @@ -0,0 +1,228 @@ + Preferences -> Language in + * phpVirtualBox. + */ +var $language = 'en'; + +/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */ +var $vrdeports = '9000-9100'; +/* Set the default VRDE address, e.g. 192.168.1.1 */ +#var $vrdeaddress = '192.168.1.1'; + +/* + * + * Not-so-common options / tweaking + * + */ + +// Multiple servers example config. Uncomment (remove /* and */) to use. +// Add ALL the servers you want to use. Even if you have the server set +// above. The default server will be the first one in the list. +/* +var $servers = array( + array( + 'name' => 'London', + 'username' => 'user', + 'password' => 'pass', + 'location' => 'http://192.168.1.1:18083/', + 'authMaster' => true // Use this server for authentication + ), + array( + 'name' => 'New York', + 'username' => 'user2', + 'password' => 'pass2', + 'location' => 'http://192.168.1.2:18083/' + ), +); +*/ + +// Disable authentication +#var $noAuth = true; + +// Host / ip to use for console connections +#var $consoleHost = '192.168.1.40'; + +// Disable "preview" box +#var $noPreview = true; + +// Default preview box update interval in seconds +#var $previewUpdateInterval = 30; + +// Preview box pixel width +#var $previewWidth = 180; + +// Max number of progress operations to keep in list +var $maxProgressList = 5; + +// Change default preview aspect ratio to 1. +// http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios +#var $previewAspectRatio = 1.6; + +// Enable custom VM icons +#var $enableCustomIcons = true; + +/* +Exclusively use phpVirtualBox's groups configuration rather than VirtualBox groups. +This has the following effects: + +*) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as + VirtualBox and VBoxManage +*) Group changes will not affect which folder a VM is placed in +*) You can rename groups that contain running VMs and move / copy running VMs to groups +*/ +#var $phpVboxGroups = true; + + +/* +Allow to prompt deletion hard disk files on removal from Virtual Media Manager. +If this is not set, files are always kept. If this is set, you will be PROMPTED +to decide whether or not you would like to delete the hard disk file(s) when you +remove a hard disk from virtual media manager. You may still choose not to delete +the file when prompted. +*/ +var $deleteOnRemove = true; + +/* + * File / Folder browser settings + */ + +// Restrict file types +var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd'); + +// Restrict locations / folders +#var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like array('/home/vbox','/var/ISOs') + +// Force use of local, web server based file browser instead of going through vboxwebsrv +#var $browserLocal = true; + +// Disable file / folder browser. +#var $browserDisable = true; + +// Disable Windows drive detection +#var $noWindowsDriveList = true; + +// Just list all drives from C:\ - Z:\ without checking if they exist or not. +// This may be required on older Windows systems with more than one drive. +#var $forceWindowsAllDriveList = true; + +/* + * Misc + */ + +/* + * Auto-refresh interval in seconds for VirtualBox host memory usage information. + * Any value below 3 will be ignored. + */ +var $hostMemInfoRefreshInterval = 5; + +/* Show % of free host memory instead of % used */ +#var $hostMemInfoShowFreePct = true; + +/* + * VM Memory warnings. + * + * If $vmMemoryStartLimitWarn is enabled, each time a VM is started through + * phpVirtualBox, it will check that the available host memory is greater than + * the base and video memory of the VM + 50MB (a little bit of overhead). If it + * is not, a confirmation dialog will be presented to confirm that you want to + * start the VM. + * + * If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset + * megabytes is subtracted from the available host memory before the check is + * performed by $vmMemoryStartLimitWarn logic. For instance it may be a good + * idea to always have VM memory requirements + 100MB free. 100 is the default. + */ +#var $vmMemoryStartLimitWarn = true; +#var $vmMemoryOffset = 100; + + +/* + * Display guest additions version of a running VM on its Details tab + */ +#var $enableGuestAdditionsVersionDisplay = true; + +/* Disable any of phpVirtualBox's main tabs */ +#var $disableTabVMSnapshots = true; // Snapshots tab +#var $disableTabVMConsole = true; // Console tab + +/* Screen resolutions for console tab */ +var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900'); + +/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */ +var $consoleKeyboardLayout = 'EN'; + +/* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */ +var $nicMax = 4; + +/* Enable advanced configuration items (normally hidden in the VirtualBox GUI) + * Note that some of these items may not be translated to languages other than English. + */ +#var $enableAdvancedConfig = true; + +/* Enable startup / shutdown configuration. + * This only works in linux and you must add the vboxinit file to + * your startup scripts list. + */ +#var $startStopConfig = true; + +// Authentication library. +// var $authLib = 'Builtin'; + +// VM ownership +#var $enforceVMOwnership = true; + +// Per-user VM quota +#var $vmQuotaPerUser = 2; + + +// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation! +// If you do not know what VDE networking is - you do not need it, it is probably not supported by your +// VirtualBox installation and will cause errors if enabled. +#var $enableVDE = true; + +// Disable setting SATA controllers port count to the max port number found when saving VMs. +#var $disableSataPortCount = true; + +/* Enable Parallel Port configuration - EXPERIMENTAL +LPT support may or may not work for you. +!!! VirtualBox LPT support only works in Linux. !!! +*/ +#var $enableLPTConfig = true; + +/* Enable HardDisk IgnoreFlush configuration. This controls the "ExtraData" setting + * in "VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush". See + * Responding to guest IDE/SATA flush requests at: + * http://www.virtualbox.org/manual/ch12.html#idp12757424 +*/ +#var $enableHDFlushConfig = true; + +/* + * Event listener timeout in seconds. This is an advanced option that most people will + * probably not need to change. + */ +#var $eventListenerTimeout = 20; + +/* END SETTINGS */ + + +} + + +