File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ services:
2121 - app_logs:/app/logs
2222 networks :
2323 - app_network
24+ extra_hosts :
25+ - " netvault.ru:127.0.0.1"
2426
2527
2628 db :
@@ -37,8 +39,6 @@ services:
3739 - postgres_data:/var/lib/postgresql/data
3840 networks :
3941 - app_network
40- extra_hosts :
41- - " netvault.ru:host_gateway"
4242
4343
4444 redis :
@@ -61,6 +61,9 @@ services:
6161 environment :
6262 - MINIO_ROOT_USER=${MINIO_ACCESS_KEY}
6363 - MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}
64+ - MINIO_SERVER_URL=${MINIO_SERVER_URL}
65+ - MINIO_BROWSER_REDIRECT_URL=${MINIO_SERVER_URL}
66+ - MINIO_REGION=${MINIO_REGION}
6467 ports :
6568 - " 9000:9000"
6669 - " 9001:9001"
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class Config(BaseSettings):
3030 MINIO_ACCESS_KEY : str
3131 MINIO_SECRET_KEY : SecretStr
3232 MINIO_SECURE : bool = False
33+ MINIO_REGION : str = 'ru-central1'
3334
3435 DB_HOST : str
3536 DB_PORT : str
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ def __init__(self):
1616 access_key = config .MINIO_ACCESS_KEY ,
1717 secret_key = config .MINIO_SECRET_KEY .get_secret_value (),
1818 secure = config .MINIO_SECURE ,
19+ region = config .MINIO_REGION ,
1920 )
2021
2122 self ._external_endpoint = config .MINIO_EXTERNAL_ENDPOINT
@@ -25,13 +26,15 @@ def __init__(self):
2526 access_key = config .MINIO_ACCESS_KEY ,
2627 secret_key = config .MINIO_SECRET_KEY .get_secret_value (),
2728 secure = config .MINIO_SECURE ,
29+ region = config .MINIO_REGION ,
2830 )
2931 else :
3032 self ._external_for_sign = self ._client
3133
3234 self ._boto3_session = aioboto3 .Session (
3335 aws_access_key_id = config .MINIO_ACCESS_KEY ,
3436 aws_secret_access_key = config .MINIO_SECRET_KEY .get_secret_value (),
37+ region_name = config .MINIO_REGION ,
3538 )
3639 self ._boto3_config = BotoConfig (
3740 signature_version = 's3v4' ,
You can’t perform that action at this time.
0 commit comments