forked from Artiume/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoindex.yml
More file actions
43 lines (42 loc) · 1.6 KB
/
autoindex.yml
File metadata and controls
43 lines (42 loc) · 1.6 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.7"
networks:
traefik:
name: traefik
services:
## Autoindex - Simple Directory Index
autoindex:
image: dceoy/nginx-autoindex
container_name: autoindex
hostname: autoindex
networks:
traefik:
dns:
- 192.168.1.1
# ports:
# - "8015:80"
volumes:
- ${USERDIR}/media:/var/lib/nginx/html:ro # Location you want to index
labels:
traefik.enable: "true"
traefik.docker.network: traefik
traefik.backend: index
traefik.protocol: http
traefik.port: 80
traefik.frontend.rule: Host:autoindex.$DOMAINNAME,
traefik.frontend.auth.forward.address: http://traefik-forward-auth:4181
traefik.frontend.auth.forward.authResponseHeaders: X-Forwarded-User
traefik.frontend.auth.forward.trustForwardHeader: "true"
traefik.frontend.passHostHeader: "true"
traefik.frontend.headers.SSLForceHost: "true"
traefik.frontend.headers.SSLHost: autoindex.$DOMAINNAME
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.browserXSSFilter: "true"
traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.STSIncludeSubdomains: "true"
traefik.frontend.headers.STSPreload: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
traefik.frontend.headers.frameDeny: "true"
traefik.frontend.headers.customFrameOptionsValue: 'allow-from https://$DOMAINNAME'
restart: always