summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bmcweb.socket.in (renamed from bmcweb.socket)2
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt1
3 files changed, 5 insertions, 3 deletions
diff --git a/bmcweb.socket b/bmcweb.socket.in
index 8782e4dd3c..68123f8b4f 100644
--- a/bmcweb.socket
+++ b/bmcweb.socket.in
@@ -2,7 +2,7 @@
Description=BMC Webserver socket
[Socket]
-ListenStream=443
+ListenStream=@HTTPS_PORT@
ReusePort=true
[Install]
diff --git a/meson.build b/meson.build
index cf1bc3cbc7..bdc514bdc2 100644
--- a/meson.build
+++ b/meson.build
@@ -361,6 +361,7 @@ conf_data.set('BMCWEB_HTTP_REQ_BODY_LIMIT_MB', get_option('http-body-limit'))
xss_enabled = get_option('insecure-disable-xss')
conf_data.set10('BMCWEB_INSECURE_DISABLE_XSS_PREVENTION', xss_enabled.enabled())
conf_data.set('MESON_INSTALL_PREFIX', get_option('prefix'))
+conf_data.set('HTTPS_PORT', get_option('https_port'))
configure_file(input: 'bmcweb_config.h.in',
output: 'bmcweb_config.h',
configuration: conf_data)
@@ -377,10 +378,10 @@ summary({
'systemd unit directory' : systemd_system_unit_dir
}, section : 'Directories')
-configure_file(input : 'bmcweb.socket',
+configure_file(input : 'bmcweb.socket.in',
output : 'bmcweb.socket',
- copy : true,
install_dir: systemd_system_unit_dir,
+ configuration: conf_data,
install : true)
configure_file(input : 'bmcweb.service.in',
diff --git a/meson_options.txt b/meson_options.txt
index b938e82e16..0ab31b87f7 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -30,6 +30,7 @@ option('ibm-management-console', type : 'feature', value : 'disabled', descripti
option('http-body-limit', type: 'integer', min : 0, max : 512, value : 30, description : 'Specifies the http request body length limit')
option('redfish-allow-deprecated-hostname-patch', type : 'feature', value : 'disabled', description : 'Enable/disable Managers/bmc/NetworkProtocol HostName PATCH commands. The default condition is to prevent HostName changes from this URI, following the Redfish schema. Enabling this switch permits the HostName to be PATCHed at this URI. In Q4 2021 this feature will be removed, and the Redfish schema enforced, making the HostName read-only.')
option('redfish-allow-deprecated-power-thermal', type : 'feature', value : 'enabled', description : 'Enable/disable the old Power / Thermal. The default condition is allowing the old Power / Thermal.')
+option ('https_port', type : 'integer', min : 1, max : 65535, value : 443, description : 'HTTPS Port number.')
# Insecure options. Every option that starts with a `insecure` flag should
# not be enabled by default for any platform, unless the author fully comprehends