Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Conversation

@dsteinkopf
Copy link

I would like to be able to install this plugin globally but define the exception explicitly.

Currently, I am only able to decide whether to install the plugin on each route (this might be much work and/or redundancy) or globally. This is inconvenient. E.g. In my case I would like to install it globally - with only one exception: The URL that letsencrypt/certbot uses to validate certificates (/.well-known/acme-challenge).

This PR adds the ability to define the config parameter exclude_uri_pattern. When this value is empty, then everything is as before (backward compatibility). When it is set, then the redirect to https is only done when the called URI doesn't match to the Lua pattern in exclude_uri_pattern.

@dsteinkopf
Copy link
Author

BTW. I am adding several commits/updates. If you would like to separate them into different PTs, please tell me.

only redirect if x-forwarded-for is not set to https
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant