Skip to content

Added branding for landing page - #156

Open
codeyschoettle wants to merge 2 commits into
ganto:mainfrom
codeyschoettle:feature/branding
Open

Added branding for landing page#156
codeyschoettle wants to merge 2 commits into
ganto:mainfrom
codeyschoettle:feature/branding

Conversation

@codeyschoettle

Copy link
Copy Markdown

Added in branding for the landing page. Parameters are configured via the pkgproxy config file.

@ganto ganto left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this PR. Looks good to me with a few minor adjustments.

Comment thread configs/pkgproxy.yaml
---
branding:
title: Pkgproxy Application
description: Caching forward proxy for Linux package repositories

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I'm including the pkgproxy.yaml as default config into the container image can you please comment the these settings so that the defaults from the binary are used and the settings here are simply used as hints for people who want to customize these.

Comment thread README.md
The config snippets shown on the landing page (`GET /`) need pkgproxy's own
address, e.g. `baseurl=http://<pkgproxy>/fedora/...`. Rather than relying on a
server-side setting, this is filled in automatically, with no configuration
needed:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mentioned this before but I don't really see how this is true with the code of this PR. I also don't really think that this is something that I would want as I often use browsers that don't support Javascript.

I think this entire section of the README.md is not needed.

Comment thread README.md

Both fields are optional and independent — omitting `branding` entirely, or
leaving one of the two fields unset, falls back to the default "pkgproxy" title
and "Caching forward proxy for Linux package repositories." description. The

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you link here to the defaults defined in the pkg/pkgproxy/landing.go instead of literally duplicating the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants