Initial commit; setting up raine to serve simple static site plus gitea.

This commit is contained in:
2026-04-17 15:40:46 -07:00
commit 753be86ca4
7 changed files with 173 additions and 0 deletions

21
caddy/Caddyfile Normal file
View File

@@ -0,0 +1,21 @@
# All sites are served over HTTP because Cloudflare tunnel handles TLS termination.
# http:// prefix disables Caddy's automatic HTTPS since certs are managed upstream.
http://oversteep.com {
encode zstd gzip
root * /srv/oversteep.com
file_server
}
http://chunli.net {
encode zstd gzip
root * /srv/chunli.net
file_server
}
http://git.chunli.net {
encode zstd gzip
reverse_proxy host.docker.internal:3000 {
header_up X-Forwarded-Proto https
}
}

18
caddy/compose.yml Normal file
View File

@@ -0,0 +1,18 @@
services:
caddy:
container_name: caddy
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
caddy_data:
caddy_config:

View File

@@ -0,0 +1 @@
<h1>Hello this is chunli.net</h1>

View File

@@ -0,0 +1 @@
<h1>Hello from raine! This is oversteep.com</h1>