Skip to content

Commit

Permalink
Disable URL validation for S3 endpoints to support "minio:9000"
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow committed May 14, 2024
1 parent 5feb7cd commit ab15032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ami/main/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,9 @@ class StorageSourceSerializer(DefaultSerializer):
project = serializers.PrimaryKeyRelatedField(queryset=Project.objects.all())
access_key = serializers.CharField(write_only=True, required=False)
secret_key = serializers.CharField(write_only=True, required=False, style={"input_type": "password"})
endpoint_url = serializers.URLField(required=False, allow_blank=True)
# endpoint_url = serializers.URLField(required=False, allow_blank=True)
# @TODO the endpoint needs to support host names without a TLD extension like "minio:9000"
endpoint_url = serializers.CharField(required=False, allow_blank=True)
public_base_url = serializers.URLField(required=False, allow_blank=True)

class Meta:
Expand Down

0 comments on commit ab15032

Please sign in to comment.