Skip to content

Commit d4e9f1b

Browse files
author
Marius Burkard
committed
Merge branch '3.1_proxy_protocol' into 'stable-3.1'
Enable Proxy Protocol - Patch for 3.1 See merge request ispconfig/ispconfig3!933
2 parents f85e377 + 2597d72 commit d4e9f1b

File tree

59 files changed

+207
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+207
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- add new proxy_protocol column
2+
ALTER TABLE `web_domain`
3+
ADD COLUMN `proxy_protocol` ENUM('n','y') NOT NULL DEFAULT 'n' AFTER `log_retention`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,6 +2071,7 @@ CREATE TABLE `web_domain` (
20712071
`https_port` int(11) unsigned NOT NULL DEFAULT '443',
20722072
`folder_directive_snippets` text,
20732073
`log_retention` int(11) NOT NULL DEFAULT '10',
2074+
`proxy_protocol` enum('n','y') NOT NULL default 'n',
20742075
PRIMARY KEY (`domain_id`),
20752076
UNIQUE KEY `serverdomain` ( `server_id` , `ip_address`, `domain` )
20762077
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

interface/web/admin/form/server_config.tform.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,28 @@
820820
'default' => 'n',
821821
'value' => array(0 => 'n',1 => 'y')
822822
),
823+
'vhost_proxy_protocol_enabled' => array (
824+
'datatype' => 'VARCHAR',
825+
'formtype' => 'CHECKBOX',
826+
'default' => 'n',
827+
'value' => array(0 => 'n',1 => 'y')
828+
),
829+
'vhost_proxy_protocol_http_port' => array(
830+
'datatype' => 'VARCHAR',
831+
'formtype' => 'TEXT',
832+
'default' => '880',
833+
'value' => '',
834+
'width' => '40',
835+
'maxlength' => '255'
836+
),
837+
'vhost_proxy_protocol_https_port' => array(
838+
'datatype' => 'VARCHAR',
839+
'formtype' => 'TEXT',
840+
'default' => '8443',
841+
'value' => '',
842+
'width' => '40',
843+
'maxlength' => '255'
844+
),
823845
'vhost_conf_dir' => array(
824846
'datatype' => 'VARCHAR',
825847
'formtype' => 'TEXT',

interface/web/admin/lib/lang/ar_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd User';
306306
$wb['rspamd_password_txt'] = 'Rspamd Password';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

interface/web/admin/lib/lang/bg_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd User';
306306
$wb['rspamd_password_txt'] = 'Rspamd Password';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

interface/web/admin/lib/lang/br_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,6 @@ $wb['content_filter_txt'] = 'Filtro de conteúdo';
305305
$wb['rspamd_url_txt'] = 'URL do rspamd';
306306
$wb['rspamd_user_txt'] = 'Usuário do rspamd';
307307
$wb['rspamd_password_txt'] = 'Senha do rspamd';
308+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
309+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
310+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';

interface/web/admin/lib/lang/ca_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd User';
306306
$wb['rspamd_password_txt'] = 'Rspamd Password';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

interface/web/admin/lib/lang/cz_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd User';
306306
$wb['rspamd_password_txt'] = 'Rspamd Password';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

interface/web/admin/lib/lang/de_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content-Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd-URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd-Benutzer';
306306
$wb['rspamd_password_txt'] = 'Rspamd-Passwort';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

interface/web/admin/lib/lang/dk_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,7 @@ $wb['content_filter_txt'] = 'Content Filter';
304304
$wb['rspamd_url_txt'] = 'Rspamd URL';
305305
$wb['rspamd_user_txt'] = 'Rspamd User';
306306
$wb['rspamd_password_txt'] = 'Rspamd Password';
307+
$wb['vhost_proxy_protocol_enabled_txt'] = 'Enable PROXY Protocol';
308+
$wb['vhost_proxy_protocol_http_port_txt'] = 'PROXY Protocol HTTP Port';
309+
$wb['vhost_proxy_protocol_https_port_txt'] = 'PROXY Protocol HTTPS Port';
307310
?>

0 commit comments

Comments
 (0)