Release Please / Release Please (push) Skipped
Release / GoReleaser (push) Skipped
Tests / Secret scan (gitleaks) (push) Skipped
Tests / Test (Go 1.25) (push) Skipped
Tests / Test (Go stable) (push) Skipped
Tests / Secret scan (gitleaks) (pull_request) Successful in 4s
Tests / Test (Go 1.25) (pull_request) Successful in 59s
Tests / Test (Go stable) (pull_request) Successful in 1m7s
Showroom-safe: the tree no longer carries internal hosts, IPs, ports, personal names, client domains or client file names. Behaviour is unchanged and now supplied per deployment. - catalog: hardcoded mail-org / project classifiers become a YAML-driven Classifier (OO_CATALOG_CONFIG or --config); neutral default classifies nothing as work. New catalog/classify.go + example + tests. - storage_fallback: drop the baked-in MinIO endpoint IP; require MINIO_ENDPOINT (+ keys) from the env. - kontolink: build DocEditor links from $ONLYOFFICE_URL instead of a hardcoded portal host; kontoblatt: no client file id in the output name. - oo: load .env CLI-wide (bootstrap.LoadEnv in execute) so non-authenticating commands (catalog scans) also see config. - genericize comments/docs/fixtures (AGENTS, README, .env.example, crm-associations, catalog tests, ES/pdfattach tests, mails).
74 lines
2.8 KiB
Bash
74 lines
2.8 KiB
Bash
# OnlyOffice Workspace credentials. Used by cmd/oo (the library itself
|
|
# does not load .env files — only its CLI does, via godotenv).
|
|
#
|
|
# Primary names:
|
|
ONLYOFFICE_URL=https://office.example.com
|
|
ONLYOFFICE_USER=
|
|
ONLYOFFICE_PASS=
|
|
|
|
# Accepted aliases (only one of each pair is needed):
|
|
# ONLYOFFICE_HOST=
|
|
# ONLYOFFICE_NAME=
|
|
# ONLYOFFICE_PASSWORD=
|
|
#
|
|
# Optional CLI-only aliases:
|
|
# OO_URL=
|
|
# OO_USER=
|
|
# OO_PASS=
|
|
|
|
# Optional defaults for calendar/project helpers:
|
|
ONLYOFFICE_CALENDAR_ID=1
|
|
ONLYOFFICE_PROJECT_ID=33
|
|
|
|
# oo mails uses ONLYOFFICE_URL/USER/PASS above (Workspace Mail addon).
|
|
|
|
# deploy/docker-compose.rclone-webdav.yml — rclone FUSE mount of the oo-webdav
|
|
# sidecar. Reuses ONLYOFFICE_USER and accepts ONLYOFFICE_PASSWORD (alias
|
|
# ONLYOFFICE_PASS). Set ONLYOFFICE_WEBDAV_URL only if the sidecar is not on
|
|
# the default docker bridge address. See docs/rclone-webdav.md.
|
|
# ONLYOFFICE_WEBDAV_URL=http://172.17.0.1:8098/webdav
|
|
|
|
# cmd/office TUI — optional Document Server for DOCX→HTML preview:
|
|
# ONLYOFFICE_DOCS_URL=https://docs.example.com
|
|
# ONLYOFFICE_DOCS_SECRET=
|
|
|
|
# MinIO download fallback for the portal's stale AWS S3 consumer (older
|
|
# Documents folders). When the portal redirects to amazonaws.com with access
|
|
# key "minio" (403 InvalidAccessKeyId), files are fetched from the configured
|
|
# MinIO store instead. Without endpoint + key/secret the fallback is disabled.
|
|
# MINIO_ENDPOINT=http://minio.example.com:9000
|
|
# MINIO_BUCKET=office
|
|
# MINIO_ACCESS_KEY=
|
|
# MINIO_SECRET_KEY=
|
|
|
|
# Catalog scan classification rules (client mail domains, project remotes/names).
|
|
# Copy catalog/classify.example.yaml and point this at it; no rules means
|
|
# nothing is classified as work.
|
|
# OO_CATALOG_CONFIG=~/.config/oo/catalog-classify.yaml
|
|
|
|
# oo search — direct Elasticsearch access for name + content search. ES lives
|
|
# inside the OnlyOffice VM on localhost:9200; expose it with an SSH tunnel
|
|
# (see docs/elasticsearch.md). ONLYOFFICE_ES_INDEX defaults to files_file.
|
|
# ONLYOFFICE_ES_URL=http://127.0.0.1:9200
|
|
# ONLYOFFICE_ES_INDEX=files_file
|
|
# ONLYOFFICE_TENANT=
|
|
|
|
# Read-only SQL file store over the Community Server database (see
|
|
# docs/community-server-db.md). The live portal runs MySQL; ONLYOFFICE_DSN is
|
|
# `user:pass@tcp(host:port)/onlyoffice?parseTime=true`, or a `postgres://` URL.
|
|
# ONLYOFFICE_DSN=
|
|
# ONLYOFFICE_PG_DRIVER= # postgres | mysql (auto-detected from DSN)
|
|
# ONLYOFFICE_PG_TENANT=1 # falls back to ONLYOFFICE_TENANT
|
|
# Alternatively build a PostgreSQL DSN from parts:
|
|
# ONLYOFFICE_PG_HOST=
|
|
# ONLYOFFICE_PG_PORT=5432
|
|
# ONLYOFFICE_PG_USER=
|
|
# ONLYOFFICE_PG_PASSWORD=
|
|
# ONLYOFFICE_PG_DBNAME=onlyoffice
|
|
# ONLYOFFICE_PG_SSLMODE=disable
|
|
|
|
# oo index / oo search --backend own — own full-text index for PDF/scans,
|
|
# filled by `oo index` from internal/docpipe (pdftotext + OCR). Defaults to
|
|
# oo_docs_text. Uses the same ONLYOFFICE_ES_URL.
|
|
# ONLYOFFICE_ES_TEXT_INDEX=oo_docs_text
|