From 5e93a4a82f5cdba5d764722853ea0a54ee6ff193 Mon Sep 17 00:00:00 2001 From: ChillPad VPN <137110325+chillpadclub@users.noreply.github.com> Date: Fri, 5 Dec 2025 01:51:37 +0000 Subject: [PATCH] new file: .env new file: Caddyfile new file: docker-compose.yml new file: html/index.html --- .env | 2 + Caddyfile | 36 +++++++++ docker-compose.yml | 18 +++++ html/index.html | 183 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 239 insertions(+) create mode 100644 .env create mode 100644 Caddyfile create mode 100644 docker-compose.yml create mode 100644 html/index.html diff --git a/.env b/.env new file mode 100644 index 0000000..474459e --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +SELF_STEAL_DOMAIN= +SELF_STEAL_PORT= \ No newline at end of file diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..d4e0db5 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,36 @@ +{ + https_port {$SELF_STEAL_PORT} + default_bind 127.0.0.1 + servers { + listener_wrappers { + proxy_protocol { + allow 127.0.0.1/32 + } + tls + } + } + auto_https disable_redirects +} + +http://{$SELF_STEAL_DOMAIN} { + bind 0.0.0.0 + redir https://{$SELF_STEAL_DOMAIN}{uri} permanent +} + +https://{$SELF_STEAL_DOMAIN} { + root * /var/www/html + try_files {path} /index.html + file_server + +} + + +:{$SELF_STEAL_PORT} { + tls internal + respond 204 +} + +#:80 { +# bind 0.0.0.0 +# respond 204 +#} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2b8c3bd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +services: + caddy: + image: caddy:2.9.1 + container_name: caddy-remnawave + restart: unless-stopped + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./html:/var/www/html + - ./logs:/var/log/caddy + - caddy_data_selfsteal:/data + - caddy_config_selfsteal:/config + env_file: + - .env + network_mode: "host" + +volumes: + caddy_data_selfsteal: + caddy_config_selfsteal: diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..3f3eba2 --- /dev/null +++ b/html/index.html @@ -0,0 +1,183 @@ + + +
+ + + +