1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-02-01 06:38:46 +00:00

Compare commits

...

89 commits

Author SHA1 Message Date
afbf317e04
refactor install script 2024-08-30 18:21:39 +09:00
renovate[bot]
4f8f5f2eda
Pin dependencies 2024-08-04 14:08:32 +00:00
d37ab6f893
use config:best-practices 2024-08-04 23:08:12 +09:00
d99b955e14
fixed deploy workflow 2024-08-04 23:02:20 +09:00
670ca6ee0f
remove aliases 2024-08-04 20:55:42 +09:00
460d16cd24
add makefile 2024-08-04 20:49:26 +09:00
renovate[bot]
beffbf6ed6
Update caddy:2.8.4-alpine Docker digest to 221bcf3 2024-07-24 23:50:07 +00:00
renovate[bot]
6d730a9c63
Update caddy:2.8.4-alpine Docker digest to 7abe52d 2024-07-23 23:59:19 +00:00
renovate[bot]
5b9a0aaf4e
Update caddy:2.8.4-alpine Docker digest to 896c6fb 2024-06-22 17:36:43 +00:00
renovate[bot]
2a43ed49df
Update caddy:2.8.4-alpine Docker digest to 4215a67 2024-06-21 20:32:08 +00:00
renovate[bot]
fd0991030f
Update superseriousbusiness/gotosocial Docker tag to v0.16.0 2024-06-17 02:03:47 +00:00
84a22d0858
remove dns.fogtype.com 2024-06-15 19:20:31 +09:00
renovate[bot]
d5246c9321
Update caddy:2.8.4-alpine Docker digest to a48e22e 2024-06-06 02:36:33 +00:00
renovate[bot]
aa3ee68148
Update caddy Docker tag to v2.8.4 2024-06-05 02:34:15 +00:00
renovate[bot]
3df041824a
Update caddy Docker tag to v2.8.1 2024-05-31 12:00:44 +00:00
renovate[bot]
0086f7dd7f
Update caddy:2.8.0-alpine Docker digest to 111c97d 2024-05-31 12:00:33 +00:00
renovate[bot]
95f19a2fe2
Update caddy Docker tag to v2.8.0 2024-05-30 05:30:13 +00:00
renovate[bot]
e1d279069b
Update alpine Docker tag to v3.20 2024-05-22 23:29:45 +00:00
renovate[bot]
9b3dea60c8
Update caddy:2.7.6-alpine Docker digest to 2e1d459 2024-05-02 20:23:24 +00:00
renovate[bot]
56852ac4bf
Update superseriousbusiness/gotosocial Docker tag to v0.15.0 2024-04-13 14:55:32 +00:00
renovate[bot]
70bd47b38b
Update caddy:2.7.6-alpine Docker digest to 95ce049 2024-03-17 08:43:41 +00:00
renovate[bot]
46910fbc79
Update caddy:2.7.6-alpine Docker digest to f49f4aa 2024-03-16 02:29:15 +00:00
renovate[bot]
6eb25ab3be
Update superseriousbusiness/gotosocial Docker tag to v0.14.2 2024-03-12 05:43:40 +00:00
renovate[bot]
a729ae4581
Update superseriousbusiness/gotosocial Docker tag to v0.14.1 2024-03-09 05:39:38 +00:00
renovate[bot]
e4016ee66e
Update superseriousbusiness/gotosocial Docker tag to v0.14.0 2024-03-07 05:46:03 +00:00
40b5fc9b2e
revert to headscale 0.22.3 2024-02-17 12:30:15 +09:00
4c0934014b
disabled headscale updates 2024-02-17 12:26:38 +09:00
renovate[bot]
b9b82dde35
Update superseriousbusiness/gotosocial Docker tag to v0.13.3 2024-02-16 05:33:56 +00:00
renovate[bot]
5d0aa05c98
Update headscale/headscale:0.23.0 Docker digest to fd2a532 2024-02-16 05:33:46 +00:00
renovate[bot]
a09d5beba5
Update superseriousbusiness/gotosocial Docker tag to v0.13.2 2024-02-07 05:25:07 +00:00
renovate[bot]
4f4076b836
Update caddy:2.7.6-alpine Docker digest to 80ca561 2024-01-30 20:54:56 +00:00
renovate[bot]
7f30a9760f
Update alpine:3.19 Docker digest to c5b1261 2024-01-30 20:54:47 +00:00
renovate[bot]
9ef82e21f1
Update foxcpp/maddy Docker tag to v0.7.1 2024-01-24 15:00:40 +00:00
renovate[bot]
4acbfc6f7c
Update superseriousbusiness/gotosocial Docker tag to v0.13.1 2024-01-10 23:36:33 +00:00
renovate[bot]
5e3a21fbc5
Update superseriousbusiness/gotosocial Docker tag to v0.13.0 2023-12-15 14:51:27 +00:00
renovate[bot]
e7b4aac908
Update caddy Docker tag to v2.7.6 2023-12-10 02:10:52 +00:00
renovate[bot]
cea5dc6bb2
Update alpine Docker tag to v3.19 2023-12-08 02:54:25 +00:00
renovate[bot]
2b0a1d7ab6
Update caddy:2.7.5-alpine Docker digest to 9821d1e 2023-12-02 02:59:03 +00:00
renovate[bot]
8e91ba0c53
Update caddy:2.7.5-alpine Docker digest to 92161de 2023-12-01 05:10:21 +00:00
renovate[bot]
d86715ef27
Update alpine:3.18 Docker digest to 34871e7 2023-12-01 05:10:14 +00:00
renovate[bot]
431ee8752a
Update superseriousbusiness/gotosocial Docker tag to v0.12.2 2023-11-11 02:51:09 +00:00
renovate[bot]
126b27b1ce
Update superseriousbusiness/gotosocial Docker tag to v0.12.1 2023-10-26 09:00:37 +00:00
renovate[bot]
7fc05ddd04
Update superseriousbusiness/gotosocial Docker tag to v0.12.0 2023-10-23 20:35:43 +00:00
renovate[bot]
1394dc296e
Update caddy:2.7.5-alpine Docker digest to f1c092d 2023-10-21 02:54:58 +00:00
renovate[bot]
85b7bfddfe
Update caddy:2.7.5-alpine Docker digest to 841fbf8 2023-10-14 05:38:23 +00:00
renovate[bot]
041bfd7254
Update caddy:2.7.5-alpine Docker digest to a6da3a5 2023-10-13 02:37:53 +00:00
renovate[bot]
029d9d3d83
Update caddy Docker tag to v2.7.5 2023-10-12 05:27:37 +00:00
renovate[bot]
655409542e
Update caddy:2.7.4-alpine Docker digest to 11ae052 2023-09-29 20:07:33 +00:00
renovate[bot]
0b1e8fc021
Update alpine:3.18 Docker digest to eece025 2023-09-29 20:07:24 +00:00
b72bb05429
add access-control-allow-origin 2023-09-25 22:33:03 +09:00
38a7ce63ba
Setup OpenPGP WKS 2023-09-25 22:22:24 +09:00
f7b6f7b244
create reload dns action 2023-09-11 15:43:48 +09:00
08bcab2921
add .well-known/atproto-did 2023-08-26 21:29:22 +09:00
renovate[bot]
4ed77cedfb
Update superseriousbusiness/gotosocial Docker tag to v0.11.1 2023-08-22 23:57:57 +00:00
renovate[bot]
dfae40e945
Update caddy Docker tag to v2.7.4 2023-08-18 05:26:36 +00:00
renovate[bot]
13168cd103
Update superseriousbusiness/gotosocial Docker tag to v0.11.0 2023-08-16 05:29:43 +00:00
renovate[bot]
41366110d5
Update coredns/coredns Docker tag to v1.11.1 2023-08-16 05:29:33 +00:00
renovate[bot]
58a6a176b5
Update caddy Docker tag to v2.7.3 2023-08-15 08:57:44 +00:00
85333dde94
add cron 2023-08-14 17:06:08 +09:00
renovate[bot]
13875b4efd
Update coredns/coredns Docker tag to v1.11.0 2023-08-09 05:35:11 +00:00
renovate[bot]
6672e72cad
Update caddy:2.7.2-alpine Docker digest to fa4988b 2023-08-09 05:35:02 +00:00
renovate[bot]
8b9ca954d6
Update caddy:2.7.2-alpine Docker digest to e9906c7 2023-08-08 05:24:50 +00:00
renovate[bot]
183dd27861
Update caddy Docker tag to v2.7.2 2023-08-04 17:32:25 +00:00
renovate[bot]
6c069911a1
Update superseriousbusiness/gotosocial Docker tag to v0.10.0 2023-07-22 08:15:57 +00:00
5c527a648c
add git.fogtype.com 2023-07-16 23:50:46 +09:00
583ce073ef
remove keiu.net 2023-07-16 23:50:01 +09:00
bd2befd964
remove vikunja 2023-07-09 22:21:55 +09:00
dda81457a1
set concurrency
デプロイ失敗を防ぐ目的
同じタイミングで複数のプロセスがdocker compose upを実行したとき次のようなエラーになる

