2026-05-11 00:50:39 +02:00
|
|
|
# Shared test-server environment variables.
|
|
|
|
|
# Sourced by tests/api/run.sh (shell) and read by tests/e2e/playwright.config.ts (Node).
|
|
|
|
|
# Do NOT include OXICLOUD_SERVER_PORT or OXICLOUD_STORAGE_PATH here —
|
|
|
|
|
# each test suite sets those to avoid port/directory conflicts.
|
|
|
|
|
|
|
|
|
|
DATABASE_URL=postgres://oxicloud_test:oxicloud_test@localhost:5433/oxicloud_test
|
|
|
|
|
OXICLOUD_DB_CONNECTION_STRING=postgres://oxicloud_test:oxicloud_test@localhost:5433/oxicloud_test
|
|
|
|
|
OXICLOUD_STATIC_PATH=./static
|
|
|
|
|
OXICLOUD_JWT_SECRET=test-secret-do-not-use-in-prod-minimum-32-chars
|
|
|
|
|
OXICLOUD_ENABLE_AUTH=true
|
|
|
|
|
OXICLOUD_ENABLE_TRASH=true
|
|
|
|
|
OXICLOUD_ENABLE_SEARCH=true
|
|
|
|
|
OXICLOUD_ENABLE_FILE_SHARING=true
|
|
|
|
|
OXICLOUD_ENABLE_MUSIC=true
|
|
|
|
|
OXICLOUD_EXPOSE_SYSTEM_USERS=true
|
|
|
|
|
OXICLOUD_WOPI_ENABLED=false
|
|
|
|
|
OXICLOUD_OIDC_ENABLED=false
|
2026-06-07 21:40:22 +02:00
|
|
|
|
|
|
|
|
OXICLOUD_NEXTCLOUD_ENABLED=true
|
|
|
|
|
|
2026-06-02 14:46:27 +02:00
|
|
|
RUST_LOG="warn,audit=info"
|
2026-05-13 11:33:45 +02:00
|
|
|
#RUST_LOG=debug
|
2026-05-21 11:07:04 +02:00
|
|
|
#RUST_LOG=info
|
2026-05-19 11:27:53 +02:00
|
|
|
|
2026-06-08 21:14:04 +02:00
|
|
|
# Per-chunk upload cap, exercised by chunked_upload_cap.hurl.
|
|
|
|
|
# 4 MiB: lets the existing grants.hurl single-chunk test (2.76 MB) pass
|
|
|
|
|
# under the cap, while the cap test sends a 5 MiB fixture to trigger 413.
|
|
|
|
|
OXICLOUD_CHUNK_MAX_BYTES=4194304
|
2026-06-09 11:00:51 +02:00
|
|
|
|
|
|
|
|
# Direct-PUT (non-chunked) cap, exercised by chunked_upload_cap.hurl.
|
|
|
|
|
# 4 MiB: same threshold as the chunked cap so the existing 5 MiB
|
|
|
|
|
# fixture (chunk-over-cap-5mb.bin) can prove BOTH caps with one
|
|
|
|
|
# generated file. All existing direct-PUT tests
|
|
|
|
|
# (test_dedup_webdav_multichunk.sh = 2.76 MB, _ref_count = ~66 KB,
|
|
|
|
|
# _nextcloud_put_blake3 = 32 B) stay safely under this cap.
|
|
|
|
|
OXICLOUD_DIRECT_PUT_MAX_BYTES=4194304
|
2026-06-08 21:14:04 +02:00
|
|
|
|
2026-05-19 11:27:53 +02:00
|
|
|
# grow up limits for tests
|
2026-05-30 00:15:07 +02:00
|
|
|
OXICLOUD_RATE_LIMIT_REFRESH_MAX=360
|
|
|
|
|
OXICLOUD_RATE_LIMIT_LOGIN_MAX=360
|
2026-06-02 22:50:13 +02:00
|
|
|
OXICLOUD_RATE_LIMIT_REGISTER_MAX=360
|
2026-06-02 10:47:37 +02:00
|
|
|
|
|
|
|
|
# Magic-link / external-users flow (PR 9). The mock SMTP captures every
|
|
|
|
|
# outbound message in-process so external_users.hurl can retrieve the
|
|
|
|
|
# invitation body and follow the magic-link URL. The `SMTP_FROM` value
|
|
|
|
|
# is required so the mock can build a valid Message; host/port are
|
|
|
|
|
# irrelevant in mock mode but kept set for completeness.
|
|
|
|
|
OXICLOUD_SMTP_MOCK=true
|
|
|
|
|
OXICLOUD_SMTP_HOST=localhost
|
|
|
|
|
OXICLOUD_SMTP_PORT=25
|
|
|
|
|
OXICLOUD_SMTP_FROM='OxiCloud Tests <test@oxicloud.local>'
|
|
|
|
|
OXICLOUD_SMTP_TLS=none
|
|
|
|
|
OXICLOUD_ALLOW_EXTERNAL_USERS=true
|
2026-06-02 14:23:31 +02:00
|
|
|
|
|
|
|
|
# PR 12 — magic-link rate-limit caps lowered so external_users.hurl can
|
|
|
|
|
# exercise the cap behaviour with a small, deterministic request count.
|
|
|
|
|
# Production defaults are 50 / 5 / 200 respectively (see example.env).
|
|
|
|
|
OXICLOUD_MAGIC_LINK_INVITE_PER_CALLER_PER_HOUR=3
|
|
|
|
|
OXICLOUD_MAGIC_LINK_SEND_PER_EMAIL_PER_HOUR=2
|
|
|
|
|
OXICLOUD_MAGIC_LINK_SEND_PER_IP_PER_HOUR=50
|