Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

Conversation

@malizz
Copy link

@malizz malizz commented Dec 17, 2018

Problem

A production deployment does not allow failing verification, test permissions (that may not necessarily exist for them in prod).

Solution

Simplifying development environment workflow by replacing the production proxy with a shim that reads its settings from a config file.

@malizz malizz requested a review from sporkmonger December 17, 2018 20:36

opts := devproxy.NewOptions()

err := envconfig.Process("", opts)

Choose a reason for hiding this comment

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

I think this is the right choice, to use environment variables for config. It's probably more common to use the flag package, but having a parallel structure to what's already there probably makes more sense.

@malizz malizz closed this Jan 4, 2019
@malizz malizz reopened this Jan 4, 2019

// SkipAuthCompiledRegex []*regexp.Regexp
// AllowedGroups []string
Route interface{} // note: :/

Choose a reason for hiding this comment

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

Not sure what this comment means.

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.

3 participants