Skip to content

graph image and others don't use web.canonicalUrl (workaround included) #1083

Closed
@dsteinkopf

Description

@dsteinkopf

(At least) on the summary page (https://myserver/summary/myrepo.git) some of the generated images don't use the configured web.canonicalUrl (from gitblit.properties).

I am using a reverse apache proxy for ssl termination and a current gitblit GO docker image (jacekkow/gitblit). I realized that on the summary page some image links are broken.

Workaround I am using: Substitute the wrong "inner" url by the web.canonicalUrl "outside" url in the reverse proxy:

        AddOutputFilterByType SUBSTITUTE text/html application/rss+xml text/plain text/xml text/html;charset=utf-8
        AddOutputFilter SUBSTITUTE git
        Substitute "s|http://myinternal-dockerhost:8086|https://myserver|i"
        Substitute "s|http:././myinternal-dockerhost:8086|https:\/\/myserver|i"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions