Skip to content

Commit 08401ab

Browse files
l-friebecesmarvin
authored andcommitted
Merge branch 'release/v1.28.0-2'
2 parents 06cb8e9 + f6a5ff4 commit 08401ab

6 files changed

Lines changed: 44 additions & 40 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v1.28.0-2] - 2025-06-17
11+
### Fixed
12+
- [#127] Include default configuration for ces-exporter access in maintenance mode
13+
1014
## [v1.28.0-1] - 2025-06-10
1115
### Changed
1216
- [#125] Upgrade nginx to v1.28.0

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:lts-alpine as templating
22

33
ENV WORKDIR=/template \
44
# Used in template to invalidate caches - do not remove. The release script will auto update this line
5-
VERSION="1.28.0-1"
5+
VERSION="1.28.0-2"
66

77
RUN mkdir -p ${WORKDIR}
88
WORKDIR ${WORKDIR}
@@ -68,11 +68,11 @@ RUN wget --progress=bar:force:noscroll -O /tmp/warp.zip https://github.com/cloud
6868
FROM registry.cloudogu.com/official/base:3.22.0-2
6969
LABEL maintainer="hello@cloudogu.com" \
7070
NAME="official/nginx" \
71-
VERSION="1.28.0-1"
71+
VERSION="1.28.0-2"
7272

7373
ENV CES_MAINTENANCE_MODE=false \
7474
# Used in template to invalidate caches - do not remove. The release script will auto update this line
75-
VERSION="1.28.0-1"
75+
VERSION="1.28.0-2"
7676

7777
RUN set -x -o errexit \
7878
&& set -o nounset \

docs/gui/release_notes_de.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Technische Details zu einem Release finden Sie im zugehörigen [Changelog](https
66

77
## [Unreleased]
88

9+
## [v1.28.0-2] - 2025-06-17
10+
- Wir haben nur technische Änderungen vorgenommen. Näheres finden Sie in den Changelogs.
11+
912
## [v1.28.0-1] - 2025-06-10
1013
- Wir haben nur technische Änderungen vorgenommen. Näheres finden Sie in den Changelogs.
1114

docs/gui/release_notes_en.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Technical details on a release can be found in the corresponding [Changelog](htt
66

77
## [Unreleased]
88

9+
## [v1.28.0-2] - 2025-06-17
10+
- We have only made technical changes. You can find more details in the changelogs.
11+
912
## [v1.28.0-1] - 2025-06-10
1013
- We have only made technical changes. You can find more details in the changelogs.
1114

dogu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/nginx",
3-
"Version": "1.28.0-1",
3+
"Version": "1.28.0-2",
44
"DisplayName": "Nginx",
55
"Description": "Nginx WebServer.",
66
"Logo": "https://cloudogu.com/images/dogus/nginx.png",

resources/etc/ces-confd/templates/app.conf.tpl

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
{{define "service-block"}}
2+
location /{{.Location}} {
3+
{{if eq .HealthStatus "healthy" "" }}
4+
{{ if .Rewrite }}
5+
rewrite ^/{{ .Rewrite.Pattern }}(/|$)(.*) {{ .Rewrite.Rewrite }}/$2 break;
6+
{{end}}
7+
{{ if eq .ProxyBuffering "off" }}proxy_buffering off;{{ end }}
8+
proxy_pass {{.URL}};
9+
{{else}}
10+
error_page 503 /errors/starting.html;
11+
return 503;
12+
{{end}}
13+
}
14+
{{end}}
15+
116
server {
217
include /etc/nginx/include.d/ssl.conf;
318
include /etc/nginx/include.d/errors.conf;
@@ -6,29 +21,6 @@ server {
621
include /etc/nginx/include.d/robots.conf;
722
include /etc/nginx/app.conf.d/*.conf;
823
9-
{{if .Maintenance}}
10-
{{range .Services}}
11-
{{if eq .Location "ces-exporter" }}
12-
# allow ces-exporter access in maintenance mode
13-
location /{{.Location}} {
14-
{{ if .Rewrite }}
15-
rewrite ^/{{ .Rewrite.Pattern }}(/|$)(.*) {{ .Rewrite.Rewrite }}/$2 break;
16-
{{end}}
17-
18-
{{ if eq .ProxyBuffering "off" }}
19-
proxy_buffering off;
20-
{{ end }}
21-
22-
proxy_pass {{.URL}};
23-
}
24-
{{end}}
25-
{{end}}
26-
27-
location / {
28-
return 503;
29-
}
30-
{{else}}
31-
3224
# default proxy settings
3325
proxy_set_header Host $http_host;
3426
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -47,29 +39,31 @@ server {
4739
4840
proxy_read_timeout 1d;
4941
50-
5142
# disable gzip encoding for proxy applications
5243
proxy_set_header Accept-Encoding identity;
5344
45+
{{if .Maintenance}}
46+
{{range .Services}}
47+
{{if eq .Location "ces-exporter" }}
48+
# allow ces-exporter access in maintenance mode
49+
{{template "service-block" .}}
50+
{{end}}
51+
{{end}}
52+
53+
# show 503 for all other services in maintenance mode
54+
location / {
55+
return 503;
56+
}
57+
{{else}}
58+
5459
include /etc/nginx/include.d/info.conf;
5560
include /etc/nginx/include.d/subfilters.conf;
5661
include /etc/nginx/include.d/default-dogu.conf;
5762
include /etc/nginx/include.d/customhtml.conf;
5863
5964
# services
6065
{{range .Services}}
61-
location /{{.Location}} {
62-
{{if eq .HealthStatus "healthy" "" }}
63-
{{ if .Rewrite }}
64-
rewrite ^/{{ .Rewrite.Pattern }}(/|$)(.*) {{ .Rewrite.Rewrite }}/$2 break;
65-
{{end}}
66-
{{ if eq .ProxyBuffering "off" }}proxy_buffering off;{{ end }}
67-
proxy_pass {{.URL}};
68-
{{else}}
69-
error_page 503 /errors/starting.html;
70-
return 503;
71-
{{end}}
72-
}
66+
{{template "service-block" .}}
7367
{{end}}
7468
# end of services
7569

0 commit comments

Comments
 (0)