Skip to content

Commit

Permalink
clarify authentication #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Jun 8, 2021
1 parent 2d8e009 commit 3bad871
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ You only need `.env.example`, `docker-compose.yml` and `traefik/`.
- Your domain name specified for traefik must match domain name, that your proxy connects to. In docker-compose it is service name.
- See example configuration for [nginx](docs/nginx).

You can use `docker-compose.http.yml` that will expose this service to `8080` or any port.
You can use `docker-compose.http.yml` that will expose this service to `8080` or any port. Authentication is optional.

### Step 1

Expand All @@ -70,7 +70,7 @@ And add as many users as you like:
echo $(htpasswd -nb user password) >> traefik/usersfile
```

### Step 3
### Step 3 (HTTPs only)

Create `acme.json`

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
- "8080:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
# OPTIONAL: Enable authentication.
# - "./traefik/usersfile:/usersfile:ro"

neko-rooms:
image: "m1k1o/neko-rooms:latest"
Expand All @@ -40,3 +42,6 @@ services:
- "traefik.http.services.neko-rooms-frontend.loadbalancer.server.port=8080"
- "traefik.http.routers.neko-rooms.entrypoints=${NEKO_ROOMS_TRAEFIK_ENTRYPOINT}"
- "traefik.http.routers.neko-rooms.rule=Host(`${NEKO_ROOMS_TRAEFIK_DOMAIN}`)"
# OPTIONAL: Enable authentication.
# - "traefik.http.middlewares.nrooms-auth.basicauth.usersfile=/usersfile"
# - "traefik.http.routers.neko-rooms.middlewares=nrooms-auth"

0 comments on commit 3bad871

Please sign in to comment.