Skip to content

Commit 9a7ac26

Browse files
authored
Release 3.41.1
2 parents 03d854c + b81c25b commit 9a7ac26

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ COPY ./build/default.conf /etc/nginx/templates/default.conf
123123
COPY --from=dist /dist/ /usr/share/nginx/html
124124

125125
# The port on which the app will run in the Docker container
126-
ENV PORT=80
126+
ENV PORT=8080
127127
# The url to the CouchDB database
128128
ENV COUCHDB_URL="http://localhost"
129129
# The url to the query backend, see https://github.com/Aam-Digital/query-backend
@@ -137,10 +137,9 @@ ENV CSP_REPORT_URI="https://o167951.ingest.sentry.io/api/1242399/security/"
137137
# overwrite the Content-Security-Policy rules (report-uri is added automatically)
138138
# default includes all required whitelists for production server
139139
# to disable any CSP blocking, set to "default-src * data: blob: filesystem: about: ws: wss: 'unsafe-inline' 'unsafe-eval'"
140-
ENV CSP="default-src 'self' 'unsafe-eval' data: blob: https://*.tile.openstreetmap.org/ https://matomo.aam-digital.org https://*.aam-digital.com https://api.github.com/repos/Aam-Digital/ https://sentry.io $CSP_REPORT_URI; style-src 'self' 'unsafe-inline'"
140+
ENV CSP="default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: https://*.tile.openstreetmap.org/ https://matomo.aam-digital.org https://*.aam-digital.com https://*.aam-digital.net https://*.aam-digital.app https://api.github.com/repos/Aam-Digital/ https://sentry.io $CSP_REPORT_URI; style-src 'self' 'unsafe-inline'"
141141
# 'unsafe-eval' required for pouchdb https://github.com/pouchdb/pouchdb/issues/7853#issuecomment-535020600
142142

143143
# variables are inserted into the nginx config
144-
RUN envsubst '$$PORT $$COUCHDB_URL $$QUERY_URL $$NOMINATIM_URL $$CSP $$CSP_REPORT_URI' < /etc/nginx/templates/default.conf > /etc/nginx/conf.d/default.conf
145-
146-
CMD ["nginx", "-g", "daemon off;"]
144+
CMD envsubst '$$PORT $$COUCHDB_URL $$QUERY_URL $$NOMINATIM_URL $$CSP $$CSP_REPORT_URI' < /etc/nginx/templates/default.conf > /etc/nginx/conf.d/default.conf &&\
145+
nginx -g 'daemon off;'

src/bootstrap-environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export async function initEnvironmentConfig() {
1818
} catch (err) {
1919
if (
2020
!environment.production ||
21+
environment.appVersion?.startsWith("pr-") ||
2122
environment.appVersion === "UNKNOWN" ||
2223
environment.appVersion === "0.0.0"
2324
) {

0 commit comments

Comments
 (0)