From 8637c3a4cfc80290c06a42795f25b1315954f548 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 20:23:56 -0300 Subject: [PATCH] Updated config and reload caddy properly --- src/daemon/proxy.cr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/daemon/proxy.cr b/src/daemon/proxy.cr index 2916042..fc7ce45 100644 --- a/src/daemon/proxy.cr +++ b/src/daemon/proxy.cr @@ -26,10 +26,9 @@ module Proxy http_port 8888 https_port 8887 local_certs - admin off } -http://localhost:8888 { +http://mindy:8888 { handle_path /admin/terminal/* { reverse_proxy /* http://127.0.0.1:7681 } @@ -65,7 +64,7 @@ CONFIG file << config end # Reload config - Process.run(command: "/usr/bin/killall", args: ["-USR1", "caddy"]) + Process.run(command: "caddy", args: ["reload", "--config", "Caddyfile"]) @@current_config = config end config