Add node_hierarchy config to srv03 updates

This commit is contained in:
Alexander Dietrich 2017-09-01 21:32:33 +02:00
parent d24285cfc3
commit 7119b0f8f5

View file

@ -1,3 +1,5 @@
include /etc/nginx/include/node_hierarchy.conf;
server { server {
listen 443 ssl; listen 443 ssl;
listen [::]:443 ssl; listen [::]:443 ssl;
@ -9,10 +11,20 @@ server {
root /var/www/updates; root /var/www/updates;
if ($ffhh-sued) {
rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2;
}
location / { location / {
include /etc/nginx/include/headers_hsts.conf; include /etc/nginx/include/headers_hsts.conf;
include /etc/nginx/include/listing.conf; include /etc/nginx/include/listing.conf;
} }
location = /config {
root /etc/nginx/include;
try_files /node_hierarchy.conf =404;
default_type text/plain;
}
} }
# Kein HTTPS Redirect wg. Paketinstallation auf Routern # Kein HTTPS Redirect wg. Paketinstallation auf Routern
@ -24,6 +36,10 @@ server {
root /var/www/updates; root /var/www/updates;
if ($ffhh-sued) {
rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2;
}
location / { location / {
include /etc/nginx/include/listing.conf; include /etc/nginx/include/listing.conf;
} }
@ -41,6 +57,10 @@ server {
root /var/www/updates; root /var/www/updates;
if ($ffhh-sued) {
rewrite ^/(beta|experimental|stable)/(.*)$ /ffhh-sued/$1/$2;
}
location / { location / {
include /etc/nginx/include/listing.conf; include /etc/nginx/include/listing.conf;
} }