Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
c8daaba4
Commit
c8daaba4
authored
Jul 28, 2016
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update link to SA 1.1.1 (and other minor tweaks)
parent
af48bbd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
caddyhttp/proxy/proxy_test.go
caddyhttp/proxy/proxy_test.go
+3
-3
caddytls/storage.go
caddytls/storage.go
+5
-6
caddytls/user.go
caddytls/user.go
+1
-1
No files found.
caddyhttp/proxy/proxy_test.go
View file @
c8daaba4
...
...
@@ -664,15 +664,15 @@ func basicAuthTestcase(t *testing.T, upstreamUser, clientUser *url.Userinfo) {
}))
defer
backend
.
Close
()
backU
rl
,
err
:=
url
.
Parse
(
backend
.
URL
)
backU
RL
,
err
:=
url
.
Parse
(
backend
.
URL
)
if
err
!=
nil
{
t
.
Fatalf
(
"Failed to parse URL: %v"
,
err
)
}
backU
rl
.
User
=
upstreamUser
backU
RL
.
User
=
upstreamUser
p
:=
&
Proxy
{
Next
:
httpserver
.
EmptyNext
,
Upstreams
:
[]
Upstream
{
newFakeUpstream
(
backU
rl
.
String
(),
false
)},
Upstreams
:
[]
Upstream
{
newFakeUpstream
(
backU
RL
.
String
(),
false
)},
}
r
,
err
:=
http
.
NewRequest
(
"GET"
,
"/foo"
,
nil
)
if
err
!=
nil
{
...
...
caddytls/storage.go
View file @
c8daaba4
...
...
@@ -32,18 +32,17 @@ type UserData struct {
Key
[]
byte
}
// Storage is an interface abstracting all storage used by
the
Caddy's TLS
// subsystem. Implementations of this interface store
site data along with
// Storage is an interface abstracting all storage used by Caddy's TLS
// subsystem. Implementations of this interface store
both site and
// user data.
type
Storage
interface
{
// SiteDataExists returns true if this site info exists in storage.
// SiteExists returns true if this site exists in storage.
// Site data is considered present when StoreSite has been called
// successfully (without DeleteSite having been called of course).
// successfully (without DeleteSite having been called
,
of course).
SiteExists
(
domain
string
)
bool
// LoadSite obtains the site data from storage for the given domain and
// returns. If data for the domain does not exist, the
// returns
it
. If data for the domain does not exist, the
// ErrStorageNotFound error instance is returned. For multi-server
// storage, care should be taken to make this load atomic to prevent
// race conditions that happen with multiple data loads.
...
...
caddytls/user.go
View file @
c8daaba4
...
...
@@ -176,4 +176,4 @@ var stdin = io.ReadWriter(os.Stdin)
const
emptyEmail
=
"default"
// TODO: Use latest
const
saURL
=
"https://letsencrypt.org/documents/LE-SA-v1.
0.1-July-27-2015
.pdf"
const
saURL
=
"https://letsencrypt.org/documents/LE-SA-v1.
1.1-August-1-2016
.pdf"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment