fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma strängvärde byggs med konkatenering i stället för att matcha mönstret.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{$DOMAIN} {
|
||||
reverse_proxy app:3000
|
||||
|
||||
# HSTS: lock clients onto HTTPS for one year.
|
||||
# `preload` is intentionally omitted: submission to browser preload lists
|
||||
# is irreversible on short timescales (months of lead time to remove a
|
||||
# domain). Operators who want preload eligibility can add the directive
|
||||
# after committing to HTTPS-only permanently and submitting via
|
||||
# hstspreload.org.
|
||||
header Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
FROM alpine:3.24@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b
|
||||
|
||||
ARG SUPERCRONIC_VERSION=v0.2.33
|
||||
ARG TARGETARCH
|
||||
|
||||
# SHA-256 of the supercronic v0.2.33 release binaries.
|
||||
# Computed from https://github.com/aptible/supercronic/releases/download/v0.2.33/
|
||||
# (the upstream project publishes only SHA-1 checksums, so these are recorded here).
|
||||
# Bump manually when SUPERCRONIC_VERSION changes (the FROM digest is also bumped manually).
|
||||
ARG SUPERCRONIC_SHA256_AMD64=feefa310da569c81b99e1027b86b27b51e6ee9ab647747b49099645120cfc671
|
||||
ARG SUPERCRONIC_SHA256_ARM64=f1f8585c66de020fef494dd636058f99949d108f569fef00016a1c8b9eb145b3
|
||||
|
||||
# curl stays in the image: the crontab uses it at runtime to call the app.
|
||||
# `apk upgrade` first: it patches OS packages (e.g. libssl3/libcrypto3) that
|
||||
# have fixes published after the pinned base digest was built, same rationale
|
||||
# as the main Dockerfile. The digest stays pinned; only security patches float.
|
||||
RUN apk upgrade --no-cache \
|
||||
&& apk add --no-cache curl \
|
||||
&& case ${TARGETARCH} in \
|
||||
amd64) ARCH=linux-amd64; SHA=${SUPERCRONIC_SHA256_AMD64} ;; \
|
||||
arm64) ARCH=linux-arm64; SHA=${SUPERCRONIC_SHA256_ARM64} ;; \
|
||||
*) ARCH=linux-amd64; SHA=${SUPERCRONIC_SHA256_AMD64} ;; \
|
||||
esac \
|
||||
&& curl -fsSL "https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-${ARCH}" \
|
||||
-o /usr/local/bin/supercronic \
|
||||
&& echo "${SHA} /usr/local/bin/supercronic" | sha256sum -c - \
|
||||
&& chmod 0755 /usr/local/bin/supercronic
|
||||
|
||||
# Run as the alpine-built-in unprivileged user. Defense-in-depth alongside
|
||||
# cap_drop:[ALL] and read_only:true in docker-compose.yml. The crontab is
|
||||
# bind-mounted read-only with default 644 perms (readable by all), and the
|
||||
# supercronic binary is world-executable (chmod 0755 above).
|
||||
USER nobody:nobody
|
||||
|
||||
ENTRYPOINT ["supercronic"]
|
||||
CMD ["/etc/supercronic/crontab"]
|
||||
@@ -0,0 +1,58 @@
|
||||
# AUTO-GENERATED: do not edit. Run `npm run crontabs:generate` to regenerate.
|
||||
#
|
||||
# Variant: hosted (bind-mounted by docker-compose.hosted.yml).
|
||||
# Source of truth: the `crons` array in vercel.json. Paths, order and
|
||||
# cadence mirror it exactly; scripts/__tests__/generate-crontabs.test.ts
|
||||
# fails CI if this file drifts from it.
|
||||
#
|
||||
# Consumed by supercronic (docker/cron.Dockerfile), bind-mounted read-only
|
||||
# at /etc/supercronic/crontab. Times are UTC: the cron container sets no TZ
|
||||
# and Alpine defaults to UTC, same as Vercel Cron. supercronic skips a tick
|
||||
# whose previous run is still going (overlapping is off by default), so a
|
||||
# slow endpoint cannot pile up.
|
||||
#
|
||||
# Extension endpoints are listed unconditionally, including extensions this
|
||||
# image's preset does not enable. Each answers 200 with a no-op body when
|
||||
# its extension is unconfigured, so an unused one costs a single cheap
|
||||
# request, and enabling it later needs no crontab change.
|
||||
#
|
||||
# Load note: /api/webhooks/dispatch/cron runs every minute, 1440 requests a
|
||||
# day. Each tick is one indexed query that returns immediately when no
|
||||
# delivery is due, and the per-minute cadence is what makes the dispatcher
|
||||
# 60-second first retry actually happen after 60 seconds. Change it only
|
||||
# through SCHEDULE_OVERRIDES in scripts/generate-crontabs.ts, never by
|
||||
# editing this file.
|
||||
|
||||
0 6 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/deadlines/status/cron
|
||||
0 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/invoices/recurring/cron
|
||||
30 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/settings/booking-templates/sync/cron
|
||||
0 0 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/tax-deadlines/cron
|
||||
0 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/enable-banking/sync/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/stripe/transactions/cron
|
||||
45 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/woocommerce/orders/cron
|
||||
15 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/shopify/orders/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/zettle/orders/cron
|
||||
0 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/documents/verify/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/documents/reanchor/cron
|
||||
0 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/sandbox/cleanup/cron
|
||||
0 2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/events/cleanup/cron
|
||||
0 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/cloud-backup/auto-sync/cron
|
||||
30 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/idempotency/cleanup/cron
|
||||
30 2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/pending-operations/expire/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/ombud/sync/cron
|
||||
0 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/skattekonto/sync/cron
|
||||
*/15 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/agi/kvittenser/cron
|
||||
30 */2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/vat/kvittenser/cron
|
||||
* * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/webhooks/dispatch/cron
|
||||
* * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/whatsapp-inbox/sweep/cron
|
||||
15 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/whatsapp-inbox/retention/cron
|
||||
*/2 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/invoice-inbox/sweep/cron
|
||||
45 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/invoice-inbox/underlag-reconcile/cron
|
||||
20 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/arcim-migration/complete-invoice-lines/cron
|
||||
*/5 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/arcim-migration/cleanup/cron
|
||||
15 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/bookkeeping/accruals/post-due/cron
|
||||
30 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/receipt-hunt/cron
|
||||
45 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/notifications/bookkeeping-digest/cron
|
||||
0 7 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/notifications/multi-user-grace/cron
|
||||
*/10 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/peppol/inbound/cron
|
||||
5,20,35,50 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/peppol/outbound/status/cron
|
||||
@@ -0,0 +1,61 @@
|
||||
# AUTO-GENERATED: do not edit. Run `npm run crontabs:generate` to regenerate.
|
||||
#
|
||||
# Variant: self-hosted (bind-mounted by docker-compose.yml).
|
||||
# Source of truth: the `crons` array in vercel.json. Paths, order and
|
||||
# cadence mirror it exactly; scripts/__tests__/generate-crontabs.test.ts
|
||||
# fails CI if this file drifts from it.
|
||||
#
|
||||
# Consumed by supercronic (docker/cron.Dockerfile), bind-mounted read-only
|
||||
# at /etc/supercronic/crontab. Times are UTC: the cron container sets no TZ
|
||||
# and Alpine defaults to UTC, same as Vercel Cron. supercronic skips a tick
|
||||
# whose previous run is still going (overlapping is off by default), so a
|
||||
# slow endpoint cannot pile up.
|
||||
#
|
||||
# Extension endpoints are listed unconditionally, including extensions this
|
||||
# image's preset does not enable. Each answers 200 with a no-op body when
|
||||
# its extension is unconfigured, so an unused one costs a single cheap
|
||||
# request, and enabling it later needs no crontab change.
|
||||
#
|
||||
# Load note: /api/webhooks/dispatch/cron runs every minute, 1440 requests a
|
||||
# day. Each tick is one indexed query that returns immediately when no
|
||||
# delivery is due, and the per-minute cadence is what makes the dispatcher
|
||||
# 60-second first retry actually happen after 60 seconds. Change it only
|
||||
# through SCHEDULE_OVERRIDES in scripts/generate-crontabs.ts, never by
|
||||
# editing this file.
|
||||
|
||||
0 6 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/deadlines/status/cron
|
||||
0 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/invoices/recurring/cron
|
||||
30 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/settings/booking-templates/sync/cron
|
||||
0 0 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/tax-deadlines/cron
|
||||
0 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/enable-banking/sync/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/stripe/transactions/cron
|
||||
45 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/woocommerce/orders/cron
|
||||
15 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/shopify/orders/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/zettle/orders/cron
|
||||
0 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/documents/verify/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/documents/reanchor/cron
|
||||
0 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/sandbox/cleanup/cron
|
||||
0 2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/events/cleanup/cron
|
||||
0 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/cloud-backup/auto-sync/cron
|
||||
30 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/idempotency/cleanup/cron
|
||||
30 2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/pending-operations/expire/cron
|
||||
30 3 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/ombud/sync/cron
|
||||
0 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/skattekonto/sync/cron
|
||||
*/15 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/agi/kvittenser/cron
|
||||
30 */2 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/skatteverket/vat/kvittenser/cron
|
||||
* * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/webhooks/dispatch/cron
|
||||
* * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/whatsapp-inbox/sweep/cron
|
||||
15 4 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/whatsapp-inbox/retention/cron
|
||||
*/2 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/invoice-inbox/sweep/cron
|
||||
45 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/invoice-inbox/underlag-reconcile/cron
|
||||
20 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/arcim-migration/complete-invoice-lines/cron
|
||||
*/5 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/extensions/arcim-migration/cleanup/cron
|
||||
15 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/bookkeeping/accruals/post-due/cron
|
||||
30 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/receipt-hunt/cron
|
||||
45 5 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/notifications/bookkeeping-digest/cron
|
||||
0 7 * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/notifications/multi-user-grace/cron
|
||||
*/10 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/peppol/inbound/cron
|
||||
5,20,35,50 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/peppol/outbound/status/cron
|
||||
|
||||
# self-hosted-only jobs, not in vercel.json: see EXTRA_JOBS in scripts/generate-crontabs.ts
|
||||
17 * * * * curl -sf -H "Authorization: Bearer ${CRON_SECRET}" ${APP_URL}/api/connector/sync/cron
|
||||
@@ -0,0 +1 @@
|
||||
{"extensions": ["enable-banking", "email", "arcim-migration", "tic", "mcp-server", "cloud-backup", "skatteverket", "invoice-inbox", "document-extraction"]}
|
||||
@@ -0,0 +1 @@
|
||||
{"extensions": ["email", "invoice-inbox", "document-extraction", "push-notifications", "calendar", "mcp-server", "enable-banking", "skatteverket"]}
|
||||
Reference in New Issue
Block a user