docs: add Traefik examples
This commit is contained in:
@@ -152,6 +152,29 @@ server {
|
||||
}
|
||||
```
|
||||
|
||||
#### Traefik
|
||||
|
||||
Just copy your current IPP router, change the service to IPP Upload container and add `` `&& PathPrefix(`/upload`)` `` to the host.
|
||||
|
||||
```traefik
|
||||
ipp:
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: ipp
|
||||
rule: "Host(`ipp.domain.com`)"
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
|
||||
ipp-upload:
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: ipp-upload
|
||||
rule: "Host(`ipp.domain.com`) && PathPrefix(`/upload`)"
|
||||
priority: 10
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
```
|
||||
|
||||
### Own hostname
|
||||
|
||||
Send everything on a separate upload hostname to the upload service.
|
||||
@@ -180,6 +203,18 @@ server {
|
||||
}
|
||||
```
|
||||
|
||||
#### Traefik
|
||||
|
||||
```traefik
|
||||
ipp:
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: ipp-upload
|
||||
rule: "Host(`upload.domain.com`)"
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
```
|
||||
|
||||
#### Tell IPP the upload URL
|
||||
|
||||
Set [`uploadUrl`](/config/ipp-options#uploadurl) in IPP's config to the upload hostname and restart IPP:
|
||||
|
||||
Reference in New Issue
Block a user