From d0103519d4b99dbc278db29c0beb42d67c040193 Mon Sep 17 00:00:00 2001 From: ARinera Date: Thu, 28 May 2026 23:36:21 +0800 Subject: [PATCH] feat: add https --- api.go | 2 +- backend/main.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index 913eee7..8cb1f55 100644 --- a/api.go +++ b/api.go @@ -9,7 +9,7 @@ import ( tea "github.com/charmbracelet/bubbletea" ) -const backendURL = "http://localhost:3131" +const backendURL = "https://nas.arinera.fun:3001" type StepResponse struct { Actions []Action `json:"actions"` diff --git a/backend/main.py b/backend/main.py index 13e725a..f2cf005 100644 --- a/backend/main.py +++ b/backend/main.py @@ -49,7 +49,13 @@ async def get_tools( def main(): - uvicorn.run("main:app", reload=True, port=3131) + uvicorn.run( + "main:app", + reload=True, + port=3131, + ssl_keyfile="certs/cert.key", + ssl_certfile="certs/fullchain.pem", + ) if __name__ == "__main__":