setup microbin to be a kladovka service

This commit is contained in:
2026-02-17 19:18:27 +03:00
parent 2376205279
commit 97fe488ca3
3 changed files with 16 additions and 7 deletions

View File

@@ -15,13 +15,13 @@
reverse_proxy http://beszel:8090
}
@copypaste host copypaste.catmedved.com
handle @copypaste_k {
reverse_proxy http://microbin:8080
}
# @copypaste host copypaste.catmedved.com
# handle @copypaste {
# reverse_proxy http://microbin:8080
# }
@copypaste_k host copypaste.kladovka52.com
handle @copypaste_k {
@copypaste host copypaste.kladovka52.com
handle @copypaste {
reverse_proxy http://microbin:8080
}
@@ -61,6 +61,14 @@
}
}
http://*.kladovka52.com {
@not_from_wg not remote_ip 10.8.0.0/24
redir @not_from_wg https://{host}{uri} permanent
import apps
}
http://*.catmedved.com {
@not_from_wg not remote_ip 10.8.0.0/24

View File

@@ -21,6 +21,7 @@
ports:
# SSHing Shim (with authorized_keys)
- "127.0.0.1:2222:22"
- "10.8.0.3:3005:3000"
depends_on:
- gitea_db
dns:

View File

@@ -7,7 +7,7 @@
networks:
- caddy_internal
volumes:
- /rundata/microbin/microbin-data:/app/microbin_data
- /srv/rundata/microbin/microbin-data:/app/microbin_data
environment:
# https://microbin.eu/docs/installation-and-configuration/configuration
MICROBIN_PUBLIC_PATH: 'https://copypaste.kladovka52.com'