nextcloud / nextcloud/documentation
Documentation for Traefik 2.0 Setup
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 628
- Forks
- 2.5k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 135
Description
I didn't know where to put this, so sorry if this is the wrong place. I have a setup of traefik 2 and Nextcloud and wanted to know where I could add it in the documentation. There is some documentation for Traefik 1 in the manual of Nextcloud:
https://docs.nextcloud.com/server/18/admin_manual/configuration_server/reverse_proxy_configuration.html?highlight=traefik#traefik
In this location I could certainly add the documentation for the reverse proxy settings in traefik 2, however there are a lot of other settings that are recommended by Nextcloud that should also be set. My current config looks like this:
labels:
- "traefik.http.routers.cloud.rule=Host(`cloud.example.com`)"
- "traefik.http.routers.cloud.middlewares=cloud_headers,cloud_redirectregex"
- "traefik.http.middlewares.cloud_headers.headers.customFrameOptionsValue=SAMEORIGIN"
- "traefik.http.middlewares.cloud_headers.headers.framedeny=true"
- "traefik.http.middlewares.cloud_headers.headers.stsIncludeSubdomains=true"
- "traefik.http.middlewares.cloud_headers.headers.stsPreload=true"
- "traefik.http.middlewares.cloud_headers.headers.stsSeconds=15552001"
- "traefik.http.middlewares.cloud_redirectregex.redirectregex.regex=/.well-known/(card|cal)dav"
- "traefik.http.middlewares.cloud_redirectregex.redirectregex.replacement=/remote.php/dav/"
If you want to add this to the documentation and tell me where to put it, I am happy to write a PR. Also if anyone has any feedback about my configuration I would appreciate it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reverse_proxy_configuration.html page and review its existing Traefik 1 section. Determine where the Traefik 2 setup and recommended Nextcloud settings belong, using the provided labels as the proposal. Done means the documentation location and scope are settled and the agreed Traefik 2 guidance is added.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100