> Error response from daemon: Renaming a container with the same name as its current name
2023-07-08 20:26:15 +09:00
renovate[bot]
9c8a1dd7ae
Update vikunja/frontend Docker tag to v0.21.0 2023-07-08 08:45:01 +00:00
renovate[bot]
4484b43149
Update vikunja/api Docker tag to v0.21.0 2023-07-08 08:44:53 +00:00
renovate[bot]
9a0e4ce760
Update caddy:2.6.4-alpine Docker digest to 993f27c 2023-06-17 05:56:59 +00:00
renovate[bot]
dbe6cee05b
Update caddy:2.6.4-alpine Docker digest to ca93629 2023-06-16 00:00:14 +00:00
renovate[bot]
5921e77e23
Update foxcpp/maddy Docker tag to v0.7.0 2023-05-29 23:48:36 +00:00
renovate[bot]
ede940e04d
Update superseriousbusiness/gotosocial Docker tag to v0.9.0 2023-05-24 15:13:46 +00:00
e410fa7c8d
Revert "coredns listen on 53"
This reverts commit ea75a82a20.
ホスト側と競合して名前解決に失敗することがあるようなのでやめる。

; Conflicts:
;	etc/coredns/Corefile
2023-05-07 16:47:23 +09:00
28c7c00149
enable derp server 2023-05-06 08:53:55 +09:00
543a2f9dc3
Revert "ACLs"
This reverts commit 8ec1d7eefc.
実験的な機能で危険なのでやめておく。
2023-05-06 00:01:41 +09:00
8ec1d7eefc
ACLs 2023-05-05 23:33:03 +09:00
376fa01400
Revert "setup magic dns"
This reverts commit 24cc4ce9c4.
Android環境で接続できないことがあるようなので戻します。
2023-05-05 15:11:05 +09:00
renovate[bot]
41dd79cfeb
Update headscale/headscale Docker tag to v0.23.0 2023-05-04 18:54:33 +00:00
renovate[bot]
e886730f85
Pin headscale/headscale Docker tag to 3f8d140 2023-05-04 18:54:20 +00:00
24cc4ce9c4
setup magic dns 2023-05-04 23:25:59 +09:00
c2f8038274
add headscale 2023-05-04 22:54:13 +09:00
fc1deb0d7b
remove host-gateway 2023-05-04 22:15:28 +09:00
renovate[bot]
d38034eec7
Pin foxcpp/maddy Docker tag to 616288f 2023-05-04 10:35:03 +00:00
e7dc9e05ce
setup mta-sts policy 2023-05-04 17:58:47 +09:00
93a9c6dea5
add aliases 2023-05-04 17:36:10 +09:00
c1462047e4
replace mox to maddy 2023-05-04 16:21:56 +09:00
renovate[bot]
1fc7dce354
Update caddy:2.6.4-alpine Docker digest to 4dfec6c 2023-05-02 23:20:12 +00:00
24 changed files with 187 additions and 196 deletions

