-
Notifications
You must be signed in to change notification settings - Fork 1
/
autoindex.yml
26 lines (26 loc) · 932 Bytes
/
autoindex.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
services:
# Autoindex - Simple Directory Index
autoindex:
container_name: autoindex
image: dceoy/nginx-autoindex:latest
security_opt:
- no-new-privileges:true
restart: unless-stopped
profiles: ["apps", "all"]
networks:
- t3_proxy
# ports:
# - "$AUTOINDEX_PORT:80"
volumes:
#- $USERDIR:/var/lib/nginx/html:ro # Location you want to index
- $EXTDRIVE:/var/lib/nginx/html:ro # Location you want to index
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.autoindex-rtr.entrypoints=websecure"
- "traefik.http.routers.autoindex-rtr.rule=Host(`index.$DOMAINNAME_HS`)"
# Middlewares
- "traefik.http.routers.autoindex-rtr.middlewares=chain-oauth@file"
# HTTP Services
- "traefik.http.routers.autoindex-rtr.service=autoindex-svc"
- "traefik.http.services.autoindex-svc.loadbalancer.server.port=80"