1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 08:05:02 +00:00

keiu.net → fogtype.com

This commit is contained in:
Nebel 2022-12-25 15:19:12 +09:00
parent 7b3955f233
commit e345ed5415
5 changed files with 16 additions and 19 deletions

View file

@ -8,4 +8,4 @@ jobs:
steps:
- 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@keiu.net 'sh -c "cd ~/keiu.net && git pull --rebase && docker compose up --detach --remove-orphans"'
- run: ssh -i ~/.ssh/deploy_key -o 'StrictHostKeyChecking no' kou029w@fogtype.com 'sh -c "cd ~/keiu.net && git pull --rebase && docker compose up --detach --remove-orphans"'

View file

@ -1,4 +1,4 @@
# ほんの少し降る雨
# Fogtype
## 前提
@ -9,9 +9,9 @@
Git リポジトリを取得し、設定ファイルを配置
```bash
ssh kou029w@keiu.net
git clone git@github.com:kou029w/keiu.net.git
cd keiu.net
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
```

View file

@ -13,7 +13,6 @@ services:
- caddy_data:/data
- caddy_config:/config
networks:
- keiu
- fogtype
dns:
image: coredns/coredns:1.10.0@sha256:017727efcfeb7d053af68e51436ce8e65edbc6ca573720afb4f79c8594036955
@ -29,7 +28,7 @@ services:
- caddy_data:/var/lib/caddy/data
command: "-conf /etc/coredns/Corefile"
networks:
- keiu
- fogtype
gts:
image: superseriousbusiness/gotosocial:0.6.0@sha256:c3dbefe684529c7f97eb7d221f64bd9d14bd9c94e6543e6a8afe5a3469a9d77e
restart: unless-stopped
@ -49,7 +48,6 @@ volumes:
caddy_config:
gotosocial_data:
networks:
keiu:
fogtype:
ipam:
driver: default

View file

@ -1,13 +1,5 @@
keiu.net {
file_server
reverse_proxy /dns-query https://dns {
transport http {
tls_server_name keiu.net
}
}
}
www.keiu.net {
redir https://keiu.net{uri} 308
keiu.net, www.keiu.net {
redir https://fogtype.com{uri} 308
}
fogtype.com {
reverse_proxy http://gts:8080
@ -15,3 +7,10 @@ fogtype.com {
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
}
}
}

View file

@ -1,5 +1,5 @@
https://. tls://. . {
tls /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/keiu.net/keiu.net.crt /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/keiu.net/keiu.net.key
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
hosts {