feat(*): init
This commit is contained in:
commit
d7626fd483
184 files changed
+5558
No files matched your search
@@ -0,0 +1,2 @@
|
||||
FIREFLY_UI_DOMAIN=firefly-ui.localhost
|
||||
CLOUDFLARE_API_TOKEN=
|
||||
@@ -0,0 +1,2 @@
|
||||
.env
|
||||
/Caddyfile
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
admin localhost:2019
|
||||
|
||||
log {
|
||||
format console
|
||||
}
|
||||
|
||||
servers {
|
||||
trusted_proxies cloudflare
|
||||
client_ip_headers Cf-Connecting-Ip
|
||||
}
|
||||
}
|
||||
|
||||
import /etc/caddy/projects.d/*/site.caddy
|
||||
@@ -0,0 +1,3 @@
|
||||
# caddy
|
||||
|
||||
`site.caddy` routes `{$FIREFLY_UI_DOMAIN}` to the project over the external `caddy` network. In a shared Caddy, mount this directory as `/etc/caddy/projects.d/firefly-ui:ro` and set `FIREFLY_UI_DOMAIN`. Keep it portable: domain only from the env, no `tls`, snippets prefixed with `firefly_ui_`.
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
caddy:
|
||||
image: ghcr.io/caddybuilds/caddy-cloudflare:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "0.0.0.0:80:80"
|
||||
- "0.0.0.0:443:443"
|
||||
- "0.0.0.0:443:443/udp"
|
||||
networks:
|
||||
- caddy
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- .:/etc/caddy/projects.d/firefly-ui:ro
|
||||
- caddy_data:/data
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
@@ -0,0 +1,5 @@
|
||||
{$FIREFLY_UI_DOMAIN} {
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy firefly-ui-frontend:3000
|
||||
}
|
||||
Reference in new issue
Block a user