Merge pull request #303 from myanesp/patch-1
docs: add Traefik examples
This commit is contained in:
+36
-1
@@ -16,7 +16,7 @@ choose to [review them first](/tag-and-review-uploads#review-uploads-before-they
|
|||||||
- [Add the upload service](#add-the-upload-service)
|
- [Add the upload service](#add-the-upload-service)
|
||||||
- [Route it through your reverse proxy](#route-it-through-your-reverse-proxy)
|
- [Route it through your reverse proxy](#route-it-through-your-reverse-proxy)
|
||||||
- [Turn on uploads for a share](#turn-on-uploads-for-a-share)
|
- [Turn on uploads for a share](#turn-on-uploads-for-a-share)
|
||||||
- [Set a storage quota](#set-a-storage-quota)
|
- [Set a storage quota](#optional-set-a-storage-quota)
|
||||||
- [Request size limits](#request-size-limits)
|
- [Request size limits](#request-size-limits)
|
||||||
- [Get a notification for each upload](#get-a-notification-for-each-upload)
|
- [Get a notification for each upload](#get-a-notification-for-each-upload)
|
||||||
- [Turn uploads off](#turn-uploads-off)
|
- [Turn uploads off](#turn-uploads-off)
|
||||||
@@ -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
|
### Own hostname
|
||||||
|
|
||||||
Send everything on a separate upload hostname to the upload service.
|
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
|
#### Tell IPP the upload URL
|
||||||
|
|
||||||
Set [`uploadUrl`](/config/ipp-options#uploadurl) in IPP's config to the upload hostname and restart IPP:
|
Set [`uploadUrl`](/config/ipp-options#uploadurl) in IPP's config to the upload hostname and restart IPP:
|
||||||
|
|||||||
Reference in New Issue
Block a user