15 Commits

Author SHA1 Message Date
Bram Veenboer
2a470dc869 Add Readerr 2025-06-27 10:55:26 +02:00
Bram Veenboer
ca0f0b0208 Update home assistant to 2025.3 2025-06-24 15:02:06 +02:00
Bram Veenboer
8727499cc4 Correct Caddy ports for dsmr, esphome and homeassistant 2025-06-17 16:19:00 +02:00
Bram Veenboer
764ebb400a Rename docker-compose.*.yaml to compose*.yaml 2025-06-17 16:06:35 +02:00
Bram Veenboer
ea4b32d2ce Update jellyfin to 10.10.7 2025-06-12 21:20:05 +02:00
Bram Veenboer
90821f7635 Remove trailing / from caddy pathproxy 2025-06-12 21:19:48 +02:00
Bram Veenboer
05107b8b6f Update photoprism to 250426 2025-06-06 20:02:07 +02:00
Bram Veenboer
8189dd70dd Use Caddy as reverse proxy instead of nginx 2025-05-05 11:37:52 +02:00
Bram Veenboer
575675f9b3 Remove unused openvpn configuration 2025-05-05 10:11:38 +02:00
Bram Veenboer
472b0db3b3 Add caddy config files 2025-05-05 10:11:14 +02:00
Bram Veenboer
837a7ec22d Rename .yml to .yaml 2025-05-05 10:11:12 +02:00
Bram Veenboer
b590536512 Add nginx config files 2025-05-04 12:30:35 +02:00
Bram Veenboer
2026160b19 Swtich dns-ad-blocker server 2025-05-04 12:24:46 +02:00
Bram Veenboer
6eca3d5041 Set timezone to Europe/Amsterdam 2025-04-13 09:47:44 +02:00
Bram Veenboer
4d04103ffe Update rsnapshot for updated container interface
A linuxserver/rsnapshot image update without tag update broke compatibility.
2025-04-13 09:47:33 +02:00
39 changed files with 361 additions and 72 deletions

41
caddy/Caddyfile Normal file
View File

@@ -0,0 +1,41 @@
(unprotected) {
{args[0]}.{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/{args[0]}.log
}
reverse_proxy {args[1]}
}
}
(pathproxy) {
handle /{args[0]}* {
reverse_proxy http://{args[1]}
}
}
import unprotected seafile host:8082
import unprotected grafana host:3333
import unprotected photoprism host:2342
import unprotected dsmr host:8888
import unprotected esp host:6052
import unprotected ha host:8123
{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/path.log
}
import pathproxy jellyfin host:8097
import pathproxy transmission host:9091
import pathproxy sonarr host:18989
import pathproxy radarr host:17878
import pathproxy readarr host:18787
import pathproxy lidarr host:18686
import pathproxy bazarr host:16767
import pathproxy facette host:12003
import pathproxy gitlab host:19080
import pathproxy filebrowser host:8001
import pathproxy plik host:8087
import pathproxy droppy host:19898
import pathproxy ghost host:2368
import pathproxy jackett host:9117
}

8
caddy/Dockerfile Normal file
View File

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

View File

@@ -4,7 +4,7 @@ services:
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- TZ=Europe/Amsterdam
image: linuxserver/bazarr:v1.4.2-ls246
ports:
- 16767:6767

View File

@@ -6,14 +6,19 @@ services:
depends_on:
- nginx
environment:
- DOMAIN=veenboer.xyz
- SUBDOMAIN=bram
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:?}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:?}
image: caddy
links:
- nginx
ports:
- 444:443
- 443:443
restart: unless-stopped
volumes:
- /opt/caddy/Caddyfile:/etc/caddy/Caddyfile
- /opt/caddy/data:/data
- /opt/caddy/logs:/var/log
extra_hosts:
- host:192.168.2.150

View File

@@ -5,9 +5,9 @@ services:
- AUTO_UPDATE=1
- BRANCH=master
- DNSCRYPT=1
- DNSCRYPT_PROVIDER_NAME=2.dnscrypt-cert.ns0.dnscrypt.nl
- DNSCRYPT_RESOLVER_ADDR=45.76.35.212
- DNSCRYPT_PROVIDER_KEY=4C84:FB8C:0511:5DFA:5F97:C5ED:0329:1370:C78A:BCD6:4E15:DD53:AB08:DE72:FB84:4ACA
- DNSCRYPT_PROVIDER_NAME=2.dnscrypt-cert.securedns.eu
- DNSCRYPT_RESOLVER_ADDR=146.185.167.43
- DNSCRYPT_PROVIDER_KEY=F49F:2C73:4D62:B686:319E:D07E:6919:433B:2F13:85F4:1EFB:CA2F:176D:590B:2E45:3E86
image: oznu/dns-ad-blocker:latest
ports:
- 192.168.2.151:53:53/udp

View File

