Initial commit; setting up raine to serve simple static site plus gitea.
This commit is contained in:
21
caddy/Caddyfile
Normal file
21
caddy/Caddyfile
Normal 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
18
caddy/compose.yml
Normal 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:
|
||||
1
caddy/site/chunli.net/index.html
Normal file
1
caddy/site/chunli.net/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Hello this is chunli.net</h1>
|
||||
1
caddy/site/oversteep.com/index.html
Normal file
1
caddy/site/oversteep.com/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Hello from raine! This is oversteep.com</h1>
|
||||
Reference in New Issue
Block a user