Skip to content

Commit 7c900f7

Browse files
committed
fix(caddy): load caddy file directly instead of traversing and loading the routes
1 parent d0305b6 commit 7c900f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/service_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ def setup_caddy(self, domains, env):
221221
raise Exception("Failed to update routes in Caddy configuration")
222222
else:
223223
response = requests.post(
224-
'http://localhost:2019/config/apps/http/servers/nixopus',
225-
json=new_config['apps']['http']['servers']['nixopus'],
224+
'http://localhost:2019/load',
225+
json=new_config,
226226
headers={'Content-Type': 'application/json'}
227227
)
228228
if response.status_code != 200:

0 commit comments

Comments
 (0)