From 8548ea18e4c1219b4475ddcc582d20532386b832 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 27 Jul 2020 21:45:27 +0200 Subject: [PATCH] add rss-bridge role --- rss-bridge/.env | 1 + rss-bridge/docker-compose.yml | 23 +++++++++++++++++++++++ rss-bridge/traefik.yaml | 1 + rss-bridge/whitelist.txt | 15 +++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 rss-bridge/.env create mode 100644 rss-bridge/docker-compose.yml create mode 120000 rss-bridge/traefik.yaml create mode 100644 rss-bridge/whitelist.txt diff --git a/rss-bridge/.env b/rss-bridge/.env new file mode 100644 index 0000000..a69edf2 --- /dev/null +++ b/rss-bridge/.env @@ -0,0 +1 @@ +APP_DOMAIN=rss-bridge.2li.ch diff --git a/rss-bridge/docker-compose.yml b/rss-bridge/docker-compose.yml new file mode 100644 index 0000000..09de107 --- /dev/null +++ b/rss-bridge/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' +services: + traefik: + image: "traefik:v2.2" + ports: + - "443:443" + volumes: + - "./traefik.yaml:/etc/traefik/traefik.yaml:ro" + - "./letsencrypt:/letsencrypt" + - "/var/run/docker.sock:/var/run/docker.sock:ro" + restart: unless-stopped + + rss-bridge: + image: rssbridge/rss-bridge:latest + volumes: + - ./whitelist.txt:/app/whitelist.txt + labels: + - "traefik.enable=true" + - "traefik.http.routers.rss-bridge.rule=Host(`${APP_DOMAIN}`)" + - "traefik.http.routers.rss-bridge.entrypoints=websecure" + - "traefik.http.routers.rss-bridge.tls.certresolver=myresolver" + - "traefik.http.routers.rss-bridge.middlewares=default-headers@file" + restart: unless-stopped diff --git a/rss-bridge/traefik.yaml b/rss-bridge/traefik.yaml new file mode 120000 index 0000000..22cc9b8 --- /dev/null +++ b/rss-bridge/traefik.yaml @@ -0,0 +1 @@ +../traefik.yaml \ No newline at end of file diff --git a/rss-bridge/whitelist.txt b/rss-bridge/whitelist.txt new file mode 100644 index 0000000..6530c32 --- /dev/null +++ b/rss-bridge/whitelist.txt @@ -0,0 +1,15 @@ +Bandcamp +Cryptome +DansTonChat +DuckDuckGo +Facebook +Flickr +GoogleSearch +Identica +Instagram +OpenClassrooms +Pinterest +Scmb +Twitter +Wikipedia +Youtube