Browse Source

README.md - Explain setting up of http auth in docker-compose traefik middleware

master
alpcentaur 3 years ago
parent
commit
96d6471771
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      README.md

+ 20
- 1
README.md View File

@ -2,7 +2,26 @@
# Setting up the Nextcloud containers
## Changes in docker/compose/docker-compose.yml
## set up http auth in the traefik instance
install apache2 utils and get the user+password in the right format for the docker-compose file
```bash
suo apt-get install apache2-utils
echo $(htpasswd -nbB <USER> "<PASS>") | sed -e s/\\$/\\$\\$/g
```
In `docker/compose/docker-compose.yml` fill in the <output> to the right place
In this case, in the beginning, put it under the nextcloud instance.
Then later, when disabling nextcloud-web, uncomment and fill in under traefik middlewares
regarding the labels of the deb-rust-sncf container.
nextcloud-web:
label:
- "traefik.http.routers.nextcloud.middlewares=nextcloud, nextcloud-auth"
- "traefik.http.middlewares.nextcloud-auth.basicauth.users=<output>
## Further changes in docker/compose/docker-compose.yml
Go to docker-compose.yml and change all AAAAApw to your passwords.

Loading…
Cancel
Save