From 9fbd5e5627a97d22faeef0fefe5f661a5f955cd2 Mon Sep 17 00:00:00 2001 From: ange Date: Sun, 4 Feb 2024 11:15:15 +0100 Subject: [PATCH] feat: remove lazylibrarian --- lazylibrarian/.env | 6 ------ lazylibrarian/Dockerfile | 17 ----------------- lazylibrarian/compose.yaml | 36 ------------------------------------ lazylibrarian/config.ini | 4 ---- lazylibrarian/install_site | 1 - lazylibrarian/nginx.conf | 29 ----------------------------- 6 files changed, 93 deletions(-) delete mode 100644 lazylibrarian/.env delete mode 100644 lazylibrarian/Dockerfile delete mode 100644 lazylibrarian/compose.yaml delete mode 100644 lazylibrarian/config.ini delete mode 120000 lazylibrarian/install_site delete mode 100644 lazylibrarian/nginx.conf diff --git a/lazylibrarian/.env b/lazylibrarian/.env deleted file mode 100644 index ce897e5..0000000 --- a/lazylibrarian/.env +++ /dev/null @@ -1,6 +0,0 @@ -BASE_URL=lazylibrarian. -EMAIL= -MEDIA_PATH= - -PUID=1000 -PGID=1000 diff --git a/lazylibrarian/Dockerfile b/lazylibrarian/Dockerfile deleted file mode 100644 index 4c5f963..0000000 --- a/lazylibrarian/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM docker.io/python:3.12-slim as base -ENV DEBIAN_FRONTEND=noninteractive -WORKDIR /app/ - -FROM base as build -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - git \ - && rm -rf /var/lib/apt/lists/* -ARG LL='https://gitlab.com/LazyLibrarian/LazyLibrarian.git' -RUN git clone --depth 1 "$LL" . - -FROM base -COPY --from=build /app/ . -EXPOSE 5299 -RUN pip install --no-cache-dir . -CMD ["python", "LazyLibrarian.py", "--datadir", "/config", "--nolaunch"] diff --git a/lazylibrarian/compose.yaml b/lazylibrarian/compose.yaml deleted file mode 100644 index 8d9100c..0000000 --- a/lazylibrarian/compose.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -services: - install_site: - build: install_site - environment: - - BASE_URL - - EMAIL - volumes: - - ./nginx.conf:/web/lazylibrarian.conf - - sites:/sites/ - - certs:/etc/letsencrypt/ - - certbotroot:/var/www/certbot/ - - /var/run/docker.sock:/var/run/docker.sock - - lazilibrarian: - build: . - user: "$PUID:PGID" - restart: unless-stopped - volumes: - - config:/config/ - - $MEDIA_PATH:/data/ - networks: - - nginx - -volumes: - sites: - external: true - certs: - external: true - certbotroot: - external: true - config: - -networks: - nginx: - external: true diff --git a/lazylibrarian/config.ini b/lazylibrarian/config.ini deleted file mode 100644 index 144be74..0000000 --- a/lazylibrarian/config.ini +++ /dev/null @@ -1,4 +0,0 @@ -[General] -logdir = /config/log -destination_dir = /data/media/books -download_dir = /data/torrents diff --git a/lazylibrarian/install_site b/lazylibrarian/install_site deleted file mode 120000 index 846f55c..0000000 --- a/lazylibrarian/install_site +++ /dev/null @@ -1 +0,0 @@ -../_nginx/install_site \ No newline at end of file diff --git a/lazylibrarian/nginx.conf b/lazylibrarian/nginx.conf deleted file mode 100644 index d6d49d7..0000000 --- a/lazylibrarian/nginx.conf +++ /dev/null @@ -1,29 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name $BASE_URL; - - return 301 https://$host$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name $BASE_URL; - - ssl_certificate /etc/letsencrypt/live/$BASE_URL/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem; - - location / { - proxy_pass http://lazylibrarian:5299; - - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $http_connection; - proxy_redirect off; - proxy_http_version 1.1; - } -}