@@ -1,7 +1,7 @@
services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:2024.4.3
image: homeassistant/home-assistant:2025.3
network_mode: host
privileged: true
restart: unless-stopped

View File

@@ -3,7 +3,7 @@ services:
container_name: jellyfin
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
image: linuxserver/jellyfin:10.10.3
image: linuxserver/jellyfin:10.10.7
ports:
- 8097:8097
restart: unless-stopped

View File

@@ -26,7 +26,7 @@ services:
- PHOTOPRISM_DATABASE_DRIVER=sqlite
- PHOTOPRISM_UID=1000
- PHOTOPRISM_GID=1000
image: photoprism/photoprism:250321
image: photoprism/photoprism:250426
ports:
- 2342:2342
restart: unless-stopped

19
compose.readarr.yaml Normal file
View File

@@ -0,0 +1,19 @@
services:
readarr:
container_name: readarr
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
external_links:
- transmission
extra_hosts:
- transmission:192.168.2.150
image: linuxserver/readarr:develop-0.4.18.2805-ls156
ports:
- 18787:8787
restart: unless-stopped
volumes:
- /opt/readarr:/config
- /media/nubes/downloads:/downloads
- /media/neptune/Books/Epub:/books

View File

@@ -1,6 +1,8 @@
services:
rsnapshot:
container_name: rsnapshot
environment:
- TZ=Europe/Amsterdam
image: linuxserver/rsnapshot:1.4.5
restart: unless-stopped
volumes:

View File

@@ -41,7 +41,7 @@ services:
- INIT_SEAFILE_ADMIN_EMAIL=admin@veenboer.xyz
- INIT_SEAFILE_ADMIN_PASSWORD=asecret
- SEAFILE_SERVER_HOSTNAME=seafile.bram.veenboer.xyz
- SEAFILE_SERVER_PROTOCOL=http
- SEAFILE_SERVER_PROTOCOL=https
- JWT_PRIVATE_KEY=8LzWzeuQ41z1i8fc1cr1L7Kw80VpTgmT
depends_on:
- seafile-mysql

47
compose.yaml Normal file
View File

@@ -0,0 +1,47 @@
include:
# Web
- compose.nginx.yaml
- compose.filebrowser.yaml
- compose.caddy.yaml
- compose.ghost.yaml
- compose.lighttpd.yaml
- compose.plik.yaml
# Authentication
- compose.surfshark.yaml
# Download
- compose.transmission.yaml
- compose.jackett.yaml
- compose.radarr.yaml
- compose.readarr.yaml
- compose.sonarr.yaml
- compose.bazarr.yaml
- compose.lidarr.yaml
# Media
- compose.jellyfin.yaml
- compose.photoprism.yaml
# Networking
- compose.dns-ad-blocker.yaml
# Backup
- compose.rsnapshot.yaml
- compose.borgmatic.yaml
# Sensors
- compose.homeassistant.yaml
- compose.esphome.yaml
- compose.collectd.yaml
# Storage
- compose.seafile.yaml
# Database
- compose.influxdb.yaml
- compose.timescaledb.yaml
- compose.grafana.yaml
- compose.dsmrdb.yaml
- compose.dsmr.yaml
- compose.facette.yaml

View File

@@ -1,16 +0,0 @@
services:
openvpn-server:
cap_add:
- NET_ADMIN
container_name: openvpn-server
extra_hosts:
- host:192.168.2.150
image: kylemanna/openvpn:2.4
network_mode: bridge
ports:
- 443:443
privileged: true
restart: unless-stopped
volumes:
- /opt/openvpn-server:/etc/openvpn
- /opt/openvpn-server/logrotate.d/openvpn:/etc/logrotate.d/openvpn

View File

@@ -1,47 +0,0 @@
include:
# Web
- docker-compose.nginx.yml
- docker-compose.filebrowser.yml
- docker-compose.caddy.yml
- docker-compose.ghost.yml
- docker-compose.lighttpd.yml
- docker-compose.plik.yml
# Authentication
- docker-compose.openvpn-server.yml
- docker-compose.surfshark.yml
# Download
- docker-compose.transmission.yml
- docker-compose.jackett.yml
- docker-compose.radarr.yml
- docker-compose.sonarr.yml
- docker-compose.bazarr.yml
- docker-compose.lidarr.yml
# Media
- docker-compose.jellyfin.yml
- docker-compose.photoprism.yml
# Networking
- docker-compose.dns-ad-blocker.yml
# Backup
- docker-compose.rsnapshot.yml
- docker-compose.borgmatic.yml
# Sensors
- docker-compose.homeassistant.yml
- docker-compose.esphome.yml
- docker-compose.collectd.yml
# Storage
- docker-compose.seafile.yml
# Database
- docker-compose.influxdb.yml
- docker-compose.timescaledb.yml
- docker-compose.grafana.yml
- docker-compose.dsmrdb.yml
- docker-compose.dsmr.yml
- docker-compose.facette.yml

