willnorris / willnorris/imageproxy

[question] is it possible to create alias for remote url

Open
#123 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugins
Dominant language
Go
Stars
4k
Forks
513
PR merge metrics
No merged PRs in 30d

Description

eg: instead of this

http://localhost:8080/500/https://octodex.github.com/images/codercat.jpg

we can create alias like octo and url will become this

http://localhost:8080/500/octo/images/codercat.jpg

Would you accept a PR for such feature? I'm not familiar with Go but I could give a try if you can point me to where to look at.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the URL parsing and request-routing entry points in the Go image proxy, then determine how an alias would be configured and resolved. Done means the example alias produces the equivalent remote image URL and is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.