From 205a3a887eac51beae084a3417411b03dae897a0 Mon Sep 17 00:00:00 2001 From: Damien Degois Date: Thu, 28 Nov 2024 13:53:51 +0100 Subject: [PATCH 1/2] set robot.txt --- hugo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo.yaml b/hugo.yaml index 725ae21..83d585a 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -6,7 +6,7 @@ module: imports: - path: github.com/imfing/hextra -#enableRobotsTXT: true +enableRobotsTXT: true #enableGitInfo: true markup: From 33a35d322d5b06df23a50c94acdfc7394d5e6fc8 Mon Sep 17 00:00:00 2001 From: Damien Degois Date: Thu, 28 Nov 2024 13:54:10 +0100 Subject: [PATCH 2/2] update gitlab-mr-api doc --- content/docs/deployment/addons/gitlab-mr-api/index.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/content/docs/deployment/addons/gitlab-mr-api/index.md b/content/docs/deployment/addons/gitlab-mr-api/index.md index 0f9d541..9b08be0 100644 --- a/content/docs/deployment/addons/gitlab-mr-api/index.md +++ b/content/docs/deployment/addons/gitlab-mr-api/index.md @@ -26,8 +26,15 @@ Environment variables or `.env`: * `PORT`: port to listen to (def: `3980`) * `ACTIVITY_API`: `activity-api` base URL (ex: `https://activity-api:3981/`) -* `DATABASE_URL`: Database DSN in the form: `postgresql://{USER}:{PASSWORD}@{HOST}/{DATABASE}` -* `VALID_X_GITLAB_TOKEN`: comma separated list of Gitlab's Secret token (sent as `X-Gitlab-Token` header), uuidv4 generated seems a good choice. +* `DATABASE_URL`: Database DSN in the form: `postgresql://{USER}:{PASSWORD}@{HOST}/{DATABASE}?search_path=gitlab_mr_api` +* `VALID_X_GITLAB_TOKEN`: comma separated list of Gitlab's Secret token (sent as `X-Gitlab-Token` header), UUIDv4 generated token is recommended. + +### Notes on `db/schema.sql` + +The dump uses a dedicated schema but expects `pgcrypto` in the *public* schema for `uuid_generate_v7`. +If you plan to deploy the dump in another schema or if the extension has been deployed somewhere else, adapt the function definition and the dump accordingly. + +To connect directly to the dedicated schema, you can use *search_path* argument of the DSN `?search_path=gitlab_mr_api`. ## Webhook config