[GH-ISSUE #211] How to specify a default domain name? #96

Closed
opened 2026-02-25 22:34:20 +03:00 by kerem · 2 comments
Owner

Originally created by @ztj1993 on GitHub (Jul 15, 2019).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/211

Suppose I have an image storage server with the domain name img.com.

How can I access it:
http://localhost:8080/upload/w_200,h_200,c_1/file.jpg
Match to:
http://img.com/file.jpg


Suppose I have a configuration template

d_a: aaa.com
d_b: bbb.com

Is it accessible:
http://localhost:8080/upload/w_200,h_200,c_1/d_a/file.jpg
Is it possible to automatically match domain names?


Just some suggestions. The above content comes from software translation.

Originally created by @ztj1993 on GitHub (Jul 15, 2019). Original GitHub issue: https://github.com/flyimg/flyimg/issues/211 Suppose I have an image storage server with the domain name `img.com`. How can I access it: `http://localhost:8080/upload/w_200,h_200,c_1/file.jpg` Match to: `http://img.com/file.jpg` --- Suppose I have a configuration template ``` d_a: aaa.com d_b: bbb.com ``` Is it accessible: `http://localhost:8080/upload/w_200,h_200,c_1/d_a/file.jpg` Is it possible to automatically match domain names? --- Just some suggestions. The above content comes from software translation.
kerem 2026-02-25 22:34:20 +03:00
Author
Owner

@sadok-f commented on GitHub (Jul 15, 2019):

Hi @ztj1993 ,

Thank you for opening the issue!
Currently, Flyimg app doesn't support dynamic domain matching.
if you want to get images from domain img.com
you'll have to access it from:
http://localhost:8080/upload/w_200,h_200,c_1/http://img.com/file.jpg

<!-- gh-comment-id:511331873 --> @sadok-f commented on GitHub (Jul 15, 2019): Hi @ztj1993 , Thank you for opening the issue! Currently, Flyimg app doesn't support dynamic domain matching. if you want to get images from domain `img.com` you'll have to access it from: `http://localhost:8080/upload/w_200,h_200,c_1/http://img.com/file.jpg`
Author
Owner

@ztj1993 commented on GitHub (Aug 4, 2019):

Temporarily processed with nginx

<!-- gh-comment-id:517991205 --> @ztj1993 commented on GitHub (Aug 4, 2019): Temporarily processed with nginx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#96
No description provided.