View File

@@ -0,0 +1,143 @@
server {
listen 80;
location / {
proxy_pass http://host:80;
include /etc/nginx/conf/proxy.conf;
}
location /transmission {
proxy_pass http://host:9091;
include /etc/nginx/conf/proxy.conf;
}
location /sonarr {
proxy_pass http://host:18989;
include /etc/nginx/conf/proxy.conf;
}
location /radarr {
proxy_pass http://host:17878;
include /etc/nginx/conf/proxy.conf;
}
location /lidarr {
proxy_pass http://host:18686;
include /etc/nginx/conf/proxy.conf;
}
location /bazarr {
proxy_pass http://host:16767;
include /etc/nginx/conf/proxy.conf;
}
location /jellyfin {
proxy_pass http://host:8097;
include /etc/nginx/conf/proxy.conf;
}
location /facette {
proxy_pass http://host:12003;
include /etc/nginx/conf/proxy.conf;
}
location /gitlab {
proxy_pass http://host:19080;
include /etc/nginx/conf/proxy.conf;
}
location /filebrowser {
proxy_pass http://host:8001;
include /etc/nginx/conf/proxy.conf;
}
location /plik {
proxy_pass http://host:8087;
include /etc/nginx/conf/proxy.conf;
}
location /droppy {
rewrite ^/droppy(.*)$ /$1 break;
proxy_pass http://host:19898;
include /etc/nginx/conf/proxy.conf;
}
location /ghost {
proxy_pass http://host:2368;
include /etc/nginx/conf/proxy.conf;
}
location /jackett {
proxy_pass http://host:9117;
include /etc/nginx/conf/proxy.conf;
}
location /dss {
proxy_pass http://host:10001;
include /etc/nginx/conf/proxy.conf;
}
location /pgsql {
proxy_pass http://host:5050;
include /etc/nginx/conf/proxy.conf;
}
location /registry {
proxy_pass http://host:1080;
include /etc/nginx/conf/proxy.conf;
}
}
server { # dsmr
listen 80;
server_name dsmr.bram.veenboer.xyz;
location / {
proxy_pass http://host:8888;
rewrite ^/dsmr(.*)$ $1 break;
include /etc/nginx/conf/proxy.conf;
}
}
server {
# homeassistant
listen 80;
server_name ha.bram.veenboer.xyz;
location / {
proxy_pass http://host:8123;
include /etc/nginx/conf/proxy.conf;
}
}
server { # esphome
listen 80;
server_name esp.bram.veenboer.xyz;
location / {
proxy_pass http://host:6052;
include /etc/nginx/conf/proxy.conf;
}
}
server {
# seafile
listen 80;
server_name seafile.bram.veenboer.xyz;
location / {
proxy_pass http://host:8082;
include /etc/nginx/conf/proxy.conf;
proxy_set_header X-Forwarded-Proto https;
}
#location /seafhttp {
# rewrite ^/seafhttp(.*)$ $1 break;
# proxy_pass http://host:8182;
# include /etc/nginx/conf/proxy.conf;
# proxy_set_header X-Forwarded-Proto https;
# client_max_body_size 0;
#}
#location /seafdav {
# proxy_pass http://host:8180;
# include /etc/nginx/conf/proxy.conf;
#}
}
server { # grafana
listen 80;
server_name grafana.bram.veenboer.xyz;
location / {
proxy_pass http://host:3333;
include /etc/nginx/conf/proxy.conf;
}
}
server { # photoprism
listen 80;
server_name photoprism.bram.veenboer.xyz;
location / {
proxy_pass http://host:2342;
include /etc/nginx/conf/proxy.conf;
}
}

View File

@@ -0,0 +1,10 @@
# Proxy
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl on;
# Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;

View File

@@ -0,0 +1,21 @@
# Enable SSL
ssl_certificate /host/etc/certs/.bram.veenboer.online/certificate+intermediate.pem;
ssl_certificate_key /host/etc/certs/.bram.veenboer.online/key.pem;
ssl_dhparam /host/etc/certs/.bram.veenboer.online/dh.pem;
# Increased security, from https://cipherli.st/
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver_timeout 5s;
# add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
# Redirect HTTP trafic
error_page 497 https://$host:$server_port$request_uri;

View File

@@ -0,0 +1,20 @@
# Enable SSL
ssl_certificate /host/etc/certs/certificate+intermediate.pem;
ssl_certificate_key /host/etc/certs/key.pem;
ssl_dhparam /host/etc/certs/dh.pem;
# Increased security, from https://cipherli.st/
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver_timeout 5s;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
# Redirect HTTP trafic
error_page 497 https://$host:$server_port$request_uri;

View File

@@ -0,0 +1,36 @@
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
client_body_buffer_size 1000M;
client_max_body_size 5000M;
server_tokens off;
error_page 401 403 404 /404.html;
include /etc/nginx/conf.d/*.conf;
}