Skip to content
Snippets Groups Projects
Commit 97403c70 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

jenkins: proxy websocket urls

parent 021ca41b
No related branches found
No related tags found
No related merge requests found
......@@ -4154,6 +4154,8 @@ grafana::objects::datasources:
java::distribution: jre
jenkins::backend::url: http://thyssen.internal.softwareheritage.org:8080/
jenkins::backend::ws_url: ws://thyssen.internal.softwareheritage.org:8080/
jenkins::url: "https://%{lookup('jenkins::vhost::name')}"
jenkins::vhost::name: jenkins.softwareheritage.org
......
class profile::jenkins::reverse_proxy {
include ::profile::apache::mod_proxy_wstunnel
$jenkins_ws_url = lookup('jenkins::backend::ws_url')
$jenkins_vhost_name = lookup('jenkins::vhost::name')
::profile::reverse_proxy {'jenkins':
default_proxy_pass_opts => {
......@@ -7,6 +11,12 @@ class profile::jenkins::reverse_proxy {
extra_apache_opts => {
allow_encoded_slashes => 'nodecode',
},
extra_proxy_pass => [
{ path => '/wsagents',
url => "${jenkins_ws_url}wsagents",
keywords => ['nocanon'],
},
],
}
profile::prometheus::export_scrape_config {"jenkins_${jenkins_vhost_name}":
......
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