Skip to content

Commit dd2af3a

Browse files
committed
update reverse proxy info
1 parent 3309ded commit dd2af3a

File tree

1 file changed

+3
-55
lines changed

1 file changed

+3
-55
lines changed

README.md

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -12,63 +12,11 @@ This mod adds a service to start the [notify-push](https://github.com/nextcloud/
1212

1313
2. Make sure that Redis is already configured with Nextcloud.
1414

15-
3. [Configure your reverse proxy for notify push.](https://github.com/nextcloud/notify_push#reverse-proxy)
15+
3. notify_push should be running and ``**** Starting notify-push ****`` appear in the log. Also check for errors.
1616

17-
4. notify_push should be running and ``**** Starting notify-push ****`` appear in the log. Also check for errors.
17+
### Reverse Proxy
1818

19-
### SWAG configuration
20-
21-
SWAG's preset proxy conf for Nextcloud has been updated to support this mod out of the box. Make sure you are using the updated conf (to update an existing one, you can simply delete your existing conf, rename the sample to `nextcloud.subdomain.conf` and restart SWAG).
22-
23-
### Traefik configuration
24-
25-
notify-push listens on its own port, therefore we need to to forward all traffic under example.org/push/* to port 7867.
26-
27-
We need to add an additional router and service to the container. Having more than one router requires to explicitly configure more options. Additionally a new middleware to strip the /push prefix.
28-
29-
Replace "*cloud.example.org*" for both routers with your domain!
30-
31-
#### Before
32-
33-
```yaml
34-
    ...
35-
    labels:
36-
        - "traefik.enable=true"
37-
        - "traefik.http.routers.nextcloud.entryPoints=https"
38-
        - "traefik.http.routers.nextcloud.rule=Host(`cloud.example.org`)"
39-
        - "traefik.http.services.nextcloud.loadbalancer.server.port=443"
40-
```
41-
42-
#### After
43-
44-
```yaml
45-
    ...
46-
    labels:
47-
        # Nextcloud
48-
        - "traefik.enable=true"
49-
        - "traefik.http.routers.nextcloud.entryPoints=https"
50-
        - "traefik.http.routers.nextcloud.rule=Host(`cloud.example.org`)"
51-
        - "traefik.http.services.nextcloud.loadbalancer.server.port=443"
52-
        # add service
53-
        - "traefik.http.routers.nextcloud.service=nextcloud"
54-
55-
        #Notify-push
56-
        # forward cloud.example.org/push/*
57-
        - "traefik.http.routers.nextcloud_push.rule=Host(`cloud.example.org`) && PathPrefix(`/push`)"
58-
        # entry point
59-
        - "traefik.http.routers.nextcloud_push.entryPoints=https"
60-
        # set protocol to http
61-
        - "traefik.http.services.nextcloud_push.loadbalancer.server.scheme=http"
62-
        # set port
63-
        - "traefik.http.services.nextcloud_push.loadbalancer.server.port=7867"
64-
        # use middleware
65-
        - "traefik.http.routers.nextcloud_push.middlewares=nextcloud_strip_push"
66-
        # define middleware
67-
        - "traefik.http.middlewares.nextcloud_strip_push.stripprefix.prefixes=/push"
68-
        # add service
69-
        - "traefik.http.routers.nextcloud_push.service=nextcloud_push"
70-
71-
```
19+
The reverse proxy of the `notify_push` service at subfolder `/push` is handled within the Nextcloud container's Nginx site conf. Make sure you are on the latest version. If not sure, make sure your Nextcloud container is up to date, then you can delete the existing site conf at `/config/nginx/site-confs/default.conf` and restart the container. A new conf with the reverse proxy support will be created.
7220

7321
## Validation
7422

0 commit comments

Comments
 (0)