From 0f0e8c6a5123def82c8e3d26de4fabd3e30d67d8 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 26 Jan 2023 23:09:03 +0330 Subject: update --- terminaldweller.com/cgit/authorized_keys | 1 + terminaldweller.com/cgit/bootstrap/Dockerfile | 2 +- terminaldweller.com/cgit/cgit/Dockerfile | 1 + terminaldweller.com/cgit/cgit/cgitrc | 5 +++-- terminaldweller.com/cgit/docker-compose.yaml | 16 ++++++++++------ 5 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 terminaldweller.com/cgit/authorized_keys (limited to 'terminaldweller.com/cgit') diff --git a/terminaldweller.com/cgit/authorized_keys b/terminaldweller.com/cgit/authorized_keys new file mode 100644 index 0000000..8bd899d --- /dev/null +++ b/terminaldweller.com/cgit/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCv7DZhAcOd6MELOY/6gDfdm8RxE29m0kygA50CtXc10Viza54UT5zaCmQ4AFPUztC8zZYR/dqVkxPox443qfbC+N+KJ4prlKZOGOlVVJp+b4EgByQ2VDAQqbuE5rLqsETglgH5IfYct5WiO4DpZ3Ta+w+AkTZYgsVHCdN7i3dQBSGMVvdNxSrLgB5Dr1xTp0qQDM5J+4F8yqWohCSsChX+jGrY04bLYXzYvwVg9O4TB685izT/3YpmFAdN3PJsWt1VaSlYbe03Dn5kxOedX4mK51fkwD+qIlQ2EaFPNjpYYb4ecRKYIPx+0PwcPgEbkiuvBGCaAz9sD231IDJZhZWWkyb9PlgCI3FQh05N/ycbb4Uhe1vKq3rISbscfjK2ZBGVsrammbimihD/SzTisKMfiRhNi2vNgOn1p6ss7TAmpOaub8EfUBvpy5zaTn4ImbnD7QWWDeMrxfiV7TWczqmryPn+IMjlVR+PZIUnF3v+ki8BosA2/FpQmH5krAYuP+SbxtQx7i8VUCkTPQkjkj6Ts270Kf04hNi8RCSTQUV4KbXf96Az4Q2Vpjl1sa0wbrWOITt+nYkYQk+kuOxMdnbWScmC8kZShSzGR4bcvmk4P7ALWy2QW9iwGUCCqDzZPScQV0eLlQfyVHQyOebeiHHbQJ/3ln4tJijsBRYY0/6nsw== devi@DeviBox diff --git a/terminaldweller.com/cgit/bootstrap/Dockerfile b/terminaldweller.com/cgit/bootstrap/Dockerfile index be4f278..a1c2ea8 100644 --- a/terminaldweller.com/cgit/bootstrap/Dockerfile +++ b/terminaldweller.com/cgit/bootstrap/Dockerfile @@ -4,7 +4,7 @@ RUN apk update && apk add --no-cache git apk-cron # RUN rc-service crond start && rc-update add crond COPY ./bootstrap.sh /bootstrap.sh COPY ./docker-entrypoint.sh /docker-entrypoint.sh -COPY ./cron /etc/periodic/15min/cron +COPY ./cron /etc/periodic/daily/cron # COPY ./crontab /etc/crontabs/root # RUN chmod 0744 /bootstrap.sh ENTRYPOINT ["/docker-entrypoint.sh"] diff --git a/terminaldweller.com/cgit/cgit/Dockerfile b/terminaldweller.com/cgit/cgit/Dockerfile index 7ef7134..be2e5ef 100644 --- a/terminaldweller.com/cgit/cgit/Dockerfile +++ b/terminaldweller.com/cgit/cgit/Dockerfile @@ -3,3 +3,4 @@ RUN apk add && apk add --no-cache python3 py3-pip RUN pip3 install pygments RUN pip3 install md2html RUN pip3 install markdown +RUN mkdir -p /cgit_cache/ && chown git:git /cgit_cache diff --git a/terminaldweller.com/cgit/cgit/cgitrc b/terminaldweller.com/cgit/cgit/cgitrc index 90abd90..a4944e9 100644 --- a/terminaldweller.com/cgit/cgit/cgitrc +++ b/terminaldweller.com/cgit/cgit/cgitrc @@ -5,6 +5,7 @@ # Enable caching of up to 1000 output entries # cache-size=100 +cache-root=/cgit_cache ## ttl for root page cache-root-ttl=5 @@ -62,7 +63,7 @@ max-stats=year local-time=1 root-title=cGit -root-desc=Keep ALL the stuff in VERSION CONTROL!! +root-desc=terminaldweller's personal git root-readme=/var/www/about.html # footer=/var/www/footer.html @@ -84,7 +85,7 @@ about-filter=/usr/lib/cgit/filters/about-formatting.sh snapshots=tar.gz zip # Specify some default clone urls using macro expansion -clone-url=ssh://git@hostname.local:64822~repositories/$CGIT_REPO_URL git@hostname.local:/home/git/repositories/$CGIT_REPO_URL +clone-url=https://git.terminaldweller.com/$CGIT_REPO_URL ssh://git@git.terminaldweller.com/$CGIT_REPO_URL git@git.terminaldweller.com:$CGIT_REPO_URL ## ## List of common mimetypes diff --git a/terminaldweller.com/cgit/docker-compose.yaml b/terminaldweller.com/cgit/docker-compose.yaml index 3fe10ae..f1344f5 100644 --- a/terminaldweller.com/cgit/docker-compose.yaml +++ b/terminaldweller.com/cgit/docker-compose.yaml @@ -8,12 +8,13 @@ services: - cgitnet ports: - "127.0.0.1:8041:80" - - "127.0.0.1:8042:22" + - "8042:22" - "8043:443" restart: unless-stopped environment: - PGID=1000 - PUID=1000 + - PYGMENTIZE_STYLE=paraiso-dark volumes: - ./cgit/cgitrc:/etc/cgitrc:ro - storage:/home/git/repositories @@ -23,6 +24,8 @@ services: # - /etc/localtime:/etc/localtime:ro - ./cgit.conf:/etc/lighttpd/cgit.conf:ro - /etc/letsencrypt/archive/git.terminaldweller.com/:/etc/certs/:ro + - cache:/cgit_cache + - ./authorized_keys:/home/git/.ssh/authorized_keys bootstrap: image: bootstrap build: @@ -34,14 +37,15 @@ services: entrypoint: ["/docker-entrypoint.sh"] # cap_drop: # - ALL - healthcheck: - test: exit 1 - interval: 1d - timeout: 10s - retries: 1 + # healthcheck: + # test: exit 1 + # interval: 1d + # timeout: 10s + # retries: 1 restart: unless-stopped networks: cgitnet: bootstrapnet: volumes: storage: + cache: -- cgit v1.2.3