|
1 | 1 | # nextcloud-notify-push-docker |
2 | 2 |
|
3 | | -Docker packaging for `notify_push`, with the upstream source vendored in `./notify_push` via `git subtree`. |
| 3 | +Empacotamento Docker do `notify_push`, com o codigo-fonte upstream versionado em `./notify_push` via `git subtree`. |
4 | 4 |
|
5 | | -This repository adds: |
| 5 | +Este repositorio adiciona: |
6 | 6 |
|
7 | | -- a Portuguese README for the vendored `notify_push` project |
8 | | -- an example deployment behind `nginx-proxy` |
9 | | -- GitHub Actions configuration to publish the image to GHCR |
| 7 | +- um README em portugues para o projeto `notify_push` vendorizado |
| 8 | +- um exemplo de deploy atras do `nginx-proxy` |
| 9 | +- a configuracao de GitHub Actions para publicar a imagem no GHCR |
10 | 10 |
|
11 | | -## Repository layout |
| 11 | +## Estrutura do repositorio |
12 | 12 |
|
13 | | -- `notify_push/`: upstream `nextcloud/notify_push` source tree |
14 | | -- `docker-compose.example.yml`: example deployment with `nginx-proxy` |
15 | | -- `.github/workflows/publish-ghcr.yml`: image publishing workflow for GHCR |
| 13 | +- `notify_push/`: arvore de codigo do `nextcloud/notify_push` |
| 14 | +- `docker-compose.example.yml`: exemplo de deploy com `nginx-proxy` |
| 15 | +- `.github/workflows/publish-ghcr.yml`: workflow de publicacao da imagem no GHCR |
16 | 16 |
|
17 | | -## Deploy behind nginx-proxy |
| 17 | +## Deploy atras do nginx-proxy |
18 | 18 |
|
19 | | -Use the same host for Nextcloud and `notify_push`, and route `/push/` to the push service. |
| 19 | +Use o mesmo host para o Nextcloud e para o `notify_push`, roteando `/push/` para o servico de push. |
20 | 20 |
|
21 | | -Example using the generic domain `cloud.example.com`: |
| 21 | +Exemplo usando o dominio generico `cloud.example.com`: |
22 | 22 |
|
23 | 23 | ```yaml |
24 | 24 | services: |
@@ -51,67 +51,68 @@ services: |
51 | 51 | - internal |
52 | 52 | ``` |
53 | 53 |
|
54 | | -Important details: |
| 54 | +Pontos importantes: |
55 | 55 |
|
56 | | -- `notify_push` must be attached to the same Docker network as `nginx-proxy` |
57 | | -- use `VIRTUAL_PATH=/push/` with the trailing slash |
58 | | -- use `VIRTUAL_DEST=/` so the `/push/` prefix is stripped before forwarding the request |
59 | | -- with `nginx-proxy`, `expose` is usually enough and you do not need to publish port `7867` on the host |
| 56 | +- o `notify_push` precisa estar na mesma rede Docker do `nginx-proxy` |
| 57 | +- use `VIRTUAL_PATH=/push/` com barra final |
| 58 | +- use `VIRTUAL_DEST=/` para remover o prefixo `/push/` antes de encaminhar a requisicao |
| 59 | +- em setups com `nginx-proxy`, normalmente `expose` e suficiente e voce nao precisa publicar a porta `7867` no host |
60 | 60 |
|
61 | | -## Configure in Nextcloud |
| 61 | +## Configuracao no Nextcloud |
62 | 62 |
|
63 | | -Once the service is reachable through the reverse proxy: |
| 63 | +Depois que o servico estiver acessivel pelo proxy reverso: |
64 | 64 |
|
65 | 65 | ```bash |
66 | 66 | occ app:enable notify_push |
67 | 67 | occ notify_push:setup https://cloud.example.com/push |
68 | 68 | occ notify_push:self-test |
69 | 69 | ``` |
70 | 70 |
|
71 | | -## Test the setup |
| 71 | +## Como testar |
72 | 72 |
|
73 | | -Verify the proxy responses: |
| 73 | +Valide as respostas do proxy: |
74 | 74 |
|
75 | 75 | ```bash |
76 | 76 | curl -I https://cloud.example.com/push |
77 | 77 | curl -I https://cloud.example.com/push/ |
78 | 78 | ``` |
79 | 79 |
|
80 | | -Expected behavior: |
| 80 | +O comportamento esperado e: |
81 | 81 |
|
82 | | -- `/push` returns `301` redirecting to `/push/` |
83 | | -- `/push/` does not return `502` or another proxy upstream error |
| 82 | +- `/push` responder com `301` para `/push/` |
| 83 | +- `/push/` nao responder com `502` ou outro erro de upstream do proxy |
84 | 84 |
|
85 | | -Watch the service logs while generating a Nextcloud notification, Talk message, or file change: |
| 85 | +Enquanto isso, acompanhe os logs do servico e gere um evento no Nextcloud, como uma notificacao, mensagem no Talk ou |
| 86 | +alteracao de arquivo: |
86 | 87 |
|
87 | 88 | ```bash |
88 | 89 | docker compose logs -f notify_push |
89 | 90 | ``` |
90 | 91 |
|
91 | | -## Publish to GHCR |
| 92 | +## Publicacao no GHCR |
92 | 93 |
|
93 | | -The workflow in `.github/workflows/publish-ghcr.yml` builds the image from `notify_push/Dockerfile` and publishes it to |
| 94 | +O workflow em `.github/workflows/publish-ghcr.yml` constroi a imagem a partir de `notify_push/Dockerfile` e publica no |
94 | 95 | GitHub Container Registry. |
95 | 96 |
|
96 | | -It runs on: |
| 97 | +Ele executa em: |
97 | 98 |
|
98 | | -- pushes to `main` |
99 | | -- version tags matching `v*` |
100 | | -- manual dispatch |
| 99 | +- pushes para `main` |
| 100 | +- tags de versao no formato `v*` |
| 101 | +- disparo manual |
101 | 102 |
|
102 | | -Required repository settings: |
| 103 | +Requisitos do repositorio: |
103 | 104 |
|
104 | | -- GitHub Actions must be enabled |
105 | | -- the workflow must have `packages: write` permission |
| 105 | +- GitHub Actions habilitado |
| 106 | +- permissao `packages: write` para o workflow |
106 | 107 |
|
107 | | -The published image name is derived from the repository path, for example: |
| 108 | +O nome final da imagem e derivado do caminho do repositorio, por exemplo: |
108 | 109 |
|
109 | 110 | ```text |
110 | 111 | ghcr.io/librecodecoop/nextcloud-notify-push-docker:latest |
111 | 112 | ghcr.io/librecodecoop/nextcloud-notify-push-docker:main |
112 | 113 | ``` |
113 | 114 |
|
114 | | -## Portuguese docs |
| 115 | +## Documentacao em portugues do upstream |
115 | 116 |
|
116 | | -The Portuguese translation for the vendored upstream README is available at |
| 117 | +O README em portugues do projeto vendorizado esta em |
117 | 118 | [`notify_push/README.pt-BR.md`](/home/mohr/git/librecode/nextcloud-notify-push-docker/notify_push/README.pt-BR.md). |
0 commit comments