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 reverse_proxy http://beszel:8090
} }
@copypaste host copypaste.catmedved.com # @copypaste host copypaste.catmedved.com
handle @copypaste_k { # handle @copypaste {
reverse_proxy http://microbin:8080 # reverse_proxy http://microbin:8080
} # }
@copypaste_k host copypaste.kladovka52.com @copypaste host copypaste.kladovka52.com
handle @copypaste_k { handle @copypaste {
reverse_proxy http://microbin:8080 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 { http://*.catmedved.com {
@not_from_wg not remote_ip 10.8.0.0/24 @not_from_wg not remote_ip 10.8.0.0/24

View File

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

View File

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