Skip to content

Commit fe4d693

Browse files
committed
fix: use Traefik 3
1 parent 172694b commit fe4d693

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/server/src/setup/server-setup.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CURRENT_USER=$USER
7676
7777
echo "Installing requirements for: OS: $OS_TYPE"
7878
if [ $EUID != 0 ]; then
79-
echo "Please run this script as root or with sudo ❌"
79+
echo "Please run this script as root or with sudo ❌"
8080
exit
8181
fi
8282
@@ -263,7 +263,7 @@ const setupMainDirectory = () => `
263263
# Create the /etc/dokploy directory
264264
mkdir -p /etc/dokploy
265265
chmod 777 /etc/dokploy
266-
266+
267267
echo "Directory /etc/dokploy created ✅"
268268
fi
269269
`;
@@ -276,16 +276,16 @@ export const setupSwarm = () => `
276276
# Get IP address
277277
get_ip() {
278278
local ip=""
279-
279+
280280
# Try IPv4 with multiple services
281281
# First attempt: ifconfig.io
282282
ip=\$(curl -4s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
283-
283+
284284
# Second attempt: icanhazip.com
285285
if [ -z "\$ip" ]; then
286286
ip=\$(curl -4s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
287287
fi
288-
288+
289289
# Third attempt: ipecho.net
290290
if [ -z "\$ip" ]; then
291291
ip=\$(curl -4s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
@@ -295,12 +295,12 @@ export const setupSwarm = () => `
295295
if [ -z "\$ip" ]; then
296296
# Try IPv6 with ifconfig.io
297297
ip=\$(curl -6s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
298-
298+
299299
# Try IPv6 with icanhazip.com
300300
if [ -z "\$ip" ]; then
301301
ip=\$(curl -6s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
302302
fi
303-
303+
304304
# Try IPv6 with ipecho.net
305305
if [ -z "\$ip" ]; then
306306
ip=\$(curl -6s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
@@ -549,7 +549,7 @@ export const createTraefikInstance = () => {
549549
sleep 8
550550
echo "Traefik migrated to Standalone ✅"
551551
fi
552-
552+
553553
if docker inspect dokploy-traefik > /dev/null 2>&1; then
554554
echo "Traefik already exists ✅"
555555
else

packages/server/src/setup/traefik-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const TRAEFIK_PORT =
1313
Number.parseInt(process.env.TRAEFIK_PORT!, 10) || 80;
1414
export const TRAEFIK_HTTP3_PORT =
1515
Number.parseInt(process.env.TRAEFIK_HTTP3_PORT!, 10) || 443;
16-
export const TRAEFIK_VERSION = process.env.TRAEFIK_VERSION || "3.1.2";
16+
export const TRAEFIK_VERSION = process.env.TRAEFIK_VERSION || "3";
1717

1818
interface TraefikOptions {
1919
enableDashboard?: boolean;

0 commit comments

Comments
 (0)