From 34973be9cc099ada3f5bc09d62305f9d3073b7be Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 19 Dec 2022 21:43:41 +0900 Subject: [PATCH] fogtype.com --- compose.yml | 26 ++++++++++++++++++++++++++ etc/caddy/Caddyfile | 6 ++++++ etc/gotosocial/config.yaml | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 etc/gotosocial/config.yaml diff --git a/compose.yml b/compose.yml index a57392d..a627f0d 100644 --- a/compose.yml +++ b/compose.yml @@ -12,6 +12,9 @@ services: - ./srv:/srv - caddy_data:/data - caddy_config:/config + networks: + - keiu + - fogtype dns: image: coredns/coredns:1.10.0@sha256:017727efcfeb7d053af68e51436ce8e65edbc6ca573720afb4f79c8594036955 restart: unless-stopped @@ -25,6 +28,29 @@ services: - ./etc/coredns:/etc/coredns - caddy_data:/var/lib/caddy/data command: "-conf /etc/coredns/Corefile" + networks: + - keiu + gts: + image: superseriousbusiness/gotosocial:0.6.0 + restart: unless-stopped + expose: ["8080"] + environment: + GTS_HOST: fogtype.com + GTS_TRUSTED_PROXIES: 172.30.0.0/24 + volumes: + - ./etc/gotosocial:/etc/gotosocial + - gotosocial_data:/gotosocial/storage + command: "--config-path /etc/gotosocial/config.yaml" + networks: + - fogtype volumes: caddy_data: caddy_config: + gotosocial_data: +networks: + keiu: + fogtype: + ipam: + driver: default + config: + - subnet: 172.30.0.0/24 diff --git a/etc/caddy/Caddyfile b/etc/caddy/Caddyfile index f6b1eba..e39882d 100644 --- a/etc/caddy/Caddyfile +++ b/etc/caddy/Caddyfile @@ -14,3 +14,9 @@ keiu.net { www.keiu.net { redir https://keiu.net{uri} 308 } +fogtype.com { + reverse_proxy http://gts:8080 +} +www.fogtype.com { + redir https://fogtype.com{uri} 308 +} diff --git a/etc/gotosocial/config.yaml b/etc/gotosocial/config.yaml new file mode 100644 index 0000000..3be03e4 --- /dev/null +++ b/etc/gotosocial/config.yaml @@ -0,0 +1,2 @@ +db-type: sqlite +db-address: sqlite.db