From 24fe7e7bfa6034a1bbea13afa7ddcec8f1bf2d4a Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 6 Sep 2022 08:45:01 +0200 Subject: [PATCH] feat(libreddit): allow exposure and domain name --- apps/libreddit/config.json | 3 ++- apps/libreddit/docker-compose.arm.yml | 7 +++++++ apps/libreddit/docker-compose.yml | 8 ++++++++ apps/schema.json | 3 +++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/apps/libreddit/config.json b/apps/libreddit/config.json index 9ee7372e..75660f1c 100644 --- a/apps/libreddit/config.json +++ b/apps/libreddit/config.json @@ -2,9 +2,10 @@ "$schema": "../schema.json", "name": "LibReddit", "available": true, + "exposable": true, "port": 8105, "id": "libreddit", - "tipi_version": 1, + "tipi_version": 2, "version": "latest", "categories": ["social"], "description": "LibReddit is a bloat free reddit frontend written in Rust, no ads, no tracking and strong Content Security Policy prevents any request from going to reddit, everything is proxied.", diff --git a/apps/libreddit/docker-compose.arm.yml b/apps/libreddit/docker-compose.arm.yml index 1ab9b6c3..b9001bf0 100644 --- a/apps/libreddit/docker-compose.arm.yml +++ b/apps/libreddit/docker-compose.arm.yml @@ -10,3 +10,10 @@ services: restart: unless-stopped networks: - tipi_main_network + labels: + traefik.enable: ${APP_EXPOSED} + traefik.http.routers.libreddit.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.libreddit.entrypoints: websecure + traefik.http.routers.libreddit.service: libreddit + traefik.http.routers.libreddit.tls.certresolver: myresolver + traefik.http.services.libreddit.loadbalancer.server.port: 8080 \ No newline at end of file diff --git a/apps/libreddit/docker-compose.yml b/apps/libreddit/docker-compose.yml index b5eaa195..9cb9e884 100644 --- a/apps/libreddit/docker-compose.yml +++ b/apps/libreddit/docker-compose.yml @@ -10,3 +10,11 @@ services: restart: unless-stopped networks: - tipi_main_network + labels: + traefik.enable: ${APP_EXPOSED} + traefik.http.routers.libreddit.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.libreddit.entrypoints: websecure + traefik.http.routers.libreddit.service: libreddit + traefik.http.routers.libreddit.tls.certresolver: myresolver + traefik.http.services.libreddit.loadbalancer.server.port: 8080 + diff --git a/apps/schema.json b/apps/schema.json index 2fca809b..8865d944 100644 --- a/apps/schema.json +++ b/apps/schema.json @@ -12,6 +12,9 @@ "available": { "type": "boolean" }, + "exposable": { + "type": "boolean" + }, "port": { "type": "integer", "minimum": 0,