バイナリファイルの提供
構成サーバーからバイナリファイルを提供するには、application/octet-stream の Accept ヘッダーを送信する必要があります。
Git、SVN、ネイティブバックエンド
GIT または SVN リポジトリまたはネイティブバックエンドの次の例を検討してください。
application.yml
nginx.confnginx.conf は、次のようになります。
server {
listen 80;
server_name ${nginx.server.name};
}application.yml は、次のようになります。
nginx:
server:
name: example.com
---
spring:
profiles: development
nginx:
server:
name: develop.com/sample/default/master/nginx.conf リソースは次のようになります。
server {
listen 80;
server_name example.com;
}/sample/development/master/nginx.conf は次のようになります。
server {
listen 80;
server_name develop.com;
}AWS S3
AWS s3 のプレーンテキストの提供を有効にするには、構成サーバーアプリケーションに io.awspring.cloud:spring-cloud-aws-context への依存関係を含める必要があります。その依存関係を設定する方法の詳細については、Spring Cloud AWS リファレンスガイドを参照してください。さらに、Spring Cloud AWS を Spring Boot と共に使用する場合、自動構成の依存関係を含めると便利です。次に、Spring Cloud AWS リファレンスガイドに従って、Spring Cloud AWS を構成する必要があります。
プレーンテキストの復号化
デフォルトでは、プレーンテキストファイルの暗号化された値は復号化されません。プレーンテキストファイルの復号化を有効にするには、bootstrap.[yml|properties] で spring.cloud.config.server.encrypt.enabled=true と spring.cloud.config.server.encrypt.plainTextEncrypt=true を設定します
| プレーンテキストファイルの復号化は、YAML、JSON、プロパティファイル拡張子でのみサポートされています。 |
この機能が有効になっていて、サポートされていないファイル拡張子がリクエストされた場合、ファイル内の暗号化された値は復号化されません。