Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768054
D2362.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2362.id.diff
View Options
diff --git a/roles/paas-docker/nginx/config.sls b/roles/paas-docker/nginx/config.sls
--- a/roles/paas-docker/nginx/config.sls
+++ b/roles/paas-docker/nginx/config.sls
@@ -76,6 +76,7 @@
fqdn: {{ container['host'] }}
app_port: {{ container['app_port'] }}
aliases: {{ container['aliases'] | default('', true) | join(" ") }}
+ instance: {{ instance }}
# If the nginx configuration needs more key,
# pass directly the container dictionary.
args: {{ container }}
diff --git a/roles/paas-docker/nginx/files/vhosts/jenkins.conf b/roles/paas-docker/nginx/files/vhosts/jenkins.conf
--- a/roles/paas-docker/nginx/files/vhosts/jenkins.conf
+++ b/roles/paas-docker/nginx/files/vhosts/jenkins.conf
@@ -32,17 +32,38 @@
include includes/letsencrypt;
+ ignore_invalid_headers off;
+
location / {
proxy_redirect http:// https://;
proxy_pass http://localhost:{{ app_port }};
include includes/proxy_params;
+ proxy_max_temp_file_size 0;
# Required for new HTTP-based CLI
# https://wiki.jenkins.io/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off; # Required for HTTP-based CLI to work over SSL
+
+ # Required for Jenkins websocket agents
+ proxy_set_header Connection $connection_upgrade;
+ proxy_set_header Upgrade $http_upgrade;
+ }
+
+ location /userContent {
+ # If we move the front-end to another machine,
+ # this block must be removed.
+
+ root /srv/jenkins/{{ instance }}/jenkins_home;
+
+ sendfile on;
+
+ if (!-f $request_filename) {
+ rewrite (.*) /$1 last;
+ break;
+ }
}
root /var/wwwroot-502/_default;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 05:53 (7 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257441
Default Alt Text
D2362.id.diff (1 KB)
Attached To
Mode
D2362: WIP: Improve nginx configuration for Jenkins
Attached
Detach File
Event Timeline
Log In to Comment