Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caddy-gen: fix redirection on http #292

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

caddy-gen: fix redirection on http #292

wants to merge 3 commits into from

Conversation

stneng
Copy link
Member

@stneng stneng commented Oct 4, 2021

No description provided.

Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

Now all repositories are without http -> https redirection, right? I think this is not expected...

@skyzh
Copy link
Member

skyzh commented Oct 4, 2021

... and if we want to remove all redirections, there is a caddy global option to enable this. But I don't like this so far :(

@stneng stneng changed the title fix redirection on http caddy-gen: fix redirection on http Oct 4, 2021
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

Generally LGTM. But I only want no_redir_http repositories to have HTTP redirections. For other repos, I still prefer directly jumping to https conterparts, so as to reduce 301 requests sent by server.

By the way, we will apply this rule after our scheduled maintenance. So we won't merge it for now.

Thanks!

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.

None yet

2 participants