added anubis to protect from malicious crawlers
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 50s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 50s
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
blog:
|
anubis-nginx:
|
||||||
image: nginx:alpine
|
image: ghcr.io/techarohq/anubis:latest
|
||||||
restart: always
|
environment:
|
||||||
volumes:
|
BIND: ":8080"
|
||||||
- ./public:/usr/share/nginx/html:ro
|
DIFFICULTY: "4"
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
METRICS_BIND: ":9090"
|
||||||
networks:
|
SERVE_ROBOTS_TXT: "true"
|
||||||
- web
|
TARGET: "http://nginx"
|
||||||
|
POLICY_FNAME: "/data/cfg/botPolicy.yaml"
|
||||||
|
OG_PASSTHROUGH: "true"
|
||||||
|
OG_EXPIRY_TIME: "24h"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.blog.rule=Host(`benno-lorenz.com`) || Host(`www.benno-lorenz.com`)"
|
- "traefik.http.routers.blog.rule=Host(`benno-lorenz.com`) || Host(`www.benno-lorenz.com`)"
|
||||||
@@ -17,6 +20,17 @@ services:
|
|||||||
- "traefik.http.routers.blog.service=blog"
|
- "traefik.http.routers.blog.service=blog"
|
||||||
- "traefik.http.services.blog.loadbalancer.server.port=80"
|
- "traefik.http.services.blog.loadbalancer.server.port=80"
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
|
volumes:
|
||||||
|
- "./botPolicy.yaml:/data/cfg/botPolicy.yaml:ro"
|
||||||
|
nginx:
|
||||||
|
image: nginx:alpine
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./public:/usr/share/nginx/html:ro
|
||||||
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
Reference in New Issue
Block a user