[DOCS] Fix typos in proxy examples (#1015)

Also include global http -> https redirection in Traefik 2.x example.
This commit is contained in:
Amir Zarrinkafsh 2020-05-14 13:26:52 +10:00 committed by GitHub
parent 8339b095c9
commit 561a3f551c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ You can separate each subdomain with a `|` in the regex, for example:
backend upon successful authentication, for example:
```
acl host-jenkins hdr(host) -i jenkins.example.com
acl host-jenkins hdr(host) -i nextcloud.example.com
acl host-nextcloud hdr(host) -i nextcloud.example.com
acl host-phpmyadmin hdr(host) -i phpmyadmin.example.com
```
3. Add backend route for your service(s), for example:

View File

@ -143,7 +143,7 @@ server {
location / {
set $upstream_authelia http://authelia:9091; # This example assumes a Docker deployment
proxy_pass $upstream_authelia;
include /config/nginx/proxy.conf; #
include /config/nginx/proxy.conf;
}
}
```

View File

@ -33,7 +33,7 @@ networks:
services:
traefik:
image: traefik:v2.1.2
image: traefik:v2.2
container_name: traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@ -54,6 +54,8 @@ services:
- '--providers.docker.exposedByDefault=false'
- '--entrypoints.http=true'
- '--entrypoints.http.address=:80'
- '--entrypoints.http.http.redirections.entrypoint.to=https'
- '--entrypoints.http.http.redirections.entrypoint.scheme=https'
- '--entrypoints.https=true'
- '--entrypoints.https.address=:443'
- '--log=true'