feat: make HK sing-box listen port configurable
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
DOMAIN=hk.example.com
|
DOMAIN=hk.example.com
|
||||||
ACME_EMAIL=admin@example.com
|
ACME_EMAIL=admin@example.com
|
||||||
|
LISTEN_PORT=7364
|
||||||
USER1_PASSWORD=change-me
|
USER1_PASSWORD=change-me
|
||||||
CLOUDFLARE_API_TOKEN=change-me
|
CLOUDFLARE_API_TOKEN=change-me
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DOMAIN: ${DOMAIN}
|
DOMAIN: ${DOMAIN}
|
||||||
ACME_EMAIL: ${ACME_EMAIL}
|
ACME_EMAIL: ${ACME_EMAIL}
|
||||||
|
LISTEN_PORT: ${LISTEN_PORT}
|
||||||
USER1_PASSWORD: ${USER1_PASSWORD}
|
USER1_PASSWORD: ${USER1_PASSWORD}
|
||||||
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
|
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
|
||||||
volumes:
|
volumes:
|
||||||
@@ -37,4 +38,3 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
sing-box-config:
|
sing-box-config:
|
||||||
sing-box-data:
|
sing-box-data:
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"type": "trojan",
|
"type": "trojan",
|
||||||
"tag": "trojan-in",
|
"tag": "trojan-in",
|
||||||
"listen": "::",
|
"listen": "::",
|
||||||
"listen_port": 7364,
|
"listen_port": ${LISTEN_PORT},
|
||||||
"sniff": true,
|
"sniff": true,
|
||||||
"sniff_override_destination": true,
|
"sniff_override_destination": true,
|
||||||
"users": [
|
"users": [
|
||||||
|
|||||||
Reference in New Issue
Block a user