View file

@ -1,11 +1,15 @@
name: deploy
concurrency: fogtype.com
on:
push:
branches: [main]
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: install -m 700 -d ~/.ssh
- run: install -m 600 <(echo '${{ secrets.DEPLOY_KEY }}') ~/.ssh/deploy_key
- run: ssh -i ~/.ssh/deploy_key -o 'StrictHostKeyChecking no' kou029w@fogtype.com 'sh -c "cd ~/fogtype.com && git pull --rebase && docker compose up --detach --remove-orphans"'
- run: install -m 600 <(echo '${{ secrets.DEPLOY_KEY }}') ~/.ssh/id_ed25519
- run: install -m 600 <(echo '${{ secrets.KNOWN_HOSTS }}') ~/.ssh/known_hosts
- run: make deploy

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.deploy_key
.deploy_key.pub
.known_hosts

39
Makefile Normal file
View file

@ -0,0 +1,39 @@
REMOTE_USER := nebel
REMOTE_HOST := fogtype.com
.PHONY: help
help:
@cat README.md
.PHONY: deploy
deploy:
ssh $(REMOTE_USER)@$(REMOTE_HOST) <$@
.PHONY: install
install: .deploy_key .known_hosts
ssh-copy-id -i .deploy_key.pub $(REMOTE_USER)@$(REMOTE_HOST)
scp install $(REMOTE_USER)@$(REMOTE_HOST):install
ssh -t $(REMOTE_USER)@$(REMOTE_HOST) '\
ssh-keygen -t ed25519; \
cat ~/.ssh/id_ed25519.pub; \
./install; \
rm install; \
'
.deploy_key:
ssh-keygen -t ed25519 -C deploy_key -f $@
.known_hosts:
ssh-keyscan -t ed25519 -H $(REMOTE_HOST) >$@
.PHONY: keyrings
keyrings: \
etc/apt/keyrings/docker-archive-keyring.gpg \
etc/apt/keyrings/tailscale-archive-keyring.gpg \
etc/apt/keyrings/docker-archive-keyring.gpg:
curl -sSf --tlsv1.3 https://download.docker.com/linux/ubuntu/gpg \
| gpg --dearmor >$@
etc/apt/keyrings/tailscale-archive-keyring.gpg:
curl -sSf --tlsv1.3 -o $@ https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg

