Skip to content

Commit febefa8

Browse files
authored
[Snyk] Security upgrade nginx from 1.21.4-alpine to 1.23.0-alpine (GeoNode#355)
1 parent 86ba0b0 commit febefa8

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

docker/letsencrypt/crontab

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# .............. minute (0 - 59)
2-
# . .............. hour (0 - 23)
3-
# . . .............. day of month (1 - 31)
4-
# . . . .............. month (1 - 12)
5-
# . . . . .............. day of week (0 - 6) (Sunday to Saturday; 7 is also Sunday on some systems)
6-
# . . . . .
1+
# +------------- minute (0 - 59)
2+
# ¦ +------------- hour (0 - 23)
3+
# ¦ ¦ +------------- day of month (1 - 31)
4+
# ¦ ¦ ¦ +------------- month (1 - 12)
5+
# ¦ ¦ ¦ ¦ +------------- day of week (0 - 6) (Sunday to Saturday; 7 is also Sunday on some systems)
6+
# ¦ ¦ ¦ ¦ ¦
77

88
0 0,12 * * * date && echo "daily " && /docker-entrypoint.sh
9-

docker/nginx/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.17.2-alpine
1+
FROM nginx:1.23.0-alpine
22

33
RUN apk add --no-cache openssl inotify-tools
44

docker/nginx/geonode.conf.envsubst

+6-2
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,15 @@ location / {
141141
proxy_set_header X-Forwarded-Proto $scheme;
142142
proxy_hide_header X-Frame-Options;
143143

144-
proxy_pass http://$upstream;
145-
146144
# uwsgi_params
147145
include /etc/nginx/uwsgi_params;
148146

147+
# proxy_pass http://$upstream;
148+
uwsgi_pass $upstream;
149+
150+
# when a client closes the connection then keep the channel to uwsgi open. Otherwise uwsgi throws an IOError
151+
uwsgi_ignore_client_abort on;
152+
149153
location ~* \.(?:js|jpg|jpeg|gif|png|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|ttf|rtf|swf|ico|flv|woff|woff2|svg|xml)$ {
150154
gzip_static always;
151155
expires 30d;

0 commit comments

Comments
 (0)