Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3717337
D2846.id7254.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
8 KB
Referenced Files
None
Subscribers
None
D2846.id7254.diff
View Options
diff --git a/roles/paas-docker/nginx/files/vhosts/_default.conf b/roles/paas-docker/nginx/files/vhosts/_default.conf
--- a/roles/paas-docker/nginx/files/vhosts/_default.conf
+++ b/roles/paas-docker/nginx/files/vhosts/_default.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/acme_dns.conf b/roles/paas-docker/nginx/files/vhosts/acme_dns.conf
--- a/roles/paas-docker/nginx/files/vhosts/acme_dns.conf
+++ b/roles/paas-docker/nginx/files/vhosts/acme_dns.conf
@@ -57,6 +57,7 @@
}
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/auth-grove.conf b/roles/paas-docker/nginx/files/vhosts/auth-grove.conf
--- a/roles/paas-docker/nginx/files/vhosts/auth-grove.conf
+++ b/roles/paas-docker/nginx/files/vhosts/auth-grove.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/bugzilla.conf b/roles/paas-docker/nginx/files/vhosts/bugzilla.conf
--- a/roles/paas-docker/nginx/files/vhosts/bugzilla.conf
+++ b/roles/paas-docker/nginx/files/vhosts/bugzilla.conf
@@ -36,6 +36,7 @@
rewrite ^/([0-9]+)$ /show_bug.cgi?id=$1;
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/cachet.conf b/roles/paas-docker/nginx/files/vhosts/cachet.conf
--- a/roles/paas-docker/nginx/files/vhosts/cachet.conf
+++ b/roles/paas-docker/nginx/files/vhosts/cachet.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/hauk.conf b/roles/paas-docker/nginx/files/vhosts/hauk.conf
--- a/roles/paas-docker/nginx/files/vhosts/hauk.conf
+++ b/roles/paas-docker/nginx/files/vhosts/hauk.conf
@@ -34,20 +34,21 @@
ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/{{ fqdn }}/privkey.pem;
- add_header Referrer-Policy same-origin always;
- add_header X-Frame-Options DENY always;
- add_header X-Content-Type-Options nosniff always;
- add_header X-XSS-Protection "1; mode=block" always;
- add_header X-Robots-Tag "noindex, nofollow" always;
-
include includes/letsencrypt;
location {{ args['api_entry_point'] }}/ {
+ add_header Referrer-Policy same-origin always;
+ add_header X-Frame-Options DENY always;
+ add_header X-Content-Type-Options nosniff always;
+ add_header X-XSS-Protection "1; mode=block" always;
+ add_header X-Robots-Tag "noindex, nofollow" always;
+
rewrite ^{{ args['api_entry_point'] }}(/.*)$ $1 break;
- proxy_redirect off;
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
+ proxy_redirect off;
}
root /var/wwwroot-502/_default;
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
@@ -33,10 +33,10 @@
include includes/letsencrypt;
location / {
- proxy_redirect http:// https://;
proxy_pass http://localhost:{{ app_port }};
include includes/proxy_params;
+ proxy_redirect http:// https://;
# Required for new HTTP-based CLI
# https://wiki.jenkins.io/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy
diff --git a/roles/paas-docker/nginx/files/vhosts/notifications.conf b/roles/paas-docker/nginx/files/vhosts/notifications.conf
--- a/roles/paas-docker/nginx/files/vhosts/notifications.conf
+++ b/roles/paas-docker/nginx/files/vhosts/notifications.conf
@@ -33,6 +33,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/openfire.conf b/roles/paas-docker/nginx/files/vhosts/openfire.conf
--- a/roles/paas-docker/nginx/files/vhosts/openfire.conf
+++ b/roles/paas-docker/nginx/files/vhosts/openfire.conf
@@ -38,6 +38,7 @@
location / {
proxy_pass http://{{ args['ip'] }}:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/phabricator.conf b/roles/paas-docker/nginx/files/vhosts/phabricator.conf
--- a/roles/paas-docker/nginx/files/vhosts/phabricator.conf
+++ b/roles/paas-docker/nginx/files/vhosts/phabricator.conf
@@ -41,6 +41,7 @@
include includes/proxy_params;
proxy_redirect off;
+
location / {
proxy_pass http://localhost:{{ app_port }};
}
@@ -51,6 +52,7 @@
location = /ws/ {
proxy_pass http://localhost:22280;
+
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@@ -84,10 +86,11 @@
include includes/letsencrypt;
- include includes/proxy_params;
- proxy_redirect off;
location / {
proxy_pass http://localhost:{{ app_port }};
+
+ include includes/proxy_params;
+ proxy_redirect off;
}
}
@@ -115,10 +118,11 @@
include includes/letsencrypt;
- include includes/proxy_params;
- proxy_redirect off;
location / {
proxy_pass http://localhost:{{ app_port }};
+
+ include includes/proxy_params;
+ proxy_redirect off;
}
# Fixes invalid URLs resolved to phame instead of DevCentral
diff --git a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
--- a/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
+++ b/roles/paas-docker/nginx/files/vhosts/pixelfed.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/rabbitmq.conf b/roles/paas-docker/nginx/files/vhosts/rabbitmq.conf
--- a/roles/paas-docker/nginx/files/vhosts/rabbitmq.conf
+++ b/roles/paas-docker/nginx/files/vhosts/rabbitmq.conf
@@ -38,6 +38,7 @@
location / {
proxy_pass http://{{ args['ip'] }}:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
diff --git a/roles/paas-docker/nginx/files/vhosts/registry.conf b/roles/paas-docker/nginx/files/vhosts/registry.conf
--- a/roles/paas-docker/nginx/files/vhosts/registry.conf
+++ b/roles/paas-docker/nginx/files/vhosts/registry.conf
@@ -43,6 +43,7 @@
chunked_transfer_encoding on;
proxy_pass http://localhost:{{ app_port }};
+
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
diff --git a/roles/paas-docker/nginx/files/vhosts/sentry.conf b/roles/paas-docker/nginx/files/vhosts/sentry.conf
--- a/roles/paas-docker/nginx/files/vhosts/sentry.conf
+++ b/roles/paas-docker/nginx/files/vhosts/sentry.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
@@ -45,5 +46,4 @@
root /var/wwwroot-502/_default;
error_page 502 /502.html;
location /502.html {}
-
}
diff --git a/roles/paas-docker/nginx/files/vhosts/tommy.conf b/roles/paas-docker/nginx/files/vhosts/tommy.conf
--- a/roles/paas-docker/nginx/files/vhosts/tommy.conf
+++ b/roles/paas-docker/nginx/files/vhosts/tommy.conf
@@ -34,6 +34,7 @@
location / {
proxy_pass http://localhost:{{ app_port }};
+
include includes/proxy_params;
proxy_redirect off;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 03:32 (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232523
Default Alt Text
D2846.id7254.diff (8 KB)
Attached To
Mode
D2846: Reformat paas-docker nginx configuration files for vhosts
Attached
Detach File
Event Timeline
Log In to Comment