View file

@ -1,23 +1,19 @@
# Fogtype
## 前提
## Runner Registration
- Docker Compose
- systemd
- systemd-journald
Git リポジトリを取得し、設定ファイルを配置
```bash
ssh kou029w@fogtype.com
git clone git@github.com:kou029w/fogtype.com.git
cd fogtype.com
sudo install -m 644 {,/}etc/docker/daemon.json
sudo systemctl restart docker
```
$ make install
```
## 構築
secrets.DEPLOY_KEY
: SSH identity file
secrets.KNOWN_HOSTS
: SSH known_hosts file
## Deploy
```sh
docker compose up -d
```
$ make deploy
```

View file

@ -1,7 +1,7 @@
name: keiunet
name: fogtype
services:
https:
image: caddy:2.6.4-alpine@sha256:eefd3d61e9ee8f35e046f614982d9a970006e3943c6e5f09957a4048f4c80d35
image: caddy:2.8.4-alpine@sha256:221bcf3be161b0d856bdb7bea76b42386d732d19348f79692404829532d83f4a
restart: unless-stopped
ports:
- "80:80"
@ -15,25 +15,8 @@ services:
- caddy_config:/config
networks:
- fogtype
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
image: coredns/coredns:1.10.1@sha256:a0ead06651cf580044aeb0a0feba63591858fb2e43ade8c9dea45a6a89ae7e5e
restart: unless-stopped
expose: ["443"]
ports:
- "53:53/udp"
- "53:53/tcp"
- "853:853"
- "127.0.0.1:9153:9153"
volumes:
- ./etc/coredns:/etc/coredns
- caddy_data:/var/lib/caddy/data
command: "-conf /etc/coredns/Corefile"
networks:
- fogtype
gts:
image: superseriousbusiness/gotosocial:0.8.1@sha256:074c70e3af44289af590dc663015c43b9c789d476d9e00c3565678f179e82e04
image: superseriousbusiness/gotosocial:0.16.0@sha256:54c0e2833f426b810861d8bc7b5633ca8119f2fa234a4ddaeb422519c04fca97
restart: unless-stopped
expose: ["8080"]
environment:
@ -48,51 +31,38 @@ services:
command: "--config-path /etc/gotosocial/config.yaml"
networks:
- fogtype
vikunja-api:
image: vikunja/api:0.20.4@sha256:0f8e00f99120ac677de0764b054e4402f7046077004ff5e26f9146adfaf8b0af
maddy:
image: foxcpp/maddy:0.7.1@sha256:6ab538e2f28baf2324f7cb418c7f9476fd9c7e9fa9b14bc3aecf51a9f6962064
restart: unless-stopped
ports:
- "25:25"
- "465:465"
- "993:993"
environment:
VIKUNJA_SERVICE_FRONTENDURL: https://task.fogtype.com/
VIKUNJA_SERVICE_ENABLEREGISTRATION: "false"
VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_DATABASE_PATH: files/vikunja.db
volumes:
- "vikunja_data:/app/vikunja/files"
networks:
- fogtype
vikunja-frontend:
image: vikunja/frontend:0.20.5@sha256:5aad76d28c5dd8f5f5f4e6d5ba3459138676d37e5f79747f53ce64a52ba78b56
restart: unless-stopped
networks:
- fogtype
mox:
image: r.xmox.nl/mox:v0.0.3-go1.20.3-alpine3.17.3@sha256:12f8a485d8a19cb31625da84d685897acf49568241d350fc6a0dc5e68dbc3cab
restart: on-failure
network_mode: host
environment:
MOX_DOCKER: "yes"
MADDY_HOSTNAME: fogtype.com
MADDY_DOMAIN: fogtype.com
volumes:
- ./etc/maddy:/etc/maddy
- caddy_data:/var/lib/caddy/data:ro
- mox_data:/mox/data
- mox_config:/mox/config
- type: bind
source: ./etc/mox/config/mox.conf
target: /mox/config/mox.conf
- type: bind
source: ./etc/mox/config/domains.conf
target: /mox/config/domains.conf
healthcheck:
test: "netstat -nlt | grep ':25 '"
interval: "1s"
timeout: "1s"
retries: 10
- maddy_data:/data
headscale:
image: headscale/headscale:0.22.3@sha256:aadf29a875bb2ffdf6579869e5759935f7a64b9fd19fcea9d5385c5d7220dc7b
restart: unless-stopped
ports:
- "3478:3478/udp"
- "127.0.0.1:9200:9200"
volumes:
- ./etc/headscale:/etc/headscale
- headscale_data:/var/lib/headscale
networks:
- fogtype
command: headscale serve
volumes:
caddy_data:
caddy_config:
gotosocial_data:
vikunja_data:
mox_data:
mox_config:
maddy_data:
headscale_data:
networks:
fogtype:
ipam:

