Skip to content
Snippets Groups Projects
Commit 9f8bb6c08261 authored by DJ Mountney's avatar DJ Mountney
Browse files

Nginx build with security headers module

parent 5d3dc17a6cb8
No related branches found
No related tags found
2 merge requests!51Validate shift of Heptapod 0.25 to oldstable series,!41GitLab 13.12
......@@ -73,6 +73,9 @@
nginx-module-vts:
remote: "git@dev.gitlab.org:omnibus-mirror/nginx-module-vts.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/nginx-module-vts.git"
ngx_security_headers:
remote: "git@dev.gitlab.org:omnibus-mirror/ngx_security_headers.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/ngx_security_headers.git"
grafana-dashboards:
remote: "git@dev.gitlab.org:omnibus-mirror/grafana-dashboards.git"
alternative: "https://gitlab.com/gitlab-org/grafana-dashboards.git"
......
......@@ -33,6 +33,8 @@
# Include the nginx-module-vts for metrics.
dependency 'nginx-module-vts'
dependency 'ngx_security_headers'
version '1.18.0' do
source sha256: '4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99'
end
......@@ -53,6 +55,7 @@
'--with-ipv6',
'--with-debug',
"--add-module=#{Omnibus::Config.source_dir}/nginx-module-vts",
"--add-module=#{Omnibus::Config.source_dir}/ngx_security_headers",
"--with-ld-opt=-L#{install_dir}/embedded/lib",
"--with-cc-opt=\"-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include\""].join(' ')
command "make -j #{workers}", env: { 'LD_RUN_PATH' => "#{install_dir}/embedded/lib" }
......
#
# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc.
# Copyright:: Copyright (c) 2021 GitLab B.V.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
require "#{Omnibus::Config.project_root}/lib/gitlab/version"
name 'nginx-module-vts'
version = Gitlab::Version.new('ngx_security_headers', '0.0.9')
default_version version.print
license 'BSD-2-Clause'
license_file 'LICENSE'
skip_transitive_dependency_licensing true
source git: version.remote
# This is a source-only package for nginx.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment