aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-05-07 07:26:01 +0000
committerterminaldweller <devi@terminaldweller.com>2023-05-07 07:26:01 +0000
commit3315acb9ca79b2f6bbd68ec99c4506fc3ae7ca92 (patch)
tree4f0c5e66c2a824a2420ec211ee0585bece03fda8 /terminaldweller.com/cgit
parentupdate (diff)
downloadscripts-3315acb9ca79b2f6bbd68ec99c4506fc3ae7ca92.tar.gz
scripts-3315acb9ca79b2f6bbd68ec99c4506fc3ae7ca92.zip
update
Diffstat (limited to 'terminaldweller.com/cgit')
-rwxr-xr-xterminaldweller.com/cgit/bootstrap/cron4
-rw-r--r--terminaldweller.com/cgit/cgit.conf4
-rw-r--r--terminaldweller.com/cgit/docker-compose.yaml3
3 files changed, 8 insertions, 3 deletions
diff --git a/terminaldweller.com/cgit/bootstrap/cron b/terminaldweller.com/cgit/bootstrap/cron
new file mode 100755
index 0000000..abfd125
--- /dev/null
+++ b/terminaldweller.com/cgit/bootstrap/cron
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+. /bootstrap.sh
+update_repos
diff --git a/terminaldweller.com/cgit/cgit.conf b/terminaldweller.com/cgit/cgit.conf
index 82a9877..d2c6023 100644
--- a/terminaldweller.com/cgit/cgit.conf
+++ b/terminaldweller.com/cgit/cgit.conf
@@ -2,8 +2,8 @@ server.modules += ( "mod_cgi", "mod_rewrite", "mod_openssl", "mod_setenv" )
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
- ssl.pemfile = "/etc/certs/fullchain1.pem"
- ssl.privkey = "/etc/certs/privkey1.pem"
+ ssl.pemfile = "/etc/letsencrypt/live/git.terminaldweller.com/fullchain.pem"
+ ssl.privkey = "/etc/letsencrypt/live/git.terminaldweller.com/privkey.pem"
setenv.add-response-header = (
"Strict-Transport-Security"=>"max-age=63072000; includeSubdomains",
diff --git a/terminaldweller.com/cgit/docker-compose.yaml b/terminaldweller.com/cgit/docker-compose.yaml
index f1344f5..59ec298 100644
--- a/terminaldweller.com/cgit/docker-compose.yaml
+++ b/terminaldweller.com/cgit/docker-compose.yaml
@@ -23,7 +23,8 @@ services:
# - /etc/hosts:/etc/hosts:ro
# - /etc/localtime:/etc/localtime:ro
- ./cgit.conf:/etc/lighttpd/cgit.conf:ro
- - /etc/letsencrypt/archive/git.terminaldweller.com/:/etc/certs/:ro
+ - /etc/letsencrypt/archive/git.terminaldweller.com/fullchain.pem:/etc/letsencrypt/archive/git.terminaldweller.com/fullchain.pem:ro
+ - /etc/letsencrypt/archive/git.terminaldweller.com/privkey.pem:/etc/letsencrypt/archive/git.terminaldweller.com/privkey.pem:ro
- cache:/cgit_cache
- ./authorized_keys:/home/git/.ssh/authorized_keys
bootstrap: