1# Gather the Configuration data 2 3conf_data = configuration_data() 4conf_data.set('BMCWEB_HTTP_REQ_BODY_LIMIT_MB', get_option('http-body-limit')) 5xss_enabled = get_option('insecure-disable-xss') 6conf_data.set10('BMCWEB_INSECURE_DISABLE_XSS_PREVENTION', xss_enabled.allowed()) 7enable_redfish_query = get_option('insecure-enable-redfish-query') 8conf_data.set10('BMCWEB_INSECURE_ENABLE_QUERY_PARAMS', enable_redfish_query.allowed()) 9# enable_redfish_aggregation = get_option('redfish-aggregation') 10# conf_data.set10('BMCWEB_ENABLE_REDFISH_AGGREGATION', enable_redfish_aggregation.allowed()) 11insecure_push_style_notification = get_option('insecure-push-style-notification') 12conf_data.set10('BMCWEB_INSECURE_ENABLE_HTTP_PUSH_STYLE_EVENTING', insecure_push_style_notification.allowed()) 13conf_data.set('MESON_INSTALL_PREFIX', get_option('prefix')) 14conf_data.set('HTTPS_PORT', get_option('https_port')) 15enable_multi_host = get_option('experimental-redfish-multi-computer-system') 16conf_data.set10('BMCWEB_ENABLE_MULTI_HOST', enable_multi_host.allowed()) 17enable_http2 = get_option('experimental-http2') 18conf_data.set10('BMCWEB_ENABLE_HTTP2', enable_http2.allowed()) 19conf_data.set10('BMCWEB_ENABLE_MTLS_COMMON_NAME_PARSING_META', get_option('mutual-tls-common-name-parsing') == 'meta') 20 21 22# Logging level 23loglvlopt = get_option('bmcweb-logging') 24if get_option('buildtype').startswith('debug') and loglvlopt == 'disabled' 25 # Override logging level as 'debug' if 'bmcweb-logging' is set as 'dsiabled' 26 loglvlopt = 'debug' 27endif 28loglvlopt = loglvlopt.to_upper() 29conf_data.set('BMCWEB_LOGGING_LEVEL', loglvlopt) 30 31conf_h_dep = declare_dependency( 32 include_directories: include_directories('.'), 33 sources: configure_file( 34 input: 'bmcweb_config.h.in', 35 output: 'bmcweb_config.h', 36 configuration: conf_data 37 ) 38) 39 40# Configure and install systemd unit files 41 42configure_file(input : 'bmcweb.socket.in', 43 output : 'bmcweb.socket', 44 install_dir: systemd_system_unit_dir, 45 configuration: conf_data, 46 install : true) 47 48configure_file(input : 'bmcweb.service.in', 49 output : 'bmcweb.service', 50 install_dir: systemd_system_unit_dir, 51 configuration: conf_data, 52 install : true) 53 54# Copy pam-webserver to etc/pam.d 55install_data( 56 'pam-webserver', 57 install_dir: '/etc/pam.d/', 58 rename: 'webserver', 59) 60