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
Add support for authentication and authorization of user accessing instances #44
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b81bc19
Traefik v2 update + forwardauth
craig-willis c58a3ed
Fixed forward-auth config
craig-willis 08bc0ba
Added notforyouu example
craig-willis d35a9f6
Changed traefik toml to debug log
craig-willis 4827ca9
Set cookie domain
craig-willis 6a68f37
Added CSP support
craig-willis 425e82d
Removed whoami example
craig-willis File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
graceTimeOut = "10s" | ||
debug = false | ||
checkNewVersion = false | ||
logLevel = "INFO" | ||
|
||
# If set to true invalid SSL certificates are accepted for backends. | ||
# Note: This disables detection of man-in-the-middle attacks so should only be used on secure backend networks. | ||
# Optional | ||
# Default: false | ||
# | ||
# InsecureSkipVerify = true | ||
|
||
defaultEntryPoints = ["http", "https"] | ||
|
||
[entryPoints] | ||
[entryPoints.http] | ||
address = ":80" | ||
[entryPoints.http.redirect] | ||
entryPoint = "https" | ||
[entryPoints.https] | ||
address = ":443" | ||
[entryPoints.https.tls] | ||
#MinVersion = "VersionTLS12" | ||
#CipherSuites = ["TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"] | ||
MinVersion = "VersionTLS10" | ||
CipherSuites = ["TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA"] | ||
[entryPoints.web] | ||
address = ":80" | ||
[entryPoints.web.http] | ||
[entryPoints.web.http.redirections] | ||
[entryPoints.web.http.redirections.entryPoint] | ||
to = "websecure" | ||
scheme = "https" | ||
|
||
[web] | ||
address = ":8080" | ||
[entryPoints.websecure] | ||
address = ":443" | ||
|
||
[acme] | ||
email = "bgates@microsoft.com" # FIXME | ||
storage = "/acme/acme.json" | ||
entryPoint = "https" | ||
acmeLogging = true | ||
[providers] | ||
providersThrottleDuration = "2s" | ||
[providers.docker] | ||
watch = true | ||
endpoint = "unix:///var/run/docker.sock" | ||
exposedByDefault = true | ||
swarmMode = true | ||
swarmModeRefreshSeconds = "15s" | ||
httpClientTimeout = "0s" | ||
defaultRule = "Host(`{{ trimPrefix `/` .Name }}.local.wholetale.org`)" | ||
|
||
[acme.dnsChallenge] | ||
provider = "godaddy" | ||
delayBeforeCheck = 1800 | ||
[tls.options] | ||
[tls.options.default] | ||
minVersion = "VersionTLS10" | ||
cipherSuites = [ | ||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", | ||
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", | ||
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", | ||
"TLS_RSA_WITH_AES_128_CBC_SHA", | ||
"TLS_RSA_WITH_AES_256_CBC_SHA" | ||
] | ||
|
||
[[acme.domains]] | ||
main = "*.local.wholetale.org" | ||
[api] | ||
debug = false | ||
dashboard = true | ||
insecure = true | ||
|
||
[docker] | ||
endpoint = "unix:///var/run/docker.sock" | ||
domain = "local.wholetale.org" | ||
watch = true | ||
exposedbydefault = true | ||
swarmmode = true | ||
[log] | ||
level = "DEBUG" | ||
|
||
[accessLog] | ||
filePath = "/etc/traefik/access.log" | ||
format = "json" | ||
|
||
bufferingSize = 0 | ||
[accessLog.filters] | ||
statusCodes = ["200", "300-302"] | ||
retryAttempts = true | ||
|
||
minDuration = "0s" | ||
[accessLog.fields] | ||
defaultMode = "keep" | ||
[accessLog.fields.names] | ||
"ClientUsername" = "drop" | ||
|
||
ClientUsername = "drop" | ||
[accessLog.fields.headers] | ||
defaultMode = "keep" | ||
[accessLog.fields.headers.names] | ||
"User-Agent" = "redact" | ||
"Authorization" = "drop" | ||
"Content-Type" = "keep" | ||
Authorization = "drop" | ||
Content-Type = "keep" | ||
User-Agent = "redact" | ||
|
||
[certificatesResolvers] | ||
[certificatesResolvers.default] | ||
[certificatesResolvers.default.acme] | ||
email = "bgates@microsoft.com" | ||
storage = "/acme/acme.json" | ||
[certificatesResolvers.default.acme.dnsChallenge] | ||
provider = "godaddy" | ||
delayBeforeCheck = "30m0s" | ||
#entryPoint = "https" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's no longer necessary.