Skip to content

Commit

Permalink
Merge pull request #310 from getodk/release
Browse files Browse the repository at this point in the history
Release v1.5.3
  • Loading branch information
matthew-white authored Sep 21, 2022
2 parents ed9e4d8 + 1d86317 commit a2b1595
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion enketo.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/enketo/enketo-express:4.1.1
FROM ghcr.io/enketo/enketo-express:4.1.2

ENV ENKETO_SRC_DIR=/srv/src/enketo_express
WORKDIR ${ENKETO_SRC_DIR}
Expand Down
2 changes: 1 addition & 1 deletion files/enketo/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://${DOMAIN}:${HTTPS_PORT}/#/login?next={RETURNURL}"
},
"name": "ODK Central",
"server url": ""
"server url": "${DOMAIN}"
},
"logo": {
"source": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
Expand Down
8 changes: 8 additions & 0 deletions files/nginx/common-headers.nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file should be included in server{}, and also in any location{}
# which has a call to add_header.
# See: https://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header

add_header Referrer-Policy same-origin;
add_header Strict-Transport-Security "max-age=63072000" always;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;
6 changes: 3 additions & 3 deletions files/nginx/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ server {
ssl_dhparam /etc/dh/nginx.pem;

server_tokens off;
add_header Strict-Transport-Security "max-age=63072000" always;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;
include /usr/share/nginx/common-headers.nginx.conf;

client_max_body_size 100m;

Expand Down Expand Up @@ -52,9 +50,11 @@ server {
root /usr/share/nginx/html;

location /version.txt {
include /usr/share/nginx/common-headers.nginx.conf;
add_header Cache-Control no-cache;
}
location /index.html {
include /usr/share/nginx/common-headers.nginx.conf;
add_header Cache-Control no-cache;
}
}
Expand Down
1 change: 1 addition & 0 deletions files/service/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"external": {
"sentry": {
"orgSubdomain": "o130137",
"key": "3cf75f54983e473da6bd07daddf0d2ee",
"project": "1298632"
}
Expand Down
1 change: 1 addition & 0 deletions nginx.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ COPY files/local/customssl/*.pem /etc/customssl/live/local/
COPY files/nginx/default /etc/nginx/sites-enabled/
COPY files/nginx/inflate_body.lua /usr/share/nginx/
COPY files/nginx/odk.conf.template /usr/share/nginx/
COPY files/nginx/common-headers.nginx.conf /usr/share/nginx/
COPY files/nginx/certbot.conf /usr/share/nginx/
COPY files/nginx/redirector.conf /usr/share/nginx/
COPY --from=intermediate client/dist/ /usr/share/nginx/html/
Expand Down
2 changes: 1 addition & 1 deletion server

0 comments on commit a2b1595

Please sign in to comment.