9
deploy Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -eu
cd "${HOME}/${REMOTE_HOST:-fogtype.com}"
git pull --rebase
docker compose up --detach --remove-orphans
cd -

View file

@ -0,0 +1 @@
Unattended-Upgrade::Allowed-Origins:: "Tailscale:*";

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,5 @@
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: noble
Components: stable
Signed-By: /usr/share/keyrings/docker-archive-keyring.gpg

View file

@ -0,0 +1,5 @@
Types: deb
URIs: https://pkgs.tailscale.com/stable/ubuntu
Suites: noble
Components: main
Signed-By: /usr/share/keyrings/tailscale-archive-keyring.gpg

View file

@ -1,30 +1,30 @@
keiu.net, www.keiu.net {
redir https://fogtype.com{uri} 308
}
read.keiu.net {
redir https://rad.fogtype.com{uri} 308
}
fogtype.com {
handle /.well-known/nostr.json {
header access-control-allow-origin *
header /.well-known/nostr.json access-control-allow-origin *
@exists file
handle @exists {
file_server
}
reverse_proxy /.well-known/mta-sts.txt host.docker.internal:8081
reverse_proxy http://gts:8080
}
www.fogtype.com {
redir https://fogtype.com{uri} 308
}
dns.fogtype.com {
reverse_proxy /dns-query https://dns {
transport http {
tls_server_name dns.fogtype.com
}
net.fogtype.com {
reverse_proxy headscale:8080
}
mta-sts.fogtype.com {
handle /.well-known/mta-sts.txt {
file_server
}
redir / /.well-known/mta-sts.txt
}
task.fogtype.com {
reverse_proxy /.well-known/* vikunja-api:3456
reverse_proxy /api/* vikunja-api:3456
reverse_proxy /dav/* vikunja-api:3456
reverse_proxy vikunja-frontend:80
openpgpkey.fogtype.com {
header access-control-allow-origin *
handle /.well-known/openpgpkey/* {
file_server
}
redir / /.well-known/openpgpkey/fogtype.com/hu/k5iarqu189w6rpg6immh6a3sdiyse3kp
}
git.fogtype.com {
reverse_proxy http://rho.fogtype.com:3000
}

View file

@ -1,12 +0,0 @@
https://. tls://. . {
tls /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.fogtype.com/dns.fogtype.com.crt /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.fogtype.com/dns.fogtype.com.key
reload
prometheus 0.0.0.0:9153
cache 10
hosts {
fallthrough
}
forward . tls://1.1.1.1 tls://1.0.0.1 {
tls_servername tls.cloudflare-dns.com
}
}

View file

@ -1,4 +1,3 @@
{
"live-restore": true,
"log-driver": "journald"
}

18
etc/headscale/config.yaml Normal file
View file

@ -0,0 +1,18 @@
server_url: https://net.fogtype.com
listen_addr: 0.0.0.0:8080
metrics_listen_addr: 0.0.0.0:9200
db_type: sqlite3
db_path: /var/lib/headscale/db.sqlite
private_key_path: /var/lib/headscale/private.key
noise:
private_key_path: /var/lib/headscale/noise_private.key
ip_prefixes:
- fd7a:115c:a1e0::/48
- 100.64.0.0/10
derp:
server:
enabled: true
region_id: 999
region_code: "headscale"
region_name: "Headscale Embedded DERP"
stun_listen_addr: "0.0.0.0:3478"

1
etc/maddy/aliases Normal file
View file

@ -0,0 +1 @@
postmaster@fogtype.com: nebel@fogtype.com

View file

@ -1,45 +0,0 @@
Domains:
fogtype.com:
LocalpartCatchallSeparator: +
DKIM:
Selectors:
2023a:
Expiration: 72h
PrivateKeyFile: dkim/2023a._domainkey.fogtype.com.key.pkcs8.pem
2023b:
Expiration: 72h
PrivateKeyFile: dkim/2023b._domainkey.fogtype.com.key.pkcs8.pem
Sign:
- 2023a
DMARC:
Localpart: dmarc-reports
Account: nebel
Mailbox: DMARC
MTASTS:
PolicyID: 20230420T000000
Mode: enforce
MaxAge: 24h
TLSRPT:
Localpart: tls-reports
Account: nebel
Mailbox: TLSRPT
Accounts:
nebel:
Domain: fogtype.com
Destinations:
nebel: nil
SubjectPass:
Period: 12h
RejectsMailbox: Rejects
AutomaticJunkFlags:
Enabled: true
JunkMailboxRegexp: ^(junk|spam)
NeutralMailboxRegexp: ^(inbox|neutral|postmaster|dmarc|tlsrpt|rejects)
JunkFilter:
Threshold: 0.95
Params:
Onegrams: true
MaxPower: 0.01
TopWords: 10
IgnoreWords: 0.1
RareWords: 2

View file

@ -1,39 +0,0 @@
DataDir: ../data
LogLevel: info
User: 1000
Hostname: fogtype.com
CheckUpdates: true
AdminPasswordFile: adminpasswd
Listeners:
internal:
IPs:
- 127.0.0.1
AccountHTTP:
Enabled: true
Port: 8080
AdminHTTP:
Enabled: true
Port: 8080
MetricsHTTP:
Enabled: true
MTASTSHTTPS:
Enabled: true
Port: 8081
NonTLS: true
public:
IPs:
- ::
TLS:
KeyCerts:
-
CertFile: /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/fogtype.com/fogtype.com.crt
KeyFile: /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/fogtype.com/fogtype.com.key
SMTP:
Enabled: true
Submissions:
Enabled: true
IMAPS:
Enabled: true
Postmaster:
Account: nebel
Mailbox: Postmaster

32
install Executable file
View file

@ -0,0 +1,32 @@
#!/bin/sh
set -eu
REPO=${REPO:-git@github.com:kou029w/fogtype.com.git}
REMOTE_HOST=${REMOTE_HOST:-fogtype.com}
PACKAGES="docker-ce docker-compose-plugin tailscale"
eval "$(
apt-config shell APT_CONF_DIR Dir::Etc::parts/d
apt-config shell APT_SOURCES_DIR Dir::Etc::sourceparts/d
)"
sudo apt-get update -qq
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -qq git rsync
git clone "${REPO}" "${HOME}/${REMOTE_HOST}" ||
git -C "${HOME}/${REMOTE_HOST}" pull --rebase
cd "${HOME}/${REMOTE_HOST}"
sudo rsync -r etc/apt/keyrings/ /usr/share/keyrings/
sudo rsync -r etc/apt/apt.conf.d/ "${APT_CONF_DIR}"
sudo rsync -r etc/apt/sources.list.d/ "${APT_SOURCES_DIR}"
sudo rsync -r etc/docker/ /etc/docker/
cd -
sudo apt-get update -qq
# shellcheck disable=SC2086
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -qq ${PACKAGES}
sudo gpasswd -a "$(whoami)" docker

View file

@ -1,10 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:best-practices",
":automergeAll",
":automergeBranch",
":skipStatusChecks",
"docker:enableMajor",
"docker:pinDigests"
":skipStatusChecks"
]
}

View file

@ -0,0 +1 @@
did:plc:q2jocvzp6nzybaodbajtkqy4

View file

@ -0,0 +1,4 @@
version: STSv1
mode: enforce
max_age: 86400
mx: fogtype.com

View file

@ -0,0 +1 @@
# Policy flags for domain fogtype.com