Files
admin/_docs/02_document/modules/common_configs_resources_config.md
T
Oleksandr Bezdieniezhnykh 3a925b9b0f
ci/woodpecker/push/01-test Pipeline failed
ci/woodpecker/push/02-build-push unknown status
refactor: remove obsolete resource download and installer endpoints
- Deleted the `POST /resources/get/{dataFolder?}` and `GET /resources/get-installer` endpoints as part of the architectural shift towards simplified resource management.
- Removed associated methods and configurations, including `ResourcesService.GetEncryptedResource`, `ResourcesService.GetInstaller`, and related properties in `ResourcesConfig`.
- Cleaned up environment variables and configuration files to reflect the removal of installer-related settings.
- Eliminated the `GetResourceRequest` DTO and its validator, along with the `WrongResourceName` error code.
- Updated documentation to clarify the changes in resource handling and the retirement of per-user file encryption.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 04:17:55 +03:00

1.2 KiB

Module: Azaion.Common.Configs.ResourcesConfig

Purpose

Configuration POCO for the file resource storage root, bound from appsettings.json section ResourcesConfig.

Cycle 2 (2026-05-14) noteSuiteInstallerFolder and SuiteStageInstallerFolder were removed along with the installer endpoints (GET /resources/get-installer[/stage]) and ResourcesService.GetInstaller. Their ASPNETCORE_ResourcesConfig__SuiteInstallerFolder / __SuiteStageInstallerFolder env-var rows were removed from appsettings.json, .env.example, secrets/staging.public.env, secrets/production.public.env, and docker-compose.test.yml.

Public Interface

Property Type Description
ResourcesFolder string Root directory for uploaded resource files

Internal Logic

None — pure data class.

Dependencies

None.

Consumers

  • ResourcesService — uses ResourcesFolder to resolve upload / list / clear paths

Data Models

None.

Configuration

Bound via builder.Configuration.GetSection(nameof(ResourcesConfig)) in Program.cs.

External Integrations

None.

Security

Path controls where files are read from and written to on the server's filesystem.

Tests

None.