iDrive의 S3 엔드포인트가 Discourse에서 거부되는 이유는?

검증기를 살펴보면 다음과 같습니다:

  s3_endpoint:
    default: ""
    regex: '^https?:\/\/.+[^\/]$'

따라서 입력한 값을 확인해 보면 완벽하게 정상적인 값입니다:

[1] pry(main)> 'https://b1v7.or.idrive2-51.com'.match /^https?:\/\/.+[^\/]$/
=> #<MatchData "https://b1v7.or.idrive2-51.com">

필드에 무언가 잘못된 것이 있는 것 같습니다. @pfaffman님이 제안했듯이 공백을 확인해 보세요.

그래도 아직 작동하지 않는다면, rails 콘솔에서는 작동하나요?

다음은 실패할 것으로 예상됩니다:

[1] pry(main)> SiteSetting.s3_endpoint = 'gopher://b1v7.or.idrive2-51.com'
Discourse::InvalidParameters: s3_endpoint: Value doesn't match the required format.
from /home/michael/prog/Discourse/discourse/lib/site_settings/type_supervisor.rb:288:in `validate_value'

하지만 이 경우는 작동해야 합니다:

[1] pry(main)> SiteSetting.s3_endpoint = 'https://b1v7.or.idrive2-51.com'
=> "https://b1v7.or.idrive2-51.com"