Skip to content

Commit 13f1a4e

Browse files
gerrod3cursoragent
andcommitted
Migrate to Django 5 STORAGES and get_domain()
Assisted by: cursor composer-1.5 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d2deb58 commit 13f1a4e

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

template_config.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,38 @@ pulp_settings:
4747
orphan_protection_time: 0
4848
pypi_api_hostname: https://pulp:443
4949
pulp_settings_azure:
50-
AZURE_ACCOUNT_KEY: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
51-
AZURE_ACCOUNT_NAME: devstoreaccount1
52-
AZURE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;
53-
AZURE_CONTAINER: pulp-test
54-
AZURE_LOCATION: pulp3
55-
AZURE_OVERWRITE_FILES: true
56-
AZURE_URL_EXPIRATION_SECS: 120
57-
DEFAULT_FILE_STORAGE: storages.backends.azure_storage.AzureStorage
5850
MEDIA_ROOT: ''
51+
STORAGES:
52+
default:
53+
BACKEND: storages.backends.azure_storage.AzureStorage
54+
OPTIONS:
55+
account_key: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
56+
account_name: devstoreaccount1
57+
azure_container: pulp-test
58+
connection_string: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;
59+
expiration_secs: 120
60+
location: pulp3
61+
overwrite_files: true
62+
staticfiles:
63+
BACKEND: django.contrib.staticfiles.storage.StaticFilesStorage
5964
domain_enabled: true
6065
pulp_settings_gcp: null
6166
pulp_settings_s3:
62-
AWS_ACCESS_KEY_ID: AKIAIT2Z5TDYPX3ARJBA
63-
AWS_DEFAULT_ACL: '@none None'
64-
AWS_S3_ADDRESSING_STYLE: path
65-
AWS_S3_ENDPOINT_URL: http://minio:9000
66-
AWS_S3_REGION_NAME: eu-central-1
67-
AWS_S3_SIGNATURE_VERSION: s3v4
68-
AWS_SECRET_ACCESS_KEY: fqRvjWaPU5o0fCqQuUWbj9Fainj2pVZtBCiDiieS
69-
AWS_STORAGE_BUCKET_NAME: pulp3
70-
DEFAULT_FILE_STORAGE: storages.backends.s3boto3.S3Boto3Storage
7167
MEDIA_ROOT: ''
68+
STORAGES:
69+
default:
70+
BACKEND: storages.backends.s3boto3.S3Boto3Storage
71+
OPTIONS:
72+
access_key: AKIAIT2Z5TDYPX3ARJBA
73+
addressing_style: path
74+
bucket_name: pulp3
75+
default_acl: '@none'
76+
endpoint_url: http://minio:9000
77+
region_name: eu-central-1
78+
secret_key: fqRvjWaPU5o0fCqQuUWbj9Fainj2pVZtBCiDiieS
79+
signature_version: s3v4
80+
staticfiles:
81+
BACKEND: django.contrib.staticfiles.storage.StaticFilesStorage
7282
domain_enabled: true
7383
pydocstyle: true
7484
release_email: pulp-infra@redhat.com

0 commit comments

Comments
 (0)