mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[DOCS] Fix typos in proxy examples (#1015)
Also include global http -> https redirection in Traefik 2.x example.
This commit is contained in:
parent
8339b095c9
commit
561a3f551c
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user