Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
1
  • Loading branch information
winesoft committed Nov 25, 2020
1 parent 2f0b88b commit c3fe414
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions admin/image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -580,39 +580,6 @@ GIF 포맷의 특성상 변환 후 용량이 커지는 경우가 간혹 있는



.. _media-dims-external-image:

외부이미지 연결 ``[Enterprise]``
====================================

원본 이미지가 불특정 다수의 외부 서비스에 존재한다면 다음 주소 체계를 사용하는 것이 적합하다. ::

http://{서비스도메인}/{이미지툴-함수}?sref={외부이미지 URL}

아래와 같이 ``Keyword`` 없이 원본이미지 URL이 쿼리스트링으로 입력된다. ::

http://image.example.com/optimize?sref=https%3A%2F%2Fwww.google.com%2Flogo.jpg
http://image.example.com/resize/100x100/grayscale/true?sref=https%3A%2F%2Fwww.google.com%2Flogo.jpg

쿼리스트링으로 입력되는 URL은 반드시 `URL 인코딩 <https://www.urlencoder.org/>`_ 되어야 한다.

.. note::

``Keyword`` 방식은 :ref:`env-vhost-activeorigin` 설정을 사용하기 때문에 별도의 주소 입력이 불필요하다.

외부이미지 연결에는 ``Query`` 설정이 키로 사용된다. ::

# server.xml - <Server><VHostDefault><Options>
# vhosts.xml - <Vhosts><Vhost><Options>

<Dims Status="Active" Keyword="dims" Query="sref">
...
</Dims>


- ``Query (기본: sref)`` 외부이미지 URL을 입력받을 쿼리스트링 키. http/s를 지원하며 URL형식이 올바르지 않을 경우 400 bad request로 응답한다.



기타
====================================
Expand Down

0 comments on commit c3fe414

Please sign in to comment.