-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Get local https working. * Allow configuration of insecure https * take out cookie_secure directive to make this work locally * remove cookie directive as not needed now --------- Co-authored-by: Nick Davis <[email protected]>
- Loading branch information
1 parent
6534bbf
commit 3925d88
Showing
14 changed files
with
159 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[http] | ||
[http.middlewares] | ||
|
||
[http.middlewares.viewer-gov-redirect.redirectRegex] | ||
regex="^https://[^/]+/$$" | ||
replacement="https://www.gov.uk/view-lasting-power-of-attorney" | ||
|
||
[http.middlewares.actor-gov-redirect.redirectRegex] | ||
regex="^https://[^/]+/$$" | ||
replacement="https://www.gov.uk/use-lasting-power-of-attorney" | ||
|
||
[http.middlewares.viewer-web-https.redirectScheme] | ||
scheme="https" | ||
port=9041 | ||
|
||
[http.middlewares.actor-web-https.redirectScheme] | ||
scheme="https" | ||
port=9042 | ||
|
||
[http.routers] | ||
[http.routers.viewer-web] | ||
rule="PathPrefix(`/`)" | ||
entryPoints="http-viewer" | ||
middlewares=["viewer-web-https"] | ||
service="viewer-web" | ||
|
||
[http.routers.viewer-web-secure] | ||
rule="PathPrefix(`/`)" | ||
entryPoints="https-viewer" | ||
middlewares=["viewer-gov-redirect"] | ||
service="viewer-web" | ||
[http.routers.viewer-web-secure.tls] | ||
|
||
[http.routers.actor-web] | ||
rule="PathPrefix(`/`)" | ||
entryPoints="http-actor" | ||
middlewares=["actor-web-https"] | ||
service="actor-web" | ||
|
||
[http.routers.actor-web-secure] | ||
rule="PathPrefix(`/`)" | ||
entryPoints="https-actor" | ||
middlewares=["actor-gov-redirect"] | ||
service="actor-web" | ||
[http.routers.actor-web-secure.tls] | ||
|
||
[http.services] | ||
[http.services.actor-web.loadBalancer] | ||
[[http.services.actor-web.loadBalancer.servers]] | ||
url="http://actor-web" | ||
|
||
[http.services.viewer-web.loadBalancer] | ||
[[http.services.viewer-web.loadBalancer.servers]] | ||
url="http://viewer-web" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[api] | ||
insecure=true | ||
|
||
[accessLog] | ||
|
||
[entryPoints] | ||
[entryPoints.http-viewer] | ||
address=":9001" | ||
[entryPoints.https-viewer] | ||
address=":9041" | ||
[entryPoints.http-actor] | ||
address=":9002" | ||
[entryPoints.https-actor] | ||
address=":9042" | ||
|
||
[providers] | ||
[providers.file] | ||
filename="/etc/traefik/dynamic.toml" | ||
watch=true |
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
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