-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d21ef29
commit f58328c
Showing
9 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center | ||
SPDX-FileCopyrightText: 2021 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
SPDX-FileCopyrightText: 2021 - 2024 Netherlands eScience Center | ||
SPDX-FileCopyrightText: 2022 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences | ||
SPDX-FileCopyrightText: 2022 Matthias Rüster (GFZ) <[email protected]> | ||
|
@@ -32,14 +32,14 @@ SPDX-License-Identifier: Apache-2.0 | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>3.3.0</version> | ||
<version>3.6.1</version> | ||
</plugin> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.3.0</version> | ||
<version>3.7.1</version> | ||
|
||
<configuration> | ||
<descriptorRefs> | ||
|
@@ -98,7 +98,14 @@ SPDX-License-Identifier: Apache-2.0 | |
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin</artifactId> | ||
<version>5.6.3</version> | ||
<version>6.1.3</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.jetbrains/annotations --> | ||
<dependency> | ||
<groupId>org.jetbrains</groupId> | ||
<artifactId>annotations</artifactId> | ||
<version>24.1.0</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center | ||
# SPDX-FileCopyrightText: 2021 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 - 2024 Netherlands eScience Center | ||
# SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM postgrest/postgrest:v11.2.2 | ||
FROM postgrest/postgrest:v12.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- SPDX-FileCopyrightText: 2022 - 2023 Netherlands eScience Center | ||
-- SPDX-FileCopyrightText: 2022 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
-- SPDX-FileCopyrightText: 2022 - 2024 Netherlands eScience Center | ||
-- SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) | ||
-- SPDX-FileCopyrightText: 2022 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
-- SPDX-FileCopyrightText: 2022 dv4all | ||
-- SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center) | ||
-- | ||
|
@@ -45,7 +45,9 @@ CREATE TRIGGER sanitise_update_image BEFORE UPDATE ON image FOR EACH ROW EXECUTE | |
-- cache incrased to 1 year based on lighthouse audit | ||
-- ---------------------------------------- | ||
|
||
CREATE FUNCTION get_image(uid VARCHAR(40)) RETURNS BYTEA STABLE LANGUAGE plpgsql AS | ||
CREATE DOMAIN "application/octet-stream" AS BYTEA; | ||
|
||
CREATE FUNCTION get_image(uid VARCHAR(40)) RETURNS "application/octet-stream" STABLE LANGUAGE plpgsql AS | ||
$$ | ||
DECLARE headers TEXT; | ||
DECLARE blob BYTEA; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center | ||
# SPDX-FileCopyrightText: 2021 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2021 - 2024 Netherlands eScience Center | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM postgres:15.4 | ||
FROM postgres:15.6 | ||
RUN chmod a+rwx /docker-entrypoint-initdb.d | ||
COPY --chown=postgres:postgres *.sh /docker-entrypoint-initdb.d/ | ||
COPY --chown=postgres:postgres *.sql /docker-entrypoint-initdb.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) | ||
// SPDX-FileCopyrightText: 2022 dv4all | ||
// SPDX-FileCopyrightText: 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Netherlands eScience Center | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
@@ -24,7 +26,7 @@ export async function upsertImage({data, mime_type, token}: { | |
mime_type | ||
}) | ||
}) | ||
if (resp.status === 201) { | ||
if (resp.ok) { | ||
const id = resp.headers.get('location')?.split('.')[1] | ||
if (id) { | ||
return { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2022 - 2023 Netherlands eScience Center | ||
# SPDX-FileCopyrightText: 2022 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]> | ||
# SPDX-FileCopyrightText: 2022 - 2024 Netherlands eScience Center | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM nginx:1.25.2 | ||
FROM nginx:1.25.4 | ||
RUN apt-get update && apt-get install --yes certbot python3-certbot-nginx | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters