Compare commits

...

2 Commits

Author SHA1 Message Date
ead848575f Add analytics. Invert gitignore 2021-12-04 23:13:12 +01:00
4d87b20740 Add links to other repos 2021-09-05 16:22:51 +02:00
4 changed files with 35 additions and 9 deletions

16
.gitignore vendored
View File

@@ -1,12 +1,10 @@
.env **/*
!.gitignore
traefik/acme.json !README.md
traefik/certs/ !docker-compose.yaml
traefik/traefik.log
traefik/config/old.yaml
authelia/db.sqlite3 !traefik/traefik.yaml
authelia/notification.txt !traefik/config/*
authelia/users_database.yml
homer/ !authelia/configuration.yaml

View File

@@ -62,3 +62,11 @@ A bridge network for containers that shall be accessible by web interface. Route
- Authelia will ONLY work with https. Both the authelia url itself and the one being authenticated must be https. - Authelia will ONLY work with https. Both the authelia url itself and the one being authenticated must be https.
- The authorization link should NOT end with `/#/` or `/%2F/` or anything, just `/`. Otherwise it will not redirect you back after authorizing. - The authorization link should NOT end with `/#/` or `/%2F/` or anything, just `/`. Otherwise it will not redirect you back after authorizing.
# Docker-compose pieces that depend on this
- [SSH entrypoint](/thomas/docker-ssh/)
- [Home Automation](/thomas/docker-ha/)
- [GIT server](/thomas/docker-git/)
- [Plex media server](/thomas/docker-plex/)

View File

@@ -23,6 +23,8 @@ services:
container_name: traefik container_name: traefik
image: traefik image: traefik
restart: always restart: always
depends_on:
- authelia
environment: environment:
- EMAIL - EMAIL
- PRIVATE_DOMAIN - PRIVATE_DOMAIN
@@ -41,6 +43,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./traefik:/data - ./traefik:/data
- /var/log/traefik:/log
healthcheck: healthcheck:
# Sometimes, traefik loses connection to authelia. The only thing that works then is a restart, handled by autoheal. # Sometimes, traefik loses connection to authelia. The only thing that works then is a restart, handled by autoheal.
# I haven't checked for quite a while if this is still a problem, but might as well leave it in there. # I haven't checked for quite a while if this is still a problem, but might as well leave it in there.
@@ -110,6 +113,19 @@ services:
traefik.http.routers.dozzle.tls.certResolver: le traefik.http.routers.dozzle.tls.certResolver: le
traefik.http.routers.dozzle.middlewares: auth@file traefik.http.routers.dozzle.middlewares: auth@file
analytics:
image: gregyankovoy/goaccess
volumes:
- ./analytics:/config
- /var/log/traefik:/opt/log
networks:
web:
labels:
traefik.enable: true
traefik.http.routers.analytics.rule: Host(`analytics.${PRIVATE_DOMAIN}`)
traefik.http.routers.analytics.tls.certResolver: le
traefik.http.routers.analytics.middlewares: auth@file
# labels: # labels:
# The following three labels are always needed. Make sure to replace <SERVICE> with a unique name # The following three labels are always needed. Make sure to replace <SERVICE> with a unique name

View File

@@ -13,6 +13,10 @@ providers:
log: log:
filePath: /data/traefik.log filePath: /data/traefik.log
level: INFO level: INFO
# level: DEBUG
accessLog:
filePath: /log/access.log
entryPoints: entryPoints:
web: web: