diff --git a/.forgejo/workflows/build_keycloak.yml b/.forgejo/workflows/build_keycloak.yml index 74cc8b2..3b870ba 100644 --- a/.forgejo/workflows/build_keycloak.yml +++ b/.forgejo/workflows/build_keycloak.yml @@ -19,7 +19,7 @@ jobs: matrix: keycloak-version: # renovate: datasource=docker depName=quay.io/keycloak/keycloak - - 26.8.1 + - 26.8.2 steps: - name: Install required system packages run: apk add --no-cache nodejs diff --git a/.forgejo/workflows/build_pretix.yml b/.forgejo/workflows/build_pretix.yml new file mode 100644 index 0000000..9765e17 --- /dev/null +++ b/.forgejo/workflows/build_pretix.yml @@ -0,0 +1,44 @@ +name: Build Pretix + +on: + workflow_dispatch: {} + push: + paths: + - '.forgejo/workflows/build_pretix.yml' + - 'pretix/**' + schedule: + - cron: "@daily" + +jobs: + build-container: + name: Build Pretix Image + runs-on: docker + container: + image: ghcr.io/osscontainertools/kaniko:alpine + strategy: + matrix: + pretix-version: + # renovate: datasource=docker depName=docker.io/pretix/standalone + - 2026.9 + steps: + - name: Install required system packages + run: apk add --no-cache nodejs + + - name: Checkout Source Code + uses: actions/checkout@v7 + + - name: Build Container + env: + KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }} + KANIKO_GIT_HAMBURG_CCC_DE_USER: forgejo-actions + KANIKO_GIT_HAMBURG_CCC_DE_PASSWORD: ${{ secrets.PACKAGES_TOKEN }} + run: /kaniko/executor + --dockerfile="${{forgejo.workspace }}/pretix/Containerfile" + --context="dir://${{ forgejo.workspace }}/pretix" + --build-arg=TAG=${{ matrix.pretix-version }} + --destination=git.hamburg.ccc.de/ccchh/oci-images/pretix:${{ matrix.pretix-version }} + --no-push-cache + --credential-helpers=env + --annotation=org.opencontainers.image.ref.name=pretix + --annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }} + --annotation=org.opencontainers.image.source=${{ forgejo.server_url }}/${{ forgejo.repository }} diff --git a/README.md b/README.md index 557f82b..36a5a2c 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Tools in use: - `git.hamburg.ccc.de/CCCHH/oci-images/keycloak` - `git.hamburg.ccc.de/CCCHH/oci-images/nextcloud` +- `git.hamburg.ccc.de/CCCHH/oci-images/pretix` - `git.hamburg.ccc.de/CCCHH/oci-images/penpot/frontend` - `git.hamburg.ccc.de/CCCHH/oci-images/penpot/backend` - `git.hamburg.ccc.de/CCCHH/oci-images/penpot/exporter` diff --git a/nextcloud/99-security-hardening.ini b/nextcloud/99-security-hardening.ini index 90a4b57..80c7593 100644 --- a/nextcloud/99-security-hardening.ini +++ b/nextcloud/99-security-hardening.ini @@ -5,5 +5,12 @@ ; vulnerability. It is disabled by default for maximum compatibility, but ; enabling it is encouraged. ; https://wiki.php.net/rfc/strict_sessions -session.use_strict_mode = 1 +session.use_strict_mode = 1\ +; Enable upload progress tracking in $_SESSION +; Default Value: On +; Development Value: On +; Production Value: On +; https://php.net/session.upload-progress.enabled +; Warum, siehe hier: https://www.php.net/archive/2026.php#2026-10-23-1 +session.upload_progress.enabled = Off diff --git a/pretix/Containerfile b/pretix/Containerfile new file mode 100644 index 0000000..87f9220 --- /dev/null +++ b/pretix/Containerfile @@ -0,0 +1,12 @@ +ARG TAG=latest + +FROM docker.io/pretix/standalone:${TAG} + +USER root +COPY requirements.txt /tmp/plugin-requirements.txt +RUN pip3 install --no-cache-dir -r /tmp/plugin-requirements.txt \ + && rm /tmp/plugin-requirements.txt + +USER pretixuser +# Compile static files and translations, including those of the plugins. +RUN cd /pretix/src && make production diff --git a/pretix/requirements.txt b/pretix/requirements.txt new file mode 100644 index 0000000..3a4519f --- /dev/null +++ b/pretix/requirements.txt @@ -0,0 +1,3 @@ +# Pretix plugins to install into the image. +# Pin versions so Renovate can propose updates. +pretix-passbook==1.14.1