From 59c9f2e17e3a701ecf641a39ea3b3ecaacf5079b Mon Sep 17 00:00:00 2001 From: Varakh Date: Thu, 21 Dec 2023 19:31:46 +0100 Subject: [PATCH 1/2] Fix documentation regarding DB_SQLITE_FILE and prometheus reverse proxy if scraped publicly #noissue --- _doc/DEPLOYMENT.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/_doc/DEPLOYMENT.md b/_doc/DEPLOYMENT.md index 327f6ec..c367d85 100644 --- a/_doc/DEPLOYMENT.md +++ b/_doc/DEPLOYMENT.md @@ -111,7 +111,7 @@ services: image: git.myservermanager.com/varakh/upda:latest environment: - TZ=Europe/Berlin - - DB_FILE=/data/upda.db + - DB_SQLITE_FILE=/data/upda.db - ADMIN_USER=admin - ADMIN_PASSWORD=changeit restart: unless-stopped @@ -158,5 +158,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + # metrics + location ~* ^/metrics { + proxy_pass http://localhost:8080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } ``` -- 2.45.2 From ef95d31ab22bf386054922bc0d1f5973436ba02a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 21 Dec 2023 21:01:15 +0000 Subject: [PATCH 2/2] Update Node.js to v21 --- .forgejo/workflows/build.yaml | 2 +- .forgejo/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index caf0645..dc2f1b6 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -11,7 +11,7 @@ jobs: build: runs-on: docker container: - image: node:20-bookworm + image: node:21-bookworm steps: - name: Prepare requirements run: | diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 2631441..9ee1cdd 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: release: runs-on: docker container: - image: node:20-bookworm + image: node:21-bookworm steps: - name: Prepare requirements run: | -- 2.45.2