-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from lucaslorentz/improve-modules
Add root module and remove plugin module
- Loading branch information
Showing
65 changed files
with
125 additions
and
634 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# Caddy-Docker-Proxy | ||
[![Build Status](https://dev.azure.com/lucaslorentzlara/lucaslorentzlara/_apis/build/status/lucaslorentz.caddy-docker-proxy?branchName=master)](https://dev.azure.com/lucaslorentzlara/lucaslorentzlara/_build/latest?definitionId=1) [![Go Report Card](https://goreportcard.com/badge/github.com/lucaslorentz/caddy-docker-proxy)](https://goreportcard.com/report/github.com/lucaslorentz/caddy-docker-proxy) | ||
|
||
## NEW MODULE NAME! | ||
|
||
We've renamed our go module, from version 2.7.0 forward you should import caddy-docker-proxy using `github.com/lucaslorentz/caddy-docker-proxy/v2` or a specific version `github.com/lucaslorentz/caddy-docker-proxy/[email protected]`. | ||
|
||
The old name `github.com/lucaslorentz/caddy-docker-proxy/plugin` will be a available for backwards compatibility, but it will be frozen at version 2.6.0. | ||
|
||
## Introduction | ||
This plugin enables Caddy to be used as a reverse proxy for Docker containers via labels. | ||
|
||
|
@@ -643,4 +649,4 @@ $ docker rm -f caddy whoami0 whoami1 | |
|
||
You can build Caddy using [xcaddy](https://github.com/caddyserver/xcaddy) or [caddy docker builder](https://hub.docker.com/_/caddy). | ||
|
||
Use module name **github.com/lucaslorentz/caddy-docker-proxy/plugin** to add this plugin to your build. | ||
Use module name **github.com/lucaslorentz/caddy-docker-proxy/v2** to add this plugin to your build. |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 19 additions & 19 deletions
38
...testdata/labels/wildcard_certificates.txt → ...testdata/labels/wildcard_certificates.txt
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,20 +1,20 @@ | ||
caddy = *.example.com | ||
caddy.1_@foo = host foo.example.com | ||
caddy.1_handle = @foo | ||
caddy.1_handle.reverse_proxy = foo:8080 | ||
caddy = *.example.com | ||
caddy.2_@bar = host bar.example.com | ||
caddy.2_handle = @bar | ||
caddy.2_handle.reverse_proxy = bar:8080 | ||
---------- | ||
*.example.com { | ||
@foo host foo.example.com | ||
@bar host bar.example.com | ||
handle @foo { | ||
reverse_proxy foo:8080 | ||
} | ||
handle @bar { | ||
reverse_proxy bar:8080 | ||
} | ||
caddy = *.example.com | ||
caddy.1_@foo = host foo.example.com | ||
caddy.1_handle = @foo | ||
caddy.1_handle.reverse_proxy = foo:8080 | ||
|
||
caddy = *.example.com | ||
caddy.2_@bar = host bar.example.com | ||
caddy.2_handle = @bar | ||
caddy.2_handle.reverse_proxy = bar:8080 | ||
---------- | ||
*.example.com { | ||
@foo host foo.example.com | ||
@bar host bar.example.com | ||
handle @foo { | ||
reverse_proxy foo:8080 | ||
} | ||
handle @bar { | ||
reverse_proxy bar:8080 | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.