commit current project

This commit is contained in:
awei
2025-03-09 16:14:12 +08:00
parent 4e51db4edd
commit 21f4026106
7 changed files with 144 additions and 47 deletions

View File

@@ -38,7 +38,7 @@ grpc_listen_addr: 0.0.0.0:50443
# mode. This is not recommended as the traffic will
# be unencrypted. Only enable if you know what you
# are doing.
grpc_allow_insecure: false
grpc_allow_insecure: true
# The Noise section includes specific configuration for the
# TS2021 Noise protocol
@@ -110,8 +110,8 @@ derp:
ipv6: 2001:db8::1
# List of externally available DERP maps encoded in JSON
urls:
- https://controlplane.tailscale.com/derpmap/default
# urls:
# - https://controlplane.tailscale.com/derpmap/default
# Locally available DERP map files encoded in YAML
#
@@ -144,7 +144,7 @@ database:
type: sqlite
# Enable debug mode. This setting requires the log.level to be set to "debug" or "trace".
debug: false
debug: true
# GORM configuration settings.
gorm:
@@ -396,9 +396,9 @@ logtail:
# Enable logtail for this headscales clients.
# As there is currently no support for overriding the log server in headscale, this is
# disabled by default. Enabling this will make your clients send logs to Tailscale Inc.
enabled: false
enabled: true
# Enabling this option makes devices prefer a random port for WireGuard traffic over the
# default static port 41641. This option is intended as a workaround for some buggy
# firewall devices. See https://tailscale.com/kb/1181/firewalls/ for more information.
randomize_client_port: false
randomize_client_port: false

View File

@@ -14,7 +14,13 @@ services:
ports:
- "3008:8080" # Headscale API端口
- "9090:9090" # Metrics监控端口
- "50443:50443" # DERP中继端口可选若Derper独立部署则无需映射
- "3478:3478" # STUN 端口
- "41641:41641" # DERP中继端口可选若Derper独立部署则无需映射
- "12345:12345" # STUN 端口
- "8881:8881" # DERP 端口
- "50443:50443"
cap_add:
- NET_ADMIN
sysctls:
@@ -45,4 +51,9 @@ services:
- HEADSCALE_API_URL=http://headscale:8080
- HEADSCALE_API_KEY=QC33VFzaUw.u1qwXFap0QpFAQnwkdGuUyvpspL15185A5JnWeFpt_c # Revert to original variable name
ports:
- "8000:8000" # 访问地址http://<服务器IP>:8000/web
- "3009:8000" # 访问地址http://<服务器IP>:8000/web
# common314 5b6ed5947149bc2b6d203da688afa8d5969844af8151302e
# 9900k 734511957cbece2ae36622adf50a8ec6842d08fb771c771d