GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - VectorLogoZone/gitlab-proxy: Proxy SVGs in gitlab repositories

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
etc/nginx/templates
etc/nginx/templates
 
 
www
www
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
docker-run.sh
docker-run.sh
 
 
run.sh
run.sh
 
 

Repository files navigation

GitLab SVG Proxy SVG Logo

build Status 30 day uptime

This server is a proxy to GitLab to serve SVG files.

The problem with linking directly is with the HTTP headers. GitLab sends Content-Disposition: attachment, which makes the browser try to download the image instead of displaying it.

GitLab does allow hotlinking.

It should have been simple, but for some unknown reason (probably caching conflicts), I needed to delete a lot more headers when running in production.

Running

It is a standard Dockerfile. The only tricky bit is getting the port to be configurable. See the run.sh for the parameters I use to run locally for development.

Credits

Docker Gitlab Google Cloud Run nginx NodePing water.css

Tests

# API with raw suffix: content-disposition: attachment; filename="Samsung.svg"; filename*=UTF-8''Samsung.svg
curl --verbose https://gitlab.com/api/v4/projects/celebdor%2Fdesign/repository/files/logos%2FSamsung.svg/raw?ref=master

# raw subdirectory: content-disposition: attachment
curl --verbose https://gitlab.com/celebdor/design/raw/master/logos/Samsung.svg

To Do

  • cleanup 50x error page
  • is redirect.html ever used?
  • switch to custom server using fiber

About

Proxy SVGs in gitlab repositories

Topics

gitlab

Resources

Readme
AGPL-3.0 license

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.