seafile back to nginx and jellyfin to domain in caddy

This commit is contained in:
2024-11-20 13:55:11 +01:00
parent d0f703472f
commit 0e8e8a13c6
4 changed files with 48 additions and 10 deletions

View File

@@ -1,3 +1,13 @@
{
dynamic_dns {
provider route53
domains {
veenboer.xyz rik
}
check_interval 1m
}
}
rik.veenboer.xyz \
*.rik.veenboer.xyz \
{
@@ -8,6 +18,9 @@ rik.veenboer.xyz \
secret_access_key {$AWS_SECRET_ACCESS_KEY}
}
}
route {
reverse_proxy /test/* host:8097
}
}
(unprotected) {
@@ -23,6 +36,7 @@ import unprotected jupyter host:9999
import unprotected grafana host:3333
import unprotected pgadmin host:5050
import unprotected homarr host:17575
import unprotected jellyfin host:8097
import unprotected jellyseerr host:15055
(authentik) {
@@ -79,16 +93,18 @@ insecure.rik.veenboer.xyz {
}
}
seafile.rik.veenboer.xyz {
unused.rik.veenboer.xyz {
handle {
# import authentik
reverse_proxy http://host:8100
reverse_proxy host:8100
}
handle_path /seafhttp* {
reverse_proxy http://host:8100
}
handle /seafhttp* {
uri strip_prefix seafhttp
reverse_proxy host:8182
}
handle /seafdav* {
reverse_proxy http://host:8180
handle /seafdav* {
reverse_proxy host:8180
}
}

View File

@@ -1,8 +1,10 @@
FROM caddy:2.7-builder AS builder
FROM caddy:2.9-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/route53
--with github.com/caddy-dns/route53 \
--with github.com/mholt/caddy-dynamicdns
FROM caddy:2.7-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

View File

@@ -6,6 +6,7 @@ services:
depends_on:
- nginx
environment:
- AWS_REGION=eu-west-1
- AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:?}"
- AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:?}"
image: caddy
@@ -16,6 +17,6 @@ services:
restart: unless-stopped
volumes:
- /opt/caddy/Caddyfile:/etc/caddy/Caddyfile
- /opt/caddy/data:/data
- /opt/caddy/data:/data/caddy
extra_hosts:
- host:192.168.2.200

View File

@@ -87,3 +87,22 @@ server {
include /etc/nginx/conf/proxy.conf;
}
}
server {
# seafile
listen 80;
server_name seafile.rik.veenboer.xyz;
location / {
proxy_pass http://host:8100;
include /etc/nginx/conf/proxy.conf;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://host:8182;
client_max_body_size 0;
}
location /seafdav {
proxy_pass http://host:8180;
include /etc/nginx/conf/proxy.conf;
}
}