Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ http://localhost:8080/example/editor?fileExt=docx&userid=uid-1&lang=en&directUrl
docker compose down
```

> **Security note:** The compose file sets `JWT_SECRET=secret`. This is
> intentionally insecure and is only suitable for local development and
> testing. Never expose this setup to a public network.
> **Security note:** The compose file sets a default `JWT_SECRET` for local development only.
> Never expose this setup to a public network and always replace the secret with a strong,
> unique value in any non-development environment.


## API methods for test examples
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
image: ghcr.io/euro-office/documentserver:latest
environment:
EXAMPLE_ENABLED: "true"
JWT_SECRET: "secret"
JWT_SECRET: "euro-office-dev-jwt-secret-key-2026"
container_name: eo-documentserver
ports:
- "8080:80"
4 changes: 2 additions & 2 deletions web/documentserver-example/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SERVER_PORT=port
DOC_SERVER_HOST=http://documentserver/

JWT_IS_ENABLED=flag
JWT_SECRET=secret
JWT_SECRET=euro-office-dev-jwt-secret-key-2026
JWT_HEADER=Authorization
```

Expand Down Expand Up @@ -62,7 +62,7 @@ Also, [specify the same secret key](https://helpcenter.onlyoffice.com/installati

```
{
"JWT_SECRET" : "secret",
"JWT_SECRET" : "euro-office-dev-jwt-secret-key-2026",
}
```

Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/go/config/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

"JWT_IS_ENABLED" : false,
"JWT_EXPIRES_IN" : 5,
"JWT_SECRET" : "secret",
"JWT_SECRET" : "euro-office-dev-jwt-secret-key-2026",
"JWT_HEADER" : "Authorization",

"STORAGE_PATH" : "filestore",
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/nodejs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export NODE_CONFIG='{
"exampleUrl": "'${EXAMPLE_URL:-http://localhost/example/}'",
"token": {
"enable": '${JWT_ENABLED:-false}',
"secret": "'${JWT_SECRET:-secret}'",
"secret": "'${JWT_SECRET:-euro-office-dev-jwt-secret-key-2026}'",
"authorizationHeader": "'${JWT_HEADER:-Authorization}'"
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/php-laravel/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ DOCUMENT_SERVER_PRELOADER_PATH=web-apps/apps/api/documents/preload.html
DOCUMENT_SERVER_JWT_HEADER=Authorization
DOCUMENT_SERVER_JWT_ALGORITHM=HS256
DOCUMENT_SERVER_JWT_USE_FOR_REQUEST=true
DOCUMENT_SERVER_JWT_SECRET=secret
DOCUMENT_SERVER_JWT_SECRET=euro-office-dev-jwt-secret-key-2026
DOCUMENT_SERVER_JWT_EXPIRATION=5

DOCUMENT_SERVER_CONVERSION_TIMEOUT=120000
Expand Down
4 changes: 2 additions & 2 deletions web/documentserver-example/php/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
expose:
- "80"
environment:
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026

example:
container_name: example
Expand All @@ -23,7 +23,7 @@ services:
- DOCUMENT_SERVER_PRIVATE_URL=http://proxy:8080
- DOCUMENT_SERVER_PUBLIC_URL=http://localhost:8080
- EXAMPLE_URL=http://proxy
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026
- PORT=80

proxy:
Expand Down
4 changes: 2 additions & 2 deletions web/documentserver-example/python/compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
expose:
- "80"
environment:
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026

example:
container_name: example
Expand All @@ -20,7 +20,7 @@ services:
- DOCUMENT_SERVER_PRIVATE_URL=http://proxy:8080
- DOCUMENT_SERVER_PUBLIC_URL=http://localhost:8080
- EXAMPLE_URL=http://proxy
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026
- PORT=80

proxy:
Expand Down
4 changes: 2 additions & 2 deletions web/documentserver-example/ruby/compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
expose:
- "80"
environment:
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026

example:
container_name: example
Expand All @@ -21,7 +21,7 @@ services:
- DOCUMENT_SERVER_PRIVATE_URL=http://proxy:8080
- DOCUMENT_SERVER_PUBLIC_URL=http://localhost:8080
- EXAMPLE_URL=http://proxy
- JWT_SECRET=your-256-bit-secret
- JWT_SECRET=euro-office-dev-jwt-secret-key-2026
- PORT=80

proxy:
Expand Down
Loading