Remove secrets from settings API endpoint #479
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These fields:
are replaced with asterisks. Final output:
{ "log_level": "info", "website": { "name": "Torrust" }, "tracker": { "url": "udp://localhost:6969", "mode": "Public", "api_url": "http://localhost:1212", "token": "***", "token_valid_seconds": 7257600 }, "net": { "port": 3001, "base_url": null }, "auth": { "email_on_signup": "Optional", "min_password_length": 6, "max_password_length": 64, "secret_key": "***" }, "database": { "connect_url": "***" }, "mail": { "email_verification_enabled": false, "from": "[email protected]", "reply_to": "[email protected]", "username": "", "password": "***", "server": "", "port": 25 }, "image_cache": { "max_request_timeout_ms": 1000, "capacity": 128000000, "entry_size_limit": 4000000, "user_quota_period_seconds": 3600, "user_quota_bytes": 64000000 }, "api": { "default_torrent_page_size": 10, "max_torrent_page_size": 30 }, "tracker_statistics_importer": { "torrent_info_update_interval": 3600, "port": 3002 } }